:root {
  color-scheme: light;
  --bg: #e7edf3;
  --panel: #fbfaf7;
  --text: #121826;
  --muted: #667085;
  --line: #e1e6ef;
  --line-strong: #c5cfdd;
  --primary: #123d3a;
  --primary-dark: #0b2524;
  --primary-soft: #e9f4f1;
  --accent: #c58a2a;
  --accent-soft: #fff4dc;
  --danger: #b33a3a;
  --success: #1f7a4d;
  --surface: #f5f7f8;
  --shadow: 0 24px 58px rgba(18, 24, 38, 0.12);
  --soft-shadow: 0 12px 28px rgba(18, 24, 38, 0.1);
  --focus-ring: 0 0 0 4px rgba(18, 61, 58, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: "Manrope", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(90deg, #e6eef5 0%, #f3f6f8 28%, #f9faf8 50%, #f3f6f8 72%, #e6eef5 100%);
  overflow-x: hidden;
}

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

button,
label {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  display: block;
  background: var(--panel);
  box-shadow: 0 0 0 1px rgba(210, 217, 226, 0.86), 0 32px 80px rgba(18, 24, 38, 0.12);
}

.review-panel {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(251, 250, 247, 0.98) 36%),
    var(--panel);
  padding: max(22px, env(safe-area-inset-top)) 20px max(22px, env(safe-area-inset-bottom));
  overflow: hidden;
}

.review-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 240px;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(18, 61, 58, 0.14), rgba(197, 138, 42, 0.08) 40%, transparent 70%);
  pointer-events: none;
  transition: background 400ms ease;
}

body[data-step="feedback"] .review-panel::before {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(197, 138, 42, 0.16), rgba(179, 58, 58, 0.06) 40%, transparent 70%);
}

body[data-step="thankYou"] .review-panel::before {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(31, 122, 77, 0.16), rgba(18, 61, 58, 0.05) 40%, transparent 70%);
}

.brand-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(7, 17, 31, 0.12);
}

.brand-mark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(1.85rem, 8vw, 2.45rem);
  line-height: 1.15;
  max-width: 12ch;
  font-weight: 850;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.28rem, 6vw, 1.6rem);
  line-height: 1.14;
}

.lead {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.step {
  display: none;
}

.step.is-active {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  animation: stepFadeIn 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

.step-heading {
  margin-bottom: 16px;
}

.rating-kicker {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 760;
  text-align: center;
}

.rating-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.rating-button {
  min-height: 0;
  aspect-ratio: 0.88;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px solid rgba(197, 207, 221, 0.9);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 250, 0.96));
  color: var(--text);
  cursor: pointer;
  padding: 8px 2px;
  touch-action: manipulation;
  box-shadow: 0 12px 26px rgba(18, 24, 38, 0.075);
  transition:
    transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 200ms ease,
    border-color 200ms ease,
    background 200ms ease;
}

.rating-button:hover,
.rating-button:focus-visible,
.rating-button.is-selected {
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff9ed, #fff0cf);
  box-shadow: 0 16px 30px rgba(197, 138, 42, 0.18), 0 0 0 4px rgba(197, 138, 42, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.rating-button:active {
  transform: translateY(0) scale(0.98);
}

.rating-button span {
  display: block;
  color: var(--accent);
  font-size: clamp(1.25rem, 6vw, 1.62rem);
  line-height: 1;
  text-shadow: 0 4px 10px rgba(197, 138, 42, 0.18);
}

.rating-button span::before {
  content: "\2605";
}

.rating-button strong {
  display: block;
  margin-top: 8px;
  font-size: 0.92rem;
  font-weight: 850;
}

.field-group {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
}

label {
  color: #334155;
  font-weight: 780;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(197, 207, 221, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  padding: 11px 12px;
  font-size: 1rem;
  box-shadow: 0 8px 18px rgba(18, 24, 38, 0.04);
  transition:
    border-color 170ms ease,
    box-shadow 170ms ease,
    background 170ms ease;
}

textarea {
  resize: vertical;
  line-height: 1.5;
  min-height: 132px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
  outline: none;
}

textarea.is-invalid,
input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(179, 58, 58, 0.12);
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}

.chip-grid label,
.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  justify-content: flex-start;
  border: 1px solid rgba(197, 207, 221, 0.92);
  border-radius: 14px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 247, 0.96));
  color: #263244;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.035);
  transition:
    background 200ms ease,
    border-color 200ms ease,
    color 200ms ease,
    box-shadow 200ms ease,
    transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chip-grid label:has(input:checked),
.inline-check:has(input:checked) {
  border-color: var(--primary);
  background: linear-gradient(180deg, #edf7f4, #e4f0ec);
  color: var(--primary);
  box-shadow: 0 12px 24px rgba(18, 61, 58, 0.11);
  transform: translateY(-1px);
}

.chip-grid label:hover,
.inline-check:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.chip-grid label:active,
.inline-check:active {
  transform: translateY(0) scale(0.99);
}

.chip-grid label:has(input:focus-visible),
.inline-check:has(input:focus-visible) {
  outline: 3px solid rgba(20, 108, 95, 0.16);
  outline-offset: 1px;
}

/* Small fixed circular checkbox, centered on the left, never stretches */
.chip-grid input,
.inline-check input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-width: 18px;
  max-width: 18px;
  min-height: 18px;
  max-height: 18px;
  margin: 0;
  padding: 0;
  align-self: center;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: none;
  cursor: pointer;
  position: relative;
  transition: border-color 140ms ease, background 140ms ease;
}

.chip-grid input::after,
.inline-check input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 140ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chip-grid input:checked,
.inline-check input:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.chip-grid input:checked::after,
.inline-check input:checked::after {
  transform: rotate(45deg) scale(1);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.review-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.review-controls .field-group {
  margin-bottom: 0;
}

.review-controls select {
  min-height: 42px;
  padding: 7px 9px;
  font-size: 0.94rem;
}

.inline-check {
  margin-bottom: 18px;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 14px 0 10px;
}

.primary-button,
.secondary-button,
.link-button {
  width: 100%;
  min-height: 50px;
  border-radius: 13px;
  border: 0;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.15;
  transition:
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.primary-button {
  background: linear-gradient(180deg, #164844, #0a2423);
  color: #fff;
  box-shadow: 0 18px 34px rgba(18, 61, 58, 0.24);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: linear-gradient(180deg, #1b5550, #0b2524);
  transform: translateY(-2px);
  box-shadow: 0 22px 38px rgba(18, 61, 58, 0.28);
  outline: none;
}

.primary-button:active,
.secondary-button:active,
.link-button:active {
  transform: translateY(0) scale(0.99);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #ffffff, #f7f8f6);
  color: var(--text);
  box-shadow: 0 10px 22px rgba(18, 24, 38, 0.06);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.link-button {
  margin-top: 10px;
  background: transparent;
  color: var(--primary);
}

.success-icon {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 16px;
  background: #ffffff;
  box-shadow: 0 0 0 6px rgba(31, 122, 77, 0.1), 0 10px 24px rgba(31, 122, 77, 0.18);
  color: var(--success);
  font-size: 1.7rem;
  font-weight: 900;
}

.success-icon::before {
  content: "\2713";
}

.instruction-box {
  border: 1px solid rgba(18, 61, 58, 0.12);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(18, 61, 58, 0.04), rgba(255, 255, 255, 0.98));
  padding: 16px 18px;
  margin: 18px 0;
  box-shadow: var(--soft-shadow);
  animation: stepFadeIn 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.instruction-box ol {
  margin: 9px 0 0 20px;
  padding: 0;
  color: var(--muted);
}

.instruction-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 12px);
  min-width: min(88vw, 360px);
  margin: 0;
  padding: 12px 15px;
  border-radius: 14px;
  background: #102826;
  color: #fff;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

#positiveStep .primary-button,
#feedbackStep .primary-button {
  margin-top: 0;
}

.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, #1a73e8, #1558b0);
  box-shadow: 0 18px 34px rgba(26, 115, 232, 0.28);
}

.google-button:hover,
.google-button:focus-visible {
  background: linear-gradient(180deg, #1f7fe8, #1558b0);
  box-shadow: 0 22px 38px rgba(26, 115, 232, 0.34);
}

.google-g {
  width: 24px;
  height: 24px;
  background: #ffffff;
  color: #1a73e8;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  line-height: 1;
}

body[data-step="positive"] .brand-row,
body[data-step="feedback"] .brand-row,
body[data-step="thankYou"] .brand-row {
  margin-bottom: 18px;
}

body[data-step="positive"] h1,
body[data-step="feedback"] h1,
body[data-step="thankYou"] h1 {
  font-size: 1.2rem;
  line-height: 1.16;
  max-width: 17ch;
}

body[data-step="positive"] .brand-mark,
body[data-step="feedback"] .brand-mark,
body[data-step="thankYou"] .brand-mark {
  width: 42px;
  height: 42px;
}

body[data-step="positive"] .step-heading {
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

body[data-step="positive"] .step-heading h2 {
  margin-bottom: 0;
  font-size: 1.26rem;
}

body[data-step="positive"] .field-group {
  margin-bottom: 12px;
}

body[data-step="positive"] .chip-grid {
  margin-bottom: 12px;
}

#reviewText {
  min-height: 126px;
  max-height: 210px;
  border-color: rgba(197, 207, 221, 0.92);
  background: linear-gradient(180deg, #fffdf8, #fbfaf7);
  box-shadow: inset 0 1px 0 rgba(18, 24, 38, 0.03), var(--soft-shadow);
  font-size: 0.96rem;
}

#feedbackMessage {
  min-height: 120px;
}

body[data-step="positive"] .action-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0 10px;
}

body[data-step="positive"] .secondary-button {
  min-height: 46px;
  font-size: 0.9rem;
}

body[data-step="positive"] .primary-button {
  min-height: 52px;
}

body[data-step="rating"] .rating-grid {
  margin-bottom: 0;
}

body[data-step="rating"] .review-panel {
  justify-content: flex-start;
}

body[data-step="rating"] .brand-row {
  margin-bottom: 0;
}

body[data-step="rating"] #ratingStep {
  justify-content: center;
  padding-bottom: clamp(76px, 16vh, 140px);
}

body[data-step="rating"] .rating-kicker,
body[data-step="rating"] .rating-grid {
  width: 100%;
}


.dashboard-body {
  font-family: 'Plus Jakarta Sans', 'Outfit', Inter, sans-serif;
  background-color: #f1f5f9;
  color: #0f172a;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  --bg: #f1f5f9;
  --panel: #ffffff;
  --text: #0f172a;
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-soft: #e0e7ff;
  --accent: #eab308;
  --accent-soft: #fef9c3;
  --danger: #ef4444;
  --success: #10b981;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --surface: #f8fafc;
  --shadow: 0 10px 30px -10px rgba(79, 70, 229, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-glow: 0 20px 40px -15px rgba(79, 70, 229, 0.15);
}

/* Dashboard Wrapper */
.dashboard-container {
  display: flex;
  min-height: 100vh;
  width: 100vw;
}

/* Sidebar Styling */
.sidebar {
  width: 260px;
  background: #0f172a; /* Slate 900 Dark Menu */
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid #1e293b;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 300ms ease;
}

.sidebar-brand {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #1e293b;
}

.brand-logo {
  width: 42px;
  height: 42px;
  background: #ffffff;
  border-radius: 12px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.brand-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand-text h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: #fff;
  letter-spacing: -0.02em;
}

.brand-text span {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 1px;
}

.sidebar-menu {
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.menu-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #94a3b8;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 160ms ease;
}

.menu-item svg {
  stroke: #64748b;
  transition: stroke 160ms ease;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
}

.menu-item:hover svg {
  stroke: #cbd5e1;
}

.menu-item.is-active {
  background: #4f46e5;
  color: #ffffff;
  box-shadow: 0 8px 20px -8px rgba(79, 70, 229, 0.4);
}

.menu-item.is-active svg {
  stroke: #ffffff;
}

.menu-item .badge {
  margin-left: auto;
}

.sidebar-footer {
  padding: 20px 18px;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #1e293b;
  color: #94a3b8;
}

.connection-status.is-live {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.connection-status.is-demo {
  background: rgba(234, 179, 8, 0.1);
  color: #eab308;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.connection-status.is-live .status-dot {
  box-shadow: 0 0 8px #10b981;
  animation: pulse 2000ms infinite;
}

.connection-status.is-demo .status-dot {
  box-shadow: 0 0 8px #eab308;
}

.view-live-button {
  background: #1e293b;
  color: #fff;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 160ms ease;
}

.view-live-button:hover {
  background: #334155;
  border-color: #475569;
}

.view-live-button.light-button {
  width: 100%;
  margin-top: 12px;
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.mobile-menu-button,
.compact-button {
  width: auto;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
}

.copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: 8px;
}

.copy-field .secondary-button {
  min-height: 46px;
}

.sidebar-form {
  display: flex;
  flex-direction: column;
}

/* Main Panel Layout */
.dashboard-main {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Dashboard Header */
.dashboard-navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
}

.breadcrumb {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-navbar h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.65rem;
  color: var(--text);
  margin: 3px 0 0;
  max-width: none;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.time-display {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.time-display span {
  font-family: monospace;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.time-display .sub {
  font-family: inherit;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

/* Content Frame */
.dashboard-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Banners */
.banner {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow);
  position: relative;
}

.banner-warning {
  border-left-color: var(--accent);
  background: #fefef2;
}

.banner-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.banner-body strong {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: #854d0e;
  margin-bottom: 2px;
}

.banner-body p {
  margin: 0;
  font-size: 0.86rem;
  color: #713f12;
  line-height: 1.5;
}

.banner-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #a16207;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.banner-hidden {
  display: none !important;
}

/* Views display toggling */
.dashboard-view {
  display: none;
}

.dashboard-view.is-active {
  display: block;
  animation: fadeIn 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Metric Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 8px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow), 0 1px 0 0 rgba(79, 70, 229, 0.08) inset;
  border-color: rgba(79, 70, 229, 0.12);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.icon-blue { background: rgba(79, 70, 229, 0.08); color: var(--primary); }
.icon-yellow { background: rgba(234, 179, 8, 0.08); color: var(--accent); }
.icon-green { background: rgba(16, 185, 129, 0.08); color: var(--success); }
.icon-red { background: rgba(239, 68, 68, 0.08); color: var(--danger); }
.icon-purple { background: rgba(168, 85, 247, 0.08); color: #a855f7; }

.stat-data {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin: 6px 0 4px;
}

.rating-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stars-display {
  display: flex;
  color: var(--accent);
  font-size: 0.95rem;
  line-height: 1;
}

.stars-display.center-stars {
  justify-content: center;
  font-size: 1.45rem;
  margin: 10px 0;
}

.stat-trend {
  font-size: 0.75rem;
  font-weight: 700;
}

.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }

/* Charts Layout Grid */
.charts-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.grid-span-2 {
  grid-column: span 2;
}

.chart-container {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
}

.chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.chart-header h3 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.chart-header .subtitle {
  font-size: 0.78rem;
  color: var(--muted);
  display: block;
  margin-top: 2px;
  font-weight: 500;
}

.chart-legend {
  display: flex;
  gap: 12px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.color-scans { background-color: var(--primary); }
.color-ratings { background-color: var(--success); }

/* Canvas Visual Charts */
.chart-canvas-wrapper {
  height: 200px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex: 1;
}

.chart-canvas-wrapper.donut-layout {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 180px;
}

/* SVG Chart Elements */
.svg-chart-wrapper {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-line-path-scans {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 8px rgba(79, 70, 229, 0.15));
}

.chart-line-path-ratings {
  fill: none;
  stroke: var(--success);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.15));
}

.chart-dot {
  fill: #ffffff;
  stroke-width: 3;
  transition: r 120ms ease;
  cursor: pointer;
}

.dot-scan { stroke: var(--primary); }
.dot-rating { stroke: var(--success); }

.chart-dot:hover {
  r: 7;
}

.chart-bar-hover-zone {
  fill: transparent;
  cursor: pointer;
}

.chart-bar-hover-zone:hover + .chart-grid-bar {
  opacity: 0.08;
}

.chart-grid-bar {
  fill: #000;
  opacity: 0;
  transition: opacity 120ms ease;
  pointer-events: none;
}

.chart-axis-line {
  stroke: var(--line);
  stroke-width: 1;
}

.chart-axis-text {
  font-size: 9px;
  fill: var(--muted);
  font-weight: 700;
  text-anchor: middle;
}

/* Donut Circle SVG */
.donut-circle {
  width: 140px;
  height: 140px;
  position: relative;
  flex-shrink: 0;
}

.donut-segment {
  fill: none;
  stroke-width: 15;
  transition: stroke-dasharray 300ms ease;
}

.segment-bg {
  stroke: #f1f5f9;
  stroke-width: 12;
}

.donut-total {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.donut-total span {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.donut-total strong {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.donut-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text);
}

.donut-legend-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donut-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.donut-legend-val {
  color: var(--muted);
  font-weight: 700;
  margin-left: 6px;
}

/* Tables and Registry List */
.tables-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.table-wrapper {
  overflow-x: auto;
  flex: 1;
  margin-top: 10px;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.dashboard-table th {
  padding: 12px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.02em;
}

.dashboard-table td {
  padding: 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.dashboard-table tbody tr:last-child td {
  border-bottom: 0;
}

.dashboard-table tbody tr:hover td {
  background: var(--surface);
}

.table-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px !important;
  font-size: 0.88rem;
}

.table-subtle {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
}

.badge-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.badge-success { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.badge-warning { background: rgba(234, 179, 8, 0.1); color: var(--accent); }
.badge-info { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }

/* Feedback control bar */
.feedback-control-bar {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow);
}

.search-field {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-field svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.search-field input {
  padding-left: 42px;
  background: var(--surface);
  border-color: var(--line);
  font-size: 0.88rem;
}

.search-field input:focus {
  background: #ffffff;
}

.filter-group {
  display: flex;
  gap: 6px;
}

.filter-tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 160ms ease;
}

.filter-tab:hover {
  background: var(--surface);
  color: var(--text);
}

.filter-tab.is-active {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: rgba(79, 70, 229, 0.15);
}

/* Feedback card designs */
.feedback-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.feedback-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 200ms ease;
  position: relative;
}

.feedback-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.customer-info h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.customer-info .contact {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 600;
}

.card-meta-tags {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ai-sentiment-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #fbcfe8;
}

.feedback-body {
  border-left: 3px solid rgba(239, 68, 68, 0.35);
  padding: 4px 0 4px 14px;
  margin: 0;
}

.feedback-body p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.5;
  color: #1e293b;
}

.issues-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.issue-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 4px;
}

.resolution-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.5;
}

.resolution-box strong {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--success);
}

.feedback-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.feedback-actions .primary-button,
.feedback-actions .secondary-button {
  width: auto;
  min-height: 38px;
  height: 38px;
  font-size: 0.82rem;
  padding: 0 16px;
  font-weight: 700;
  border-radius: 6px;
}

.feedback-actions .primary-button {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
}

.feedback-actions .primary-button:hover {
  background: linear-gradient(180deg, #5b52f0, var(--primary-dark));
  transform: translateY(-1px);
}

/* Resolution notes box inline overlay */
.resolution-notes-input-box {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  animation: slideIn 160ms ease-out;
}

.resolution-notes-input-box input {
  min-height: 38px;
  height: 38px;
  font-size: 0.85rem;
  padding: 6px 12px;
}

/* Empty State styling */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: #ffffff;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.empty-state h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.empty-state p {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* QR Layout panel layout */
.qr-layout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.margin-top-btn {
  margin-top: 10px !important;
}

.form-status {
  margin: 8px 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--success);
}

.form-status.is-error {
  color: var(--danger);
}

/* Table customized sizes */
.qr-table td {
  padding: 10px 14px;
}

.qr-download-btn {
  background: var(--primary-soft);
  color: var(--primary);
  border: 0;
  font-weight: 750;
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 160ms ease;
}

.qr-download-btn:hover {
  background: var(--primary);
  color: #fff;
}

.rating-distribution-bar {
  margin-bottom: 4px;
}

.rating-dist-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dist-row {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 10px;
}

.dist-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.dist-track {
  height: 8px;
  background: var(--surface);
  border-radius: 6px;
  overflow: hidden;
}

.dist-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dist-5 { background: linear-gradient(90deg, #10b981, #34d399); }
.dist-4 { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.dist-3 { background: linear-gradient(90deg, #eab308, #facc15); }
.dist-2 { background: linear-gradient(90deg, #f97316, #fb923c); }
.dist-1 { background: linear-gradient(90deg, #ef4444, #f87171); }

.dist-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

.qr-tip-box {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.04), rgba(79, 70, 229, 0.02));
  border: 1px solid rgba(79, 70, 229, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.qr-tip-text {
  margin: 0;
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.5;
}

.qr-tip-text strong {
  color: var(--primary);
}

.qr-delete-btn {
  background: transparent;
  color: var(--danger);
  border: 0;
  font-weight: 700;
  padding: 6px;
  cursor: pointer;
  display: inline-flex;
}

.qr-delete-btn:hover {
  color: #b91c1c;
}

/* Subscription SaaS styling */
.subscription-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 12px;
}

.subscription-intro h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  margin: 0 0 6px;
}

.subscription-intro p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.plan-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.plan-card.card-glow {
  transform: scale(1.02);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.plan-card.card-glow.pro-badge::before {
  content: "Popular Choice";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

.plan-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.tier-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.tag-primary {
  color: var(--primary);
}

.plan-header h3 {
  margin: 4px 0 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--text);
}

.price-row {
  display: flex;
  align-items: baseline;
}

.price-row .currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  align-self: flex-start;
  margin-top: 4px;
}

.price-row .price {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.price-row .period {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.plan-features {
  flex: 1;
  margin-bottom: 28px;
}

.plan-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-features li {
  font-size: 0.88rem;
  font-weight: 550;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features .bullet {
  color: var(--success);
  font-weight: 800;
  flex-shrink: 0;
}

.plan-features .bullet-cross {
  color: #94a3b8;
  font-weight: 800;
  flex-shrink: 0;
}

.plan-btn {
  margin-top: auto;
}

.subscription-meters {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: var(--shadow);
}

.subscription-meters.card-glow {
  border-color: rgba(79, 70, 229, 0.2);
}

.meter-header {
  margin-bottom: 18px;
}

.meter-header h3 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.meter-header .sub {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
}

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

.meter-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meter-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.meter-progress-bg {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.meter-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #818cf8);
  border-radius: 10px;
  transition: width 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* System Settings styling layout */
.settings-layout-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.form-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.field-helper {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: -3px;
}

.field-optional {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

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

/* Tone Suggestion Preview box */
.tone-preview-box {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: 10px;
  padding: 14px;
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: #701a75;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.preview-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #a21caf;
  display: inline-block;
}

.preview-body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #4a044e;
  font-style: italic;
  font-weight: 500;
}

.settings-actions-footer {
  position: sticky;
  bottom: 0;
  background: rgba(241, 245, 249, 0.94);
  border-top: 1px solid var(--line);
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 80;
  backdrop-filter: blur(8px);
}

.save-settings-btn {
  width: auto !important;
  padding: 0 28px;
  min-height: 46px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.4);
}

.save-settings-btn:hover {
  background: linear-gradient(180deg, #5b52f0, var(--primary-dark));
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -6px rgba(79, 70, 229, 0.45);
}

.dashboard-status-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--success);
}

/* Printable Flyer Modal Layout styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.modal-card {
  background: #ffffff;
  border-radius: 20px;
  width: 90vw;
  max-width: 440px;
  padding: 24px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1010;
  transform: translateY(20px);
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.is-active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-actions {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  margin-top: 20px;
}

.modal-actions button {
  min-height: 44px;
}

/* Printable Card Flyer */
.flyer-card-printable {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: inset 0 0 0 10px rgba(79, 70, 229, 0.02);
}

.flyer-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.flyer-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  font-weight: 900;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}

.flyer-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  max-width: none;
}

.flyer-header p {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2px 0 0;
}

.flyer-body h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px;
}

.flyer-body .instruction {
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--muted);
  margin: 0 0 20px;
}

.flyer-qr-wrapper {
  margin: 0 auto 20px;
  width: 170px;
  height: 170px;
  background: #fafafb;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  display: grid;
  place-items: center;
  padding: 10px;
}

/* Mock QR Code Details */
.mock-qr-graphic {
  width: 100%;
  height: 100%;
  position: relative;
  background: #000;
  border-radius: 8px;
}

.qr-border-corner {
  position: absolute;
  width: 38px;
  height: 38px;
  border: 10px solid #fff;
  box-sizing: border-box;
}

.qr-border-corner.top-left { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.qr-border-corner.top-right { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.qr-border-corner.bottom-left { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.qr-border-corner.bottom-right { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.mock-qr-pixels {
  position: absolute;
  top: 38px;
  left: 38px;
  right: 38px;
  bottom: 38px;
  background: 
    radial-gradient(circle, #fff 1.5px, transparent 2px) 0 0,
    radial-gradient(circle, #fff 1.5px, transparent 2px) 4px 4px;
  background-size: 8px 8px;
}

.qr-logo-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 4px;
  border: 2px solid #000;
}

.flyer-url {
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin: 10px 0 0;
  background: var(--primary-soft);
  padding: 6px 12px;
  border-radius: 6px;
  word-break: break-all;
}

.flyer-footer {
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px dashed var(--line-strong);
  margin-top: 24px;
  padding-top: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

/* Floating simulated WhatsApp Notification */
.wa-sim-notification {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 360px;
  background: #ffffff;
  border: 1px solid #dcffce;
  border-radius: 14px;
  box-shadow: 0 10px 40px -10px rgba(22, 163, 74, 0.2);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(120px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 200ms ease;
}

.wa-sim-notification.is-active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.wa-sim-header {
  background: #25d366; /* Official WhatsApp Green */
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-sim-logo {
  font-size: 1.45rem;
}

.wa-sim-title {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.wa-sim-title strong {
  font-size: 0.85rem;
  font-weight: 700;
}

.wa-sim-title span {
  font-size: 0.68rem;
  opacity: 0.85;
  font-weight: 500;
}

.wa-sim-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
}

.wa-sim-body {
  padding: 16px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #1e293b;
  background: #efeae2; /* WhatsApp chat wallpaper shade */
  max-height: 180px;
  overflow-y: auto;
}

.wa-sim-body em {
  display: block;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Print CSS */
@media print {
  body * {
    visibility: hidden;
  }
  #printableFlyer, #printableFlyer * {
    visibility: visible;
  }
  #printableFlyer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
  }
}

/* Responsive Overrides */
@media (max-width: 991px) {
  .charts-row {
    grid-template-columns: 1fr;
  }
  .grid-span-2 {
    grid-column: span 1;
  }
  .tables-layout {
    grid-template-columns: 1fr !important;
  }
  .settings-grid-layout {
    grid-template-columns: 1fr;
  }
  .qr-layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 240px;
  }
  .sidebar.is-open {
    transform: translateX(0);
  }
  .dashboard-main {
    margin-left: 0;
  }
  .dashboard-navbar {
    padding: 16px 20px;
    gap: 12px;
  }
  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .dashboard-content {
    padding: 20px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .meters-grid {
    grid-template-columns: 1fr;
  }
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .plan-card.card-glow {
    transform: none;
  }
  .settings-actions-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .save-settings-btn {
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .review-controls {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .feedback-control-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .search-field {
    width: 100%;
    max-width: none;
  }
  .filter-group {
    width: 100%;
    overflow-x: auto;
  }
  .modal-actions {
    grid-template-columns: 1fr;
  }
}

/* Categorized experience chips style system */
.categorized-topics {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.chip-category-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chip-category-title {
  margin: 0 0 2px 2px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

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

.chip-grid-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  justify-content: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  background: rgba(248, 250, 252, 0.95);
  color: #2e394d;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.chip-grid-row label:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  transform: translateY(-1px);
}

.chip-grid-row label:has(input:focus-visible) {
  outline: 3px solid rgba(20, 108, 95, 0.16);
  outline-offset: 1px;
}

.chip-grid-row input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid var(--line-strong);
  border-radius: 7px;
  background: #ffffff;
  cursor: pointer;
  position: relative;
  transition: border-color 160ms ease, background 160ms ease;
}

.chip-grid-row input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 7px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 160ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chip-grid-row input:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.chip-grid-row input:checked::after {
  transform: rotate(45deg) scale(1);
}
