/* ─── AUTH LAYOUT ─── */
.auth-body {
  background-color: #f7f5f3;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
}

.auth-wrapper {
  width: 100%;
  max-width: 440px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* ─── BRAND ─── */
.auth-brand a {
  font-size: 20px;
  font-weight: 500;
  color: #2f3037;
  font-family: "Inter", sans-serif;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.auth-brand a span {
  color: #b5622a;
}

/* ─── CARD ─── */
.auth-card {
  width: 100%;
  background: #fff;
  border: 1px solid #e0dddb;
  border-radius: 12px;
  padding: 40px;
  box-shadow:
    0 1px 2px rgba(55, 50, 47, 0.04),
    0 4px 16px rgba(55, 50, 47, 0.06);
}

/* ─── HEADINGS ─── */
.auth-heading {
  font-family: "Instrument Serif", serif;
  font-size: 28px;
  line-height: 34px;
  font-weight: 400;
  color: #37322f;
  margin-bottom: 6px;
  text-align: center;
}

.auth-subheading {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #605a57;
  text-align: center;
  margin-bottom: 32px;
}

/* ─── ALERT ─── */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
  margin-bottom: 20px;
}

.alert-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

/* ─── FORM ─── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
  color: #37322f;
  font-family: "Inter", sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.label-link {
  font-size: 12px;
  font-weight: 400;
  color: #b5622a;
  text-decoration: none;
  transition: opacity 0.2s;
}

.label-link:hover {
  opacity: 0.75;
}

.form-group input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #e0dddb;
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #37322f;
  font-family: "Inter", sans-serif;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-group input::placeholder {
  color: #b2aea9;
}

.form-group input:focus {
  border-color: #37322f;
  box-shadow: 0 0 0 3px rgba(55, 50, 47, 0.08);
}

.form-group.has-error input {
  border-color: #ef4444;
}

.form-group.has-error input:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.field-error {
  font-size: 12px;
  line-height: 16px;
  color: #ef4444;
  font-weight: 400;
}

/* ─── PASSWORD TOGGLE ─── */
.input-with-toggle {
  position: relative;
}

.input-with-toggle input {
  padding-right: 44px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #b2aea9;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: #37322f;
}

/* ─── SUBMIT BUTTON ─── */
.btn-submit {
  width: 100%;
  height: 42px;
  padding: 0 24px;
  background-color: #37322f;
  color: #fbfaf9;
  border: none;
  border-radius: 99px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  box-shadow: 0px 2px 4px rgba(55, 50, 47, 0.16);
  transition:
    background-color 0.2s,
    transform 0.1s;
  margin-top: 4px;
}

.btn-submit:hover {
  background-color: #b5622a;
}

.btn-submit:active {
  transform: scale(0.99);
}

/* ─── FOOTER TEXT ─── */
.auth-footer-text {
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
  color: #605a57;
  text-align: center;
  margin-top: 24px;
}

.auth-footer-text a {
  color: #37322f;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #e0dddb;
  padding-bottom: 1px;
  transition: border-color 0.2s;
}

.auth-footer-text a:hover {
  border-color: #37322f;
}

/* ─── REGISTER EXTRAS ─── */
.auth-wrapper--wide {
  max-width: 520px;
}

.auth-trial-badge {
  width: fit-content;
  margin: 0 auto 20px;
  padding: 6px 14px;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  color: #15803d;
  font-family: "Inter", sans-serif;
  text-align: center;
}

.auth-form-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b2aea9;
  font-family: "Inter", sans-serif;
}

.auth-divider {
  height: 1px;
  background: #e0dddb;
  margin: 4px 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.label-optional {
  font-size: 11px;
  font-weight: 400;
  color: #b2aea9;
}

/* ─── SELECT ─── */
.select-wrapper {
  position: relative;
}

.select-wrapper select {
  width: 100%;
  height: 40px;
  padding: 0 36px 0 14px;
  background: #fff;
  border: 1px solid #e0dddb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  color: #37322f;
  font-family: "Inter", sans-serif;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.select-wrapper select:focus {
  border-color: #37322f;
  box-shadow: 0 0 0 3px rgba(55, 50, 47, 0.08);
}

.select-wrapper select option[value=""] {
  color: #b2aea9;
}

.select-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #b2aea9;
  pointer-events: none;
}

/* ─── TERMS ─── */
.auth-terms {
  font-size: 12px;
  line-height: 18px;
  color: #b2aea9;
  text-align: center;
  font-family: "Inter", sans-serif;
}

.auth-terms a {
  color: #605a57;
  text-decoration: none;
  border-bottom: 1px solid #e0dddb;
  padding-bottom: 1px;
  transition: border-color 0.2s;
}

.auth-terms a:hover {
  border-color: #605a57;
}

/* ─── FORMS PAGE ─── */
.plan-limit-note {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-muted);
  margin-left: 4px;
}

.form-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 3px;
}

.form-slug {
  font-size: 11px;
  color: var(--ink-muted);
  font-family: monospace;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
}

.status-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.active {
  color: #15803d;
}
.status-dot.active::before {
  background: #22c55e;
}
.status-dot.inactive {
  color: var(--ink-muted);
}
.status-dot.inactive::before {
  background: var(--ink-muted);
}

.threshold-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--copper-pale);
  border: 1px solid rgba(181, 98, 42, 0.15);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 500;
  color: var(--copper);
}

.row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.btn-danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.btn-danger:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

/* ─── MODALS ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(55, 50, 47, 0.4);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(55, 50, 47, 0.15);
}

.modal-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.modal-icon--danger {
  filter: grayscale(0.3);
}

.modal-title {
  font-family: "Instrument Serif", serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 10px;
}

.modal-text {
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-light);
  margin-bottom: 24px;
  max-width: 250px;
  margin-left: auto;
  margin-right: auto;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* ─────────────────────────────────────────
   FORM BUILDER
   ───────────────────────────────────────── */
.builder-layout {
  display: grid;
  grid-template-columns: 560px 1fr;
  gap: 0;
  min-height: calc(100vh - var(--topbar-h));
  margin: -28px;
}

/* ─── LEFT SETTINGS ─── */
.builder-settings {
  border-right: 1px solid var(--border);
  overflow-y: auto;
  background: var(--white);
  max-height: calc(100vh - var(--topbar-h));
  position: sticky;
  top: var(--topbar-h);
}

.builder-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
}

.builder-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-muted);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.15s;
}

.builder-back:hover {
  color: var(--ink);
}

.builder-header h2 {
  font-family: "Instrument Serif", serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
}

.builder-section {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.builder-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.builder-section-num {
  color: var(--copper);
  font-family: "Instrument Serif", serif;
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
}

.section-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 500;
  background: var(--copper-pale);
  color: var(--copper);
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: none;
  letter-spacing: 0;
}

.builder-section-desc {
  font-size: 12.5px;
  color: var(--ink-light);
  line-height: 18px;
  margin-top: -6px;
}

/* Form elements inside builder */
.builder-settings .form-group {
  gap: 5px;
}

.builder-settings .form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-mid);
}

.builder-settings input[type="text"],
.builder-settings input[type="url"],
.builder-settings select {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 13px;
  color: var(--ink);
  font-family: "Inter", sans-serif;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.builder-settings input:focus,
.builder-settings select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(55, 50, 47, 0.07);
  background: var(--white);
}

.field-hint {
  font-size: 11.5px;
  color: var(--ink-muted);
  line-height: 16px;
}

/* Color input */
.color-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
}

.color-input-wrap input[type="color"] {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 5px;
  padding: 0;
  cursor: pointer;
  background: none;
}

.color-hex {
  font-size: 12px;
  font-family: monospace;
  color: var(--ink-mid);
}

/* Threshold selector */
.threshold-selector {
  display: flex;
  gap: 6px;
}

.threshold-btn {
  flex: 1;
  height: 36px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  background: var(--bg);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-light);
  cursor: pointer;
  transition: all 0.15s;
  font-family: "Inter", sans-serif;
}

.threshold-btn.active {
  background: var(--copper-pale);
  border-color: var(--copper);
  color: var(--copper);
}

/* Radio group */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.radio-item:has(input:checked) {
  border-color: var(--copper);
  background: var(--copper-pale);
}

.radio-item input[type="radio"] {
  margin-top: 2px;
  accent-color: var(--copper);
  flex-shrink: 0;
  margin-left: 46%;
}

.radio-item span {
  position: absolute;
  font-size: 12.5px;
  line-height: 18px;
  color: var(--ink-mid);
}

.radio-item strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 1px;
}

/* Preset categories */
.preset-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preset-btn {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--bg);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-mid);
  cursor: pointer;
  transition: all 0.15s;
  font-family: "Inter", sans-serif;
}

.preset-btn:hover {
  border-color: var(--copper);
  color: var(--copper);
  background: var(--copper-pale);
}

/* Questions list */
.questions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 8px;
}

.question-item {
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.question-drag {
  color: var(--ink-muted);
  cursor: grab;
  flex-shrink: 0;
}

.question-body {
  flex: 1;
  min-width: 0;
}

.question-text-input {
  width: 100% !important;
  height: 28px !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: 0 !important;
  padding: 0 4px !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

.question-text-input:focus {
  border-bottom-color: var(--copper) !important;
  box-shadow: none !important;
}

.question-remove {
  color: var(--ink-muted);
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 4px;
  border-radius: 4px;
  transition:
    color 0.15s,
    background 0.15s;
  display: flex;
  align-items: center;
}

.question-remove:hover {
  color: #b91c1c;
  background: #fef2f2;
}

/* Save bar */
.builder-save {
  padding: 20px 24px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}

/* ─── RIGHT PREVIEW ─── */
.builder-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--bg);
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
}

.preview-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.preview-phone {
  width: 300px;
  background: var(--white);
  border-radius: 24px;
  box-shadow:
    0 0 0 8px rgba(55, 50, 47, 0.06),
    0 24px 64px rgba(55, 50, 47, 0.12);
  overflow: hidden;
}

.preview-form {
  padding: 28px 24px;
}

.pf-header {
  text-align: center;
  margin-bottom: 20px;
}

.pf-business-name {
  font-family: "Instrument Serif", serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 4px;
}

.pf-tagline {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

.pf-question {
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.5;
}

.pf-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.pf-star {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.15s;
}

.pf-star:hover {
  transform: scale(1.1);
}
.pf-star.selected {
  background: var(--copper-pale);
}

.pf-result {
  margin-top: 12px;
}

.pf-result-text {
  font-size: 12px;
  text-align: center;
  color: var(--ink-light);
  margin-bottom: 12px;
  line-height: 1.5;
}

.pf-google-btn {
  width: 100%;
  padding: 10px;
  background: var(--copper);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}

.pf-q-item {
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--ink-mid);
  margin-bottom: 6px;
}

.preview-note {
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--ink-muted);
  text-align: center;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .builder-layout {
    grid-template-columns: 1fr;
    margin: -20px -16px;
  }

  .builder-settings {
    max-height: none;
    position: relative;
  }

  .builder-preview {
    position: relative;
    height: auto;
    padding: 32px 16px;
  }
}

/* ─── QUESTIONS ─── */
.q-filter-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
}

.q-tab {
  flex: 1;
  padding: 6px 8px;
  border: none;
  border-radius: 6px;
  background: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-light);
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: all 0.15s;
  white-space: nowrap;
}

.q-tab.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(55, 50, 47, 0.1);
}

.preset-label {
  font-size: 11.5px;
  color: var(--ink-muted);
  font-weight: 500;
}

.add-question-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  background: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-light);
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: all 0.15s;
  margin-top: 4px;
}

.add-question-btn:hover {
  border-color: var(--copper);
  color: var(--copper);
  background: var(--copper-pale);
}

/* Question item */
.question-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.qi-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg);
}

.qi-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-muted);
  padding: 2px;
  display: flex;
  align-items: center;
  transition:
    transform 0.2s,
    color 0.15s;
  flex-shrink: 0;
}

.qi-toggle:hover {
  color: var(--ink);
}

.qi-settings {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qi-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.qi-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qi-field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.qi-field input[type="text"],
.qi-field select {
  height: 32px !important;
  font-size: 12px !important;
  padding: 0 10px !important;
}

/* Options */
.qi-options-wrap {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qi-options-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.qi-options-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qi-option-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qi-option-row input {
  flex: 1;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background: var(--bg);
  outline: none;
}

.qi-option-row input:focus {
  border-color: var(--copper);
  background: var(--white);
}

.qi-remove-option {
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.15s;
  flex-shrink: 0;
}

.qi-remove-option:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.qi-add-option {
  font-size: 12px;
  font-weight: 500;
  color: var(--copper);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: "Inter", sans-serif;
  text-align: left;
  transition: opacity 0.15s;
}

.qi-add-option:hover {
  opacity: 0.7;
}

/* ── RESPONSES PAGE ── */
.filters-bar {
  margin-bottom: 20px;
}
.filters-bar form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.filter-group label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}
.filter-group input[type="date"] {
  height: 34px;
  padding: 0 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 13px;
  color: var(--ink);
  font-family: "Inter", sans-serif;
  outline: none;
}
.filter-group .select-wrapper select {
  height: 34px;
  padding: 0 28px 0 10px;
  font-size: 13px;
  min-width: 110px;
}
.filter-clear {
  align-self: flex-end;
  font-size: 12px;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
}
.filter-clear:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.star-display {
  font-size: 14px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.star-display.star-5 {
  color: #eab308;
}
.star-display.star-4 {
  color: #f59e0b;
}
.star-display.star-3 {
  color: #f97316;
}
.star-display.star-2 {
  color: #ef4444;
}
.star-display.star-1 {
  color: #dc2626;
}

.response-form-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.response-location {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}
.response-date {
  font-size: 12.5px;
  color: var(--ink-mid);
  white-space: nowrap;
}
.response-date span {
  display: block;
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 1px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 500;
}
.badge-new {
  background: #eff6ff;
  color: #1d4ed8;
}
.badge-read {
  background: #f3f4f6;
  color: #374151;
}
.badge-resolved {
  background: #f0fdf4;
  color: #15803d;
}
.badge-flagged {
  background: #fff7ed;
  color: #c2410c;
}

.status-menu-wrap {
  position: relative;
}
.status-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(55, 50, 47, 0.12);
  z-index: 50;
  min-width: 160px;
  padding: 4px;
}
.status-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}
.status-menu button:hover {
  background: var(--bg);
}
.status-menu button.danger {
  color: #b91c1c;
}
.status-menu button.danger:hover {
  background: #fef2f2;
}
.status-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.answers-row td {
  padding: 0 !important;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.answers-panel {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.answers-loading,
.answers-empty {
  font-size: 13px;
  color: var(--ink-muted);
  padding: 4px 0;
}
.answer-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.answer-question {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.answer-text {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.5;
  padding: 8px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}
.page-btn {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--white);
  transition: border-color 0.15s;
}
.page-btn:hover {
  border-color: var(--ink);
  background: var(--bg);
}
.page-info {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.table-wrap table {
  overflow: visible;
}

.table-wrap {
  overflow: visible;
}

/* ── ANALYTICS ── */
.analytics-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.period-tabs {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.period-tab {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: all 0.15s;
}
.period-tab.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(55, 50, 47, 0.1);
}
.analytics-range {
  font-size: 12px;
  color: var(--ink-muted);
}

.analytics-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.analytics-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.ac-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.ac-value {
  font-family: "Instrument Serif", serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}
.ac-unit {
  font-size: 16px;
  color: var(--ink-muted);
}
.ac-sub {
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.delta {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 99px;
}
.delta-up {
  background: #f0fdf4;
  color: #15803d;
}
.delta-down {
  background: #fef2f2;
  color: #b91c1c;
}

.ac-rating-dist {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}
.dist-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dist-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
  width: 20px;
  flex-shrink: 0;
}
.dist-bar-wrap {
  flex: 1;
  height: 6px;
  background: var(--bg);
  border-radius: 99px;
  overflow: hidden;
}
.dist-bar {
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s ease;
  min-width: 2px;
}
.dist-pct {
  font-size: 11px;
  color: var(--ink-muted);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

.analytics-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.chart-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.chart-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.chart-wrap {
  height: 200px;
  position: relative;
}

.section-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.section-card-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.category-scores {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cat-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cat-left {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 200px;
  flex-shrink: 0;
}
.cat-icon {
  font-size: 16px;
}
.cat-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.cat-mentions {
  font-size: 11px;
  color: var(--ink-muted);
  margin-left: auto;
}
.cat-right {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cat-bar-wrap {
  flex: 1;
  height: 6px;
  background: var(--bg);
  border-radius: 99px;
  overflow: hidden;
}
.cat-bar {
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s ease;
}
.cat-score {
  font-size: 13px;
  font-weight: 600;
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

.heatmap-wrap {
  overflow-x: auto;
}
.heatmap-hours {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}
.heatmap-corner {
  width: 36px;
  flex-shrink: 0;
}
.heatmap-hlabel {
  flex: 1;
  min-width: 20px;
  text-align: center;
  font-size: 10px;
  color: var(--ink-muted);
}
.heatmap-row {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 2px;
}
.heatmap-dlabel {
  width: 36px;
  font-size: 11px;
  color: var(--ink-muted);
  flex-shrink: 0;
}
.heatmap-cell {
  flex: 1;
  min-width: 20px;
  height: 20px;
  border-radius: 3px;
  background: rgba(181, 98, 42, var(--opacity));
  background-color: color-mix(
    in srgb,
    #b5622a calc(var(--opacity) * 100%),
    #f0edeb
  );
}
.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-muted);
}
.heatmap-legend-bar {
  flex: 1;
  max-width: 120px;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(to right, #f0edeb, #b5622a);
}

@media (max-width: 900px) {
  .analytics-cards {
    grid-template-columns: 1fr 1fr;
  }
  .analytics-charts {
    grid-template-columns: 1fr;
  }
  .cat-row {
    display: flex;
    flex-direction: column;
    align-items: unset;
  }
  .cat-left {
    width: unset;
  }
}
@media (max-width: 540px) {
  .analytics-cards {
    grid-template-columns: 1fr;
  }
}

/* ── QR PAGE ── */
.qr-page {
  max-width: 1920px;
}

.qr-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qr-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

/* Left — preview */
.qr-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 20px;
  background: var(--bg);
  border-right: 1px solid var(--border);
}

.qr-preview-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(55, 50, 47, 0.06);
}

.qr-canvas {
  display: block;
  width: 160px;
  height: 160px;
  image-rendering: pixelated;
}

.qr-dl-btns {
  display: flex;
  gap: 6px;
}

.qr-scan-count {
  font-size: 11.5px;
  color: var(--ink-muted);
  font-weight: 500;
}

/* Right — settings */
.qr-right {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qr-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.qr-form-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  font-family: "Instrument Serif", serif;
}

.qr-location {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.qr-form-link {
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 5px;
  transition:
    color 0.15s,
    background 0.15s;
  flex-shrink: 0;
  margin-top: 2px;
}
.qr-form-link:hover {
  color: var(--copper);
  background: var(--copper-pale);
}

.qr-settings-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qr-settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 10px;
}

.qr-logo-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-mid);
  cursor: pointer;
  width: fit-content;
}
.qr-logo-toggle input {
  accent-color: var(--copper);
}

.qr-save-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
  margin-top: 2px;
}

.qr-url-copy {
  font-size: 12px;
  color: var(--ink-muted);
  cursor: pointer;
  font-family: monospace;
  transition: color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}
.qr-url-copy:hover {
  color: var(--copper);
}

/* Responsive */
@media (max-width: 700px) {
  .qr-card {
    grid-template-columns: 1fr;
  }
  .qr-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 20px;
    flex-direction: row;
    justify-content: flex-start;
  }
  .qr-settings-row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .qr-settings-row {
    grid-template-columns: 1fr;
  }
}
/* ── SETTINGS ── */
.settings-layout {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-tabs {
  display: flex;
  gap: 2px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
}

.settings-tab {
  padding: 7px 18px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: all 0.15s;
}
.settings-tab.active {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(55, 50, 47, 0.1);
}
.settings-tab:hover:not(.active) {
  color: var(--ink);
}

.settings-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.settings-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.settings-save {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

/* Current plan banner */
.current-plan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.current-plan-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.current-plan-name {
  font-family: "Instrument Serif", serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 4px;
}
.current-plan-trial {
  font-size: 12px;
  color: var(--ink-muted);
}
.current-plan-price {
  font-family: "Instrument Serif", serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  text-align: right;
}
.current-plan-price span {
  font-size: 14px;
  color: var(--ink-muted);
  font-family: "Inter", sans-serif;
}

/* Plan cards */
.plan-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.plan-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: border-color 0.2s;
}
.plan-card--current {
  border-color: var(--copper);
  background: var(--copper-pale);
}
.plan-card--featured {
  border-color: #7c3aed;
}

.plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #7c3aed;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 99px;
  white-space: nowrap;
}

.plan-card-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.plan-name {
  font-family: "Instrument Serif", serif;
  font-size: 22px;
  font-weight: 400;
}
.plan-price {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}
.plan-price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-muted);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-mid);
}
.plan-features li svg {
  color: var(--copper);
  flex-shrink: 0;
}

.plan-card-footer {
  margin-top: 4px;
}
.plan-card-footer .btn {
  width: 100%;
  justify-content: center;
}

/* Comparison table */
.compare-table-wrap {
  overflow-x: auto;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.compare-table th {
  padding: 8px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
}
.compare-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-mid);
}
.compare-table tr:last-child td {
  border-bottom: none;
}
.compare-table td.compare-active {
  font-weight: 600;
  color: var(--ink);
}
.compare-table td.check-yes {
  color: #15803d;
  font-weight: 600;
}
.compare-table td.check-no {
  color: #d1d5dc;
}

/* ── MODALS ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(55, 50, 47, 0.45);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(2px);
}
.modal-card {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(55, 50, 47, 0.16);
  overflow: hidden;
}
.modal-title {
  font-family: "Instrument Serif", serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  padding: 20px 24px 0;
}
.modal-body {
  padding: 16px 24px;
}
.modal-price-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-price-label {
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 500;
}
.modal-price-val {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.modal-contact-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: #1e40af;
  line-height: 1.5;
}
.modal-contact-note svg {
  flex-shrink: 0;
  margin-top: 1px;
}
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 640px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .plan-cards {
    grid-template-columns: 1fr;
  }
  .settings-tabs {
    width: 100%;
  }
  .settings-tab {
    flex: 1;
    text-align: center;
  }
}

/* ── REVIEWS PAGE ── */
.reviews-page {
  max-width: 1920px;
}

.review-filter-tabs {
  display: flex;
  gap: 3px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}

.rfTab {
  padding: 5px 12px;
  border: none;
  border-radius: 6px;
  background: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: all 0.15s;
}
.rfTab.active {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(55, 50, 47, 0.1);
}
.rfTab:hover:not(.active) {
  color: var(--ink);
}

/* Review cards */
.reviews-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  min-height: 200px;
}

/* Left — the review */
.review-left {
  padding: 22px 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.reviewer-photo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.reviewer-info {
  flex: 1;
}

.reviewer-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-stars {
  display: flex;
  gap: 1px;
}

.review-time {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.google-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: auto;
  margin-top: 2px;
}

.review-text {
  font-size: 13.5px;
  color: var(--ink-mid);
  line-height: 1.65;
  flex: 1;
}

.btn-generate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid var(--copper);
  border-radius: 8px;
  background: none;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--copper);
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: all 0.15s;
  width: fit-content;
}
.btn-generate:hover:not(:disabled) {
  background: var(--copper-pale);
}
.btn-generate:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Right — AI reply */
.review-right {
  padding: 22px 24px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.reply-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink-muted);
  font-size: 12.5px;
  text-align: center;
}

.reply-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-muted);
  font-size: 13px;
  padding: 20px 0;
}

.reply-error {
  font-size: 13px;
  color: #b91c1c;
  padding: 12px;
  background: #fef2f2;
  border-radius: 8px;
  border: 1px solid #fecaca;
}

.reply-generated {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.reply-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.reply-textarea {
  flex: 1;
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
}
.reply-textarea:focus {
  border-color: var(--copper);
}

.reply-actions {
  display: flex;
  gap: 8px;
}

.btn-copy {
  padding: 7px 16px;
  background: var(--copper);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: opacity 0.15s;
}
.btn-copy:hover {
  opacity: 0.85;
}

.btn-regenerate {
  padding: 7px 14px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: all 0.15s;
}
.btn-regenerate:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* Spinner */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.spin {
  animation: spin 0.8s linear infinite;
}

@media (max-width: 700px) {
  .review-card {
    grid-template-columns: 1fr;
  }
  .review-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

/* ── Onboarding-specific extras ── */
.onboarding-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.ob-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #b2aea9;
  font-family: "Inter", sans-serif;
}

.ob-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #e0dddb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.ob-step.done .ob-step-num {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.ob-step.active .ob-step-num {
  background: #37322f;
  border-color: #37322f;
  color: #fff;
}

.ob-step.active {
  color: #37322f;
}

.ob-step-sep {
  width: 24px;
  height: 1px;
  background: #e0dddb;
  flex-shrink: 0;
}

/* Search box — PlaceAutocompleteElement wrapper */
.place-search-wrap {
  position: relative;
}

/* Make the web component's internal input match your design system */
#placeAutocompleteContainer {
  display: block;
}

gmp-place-autocomplete {
  width: 100%;
  display: block;
}

/* The element renders a standard input — override via its exposed part */
gmp-place-autocomplete::part(input) {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #e0dddb;
  border-radius: 8px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  color: #37322f;
  outline: none;
  box-sizing: border-box;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

gmp-place-autocomplete::part(input):focus {
  border-color: #37322f;
  box-shadow: 0 0 0 3px rgba(55, 50, 47, 0.08);
}

/* Selected place card */
.place-selected-card {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #f7f5f3;
  border: 1.5px solid #e0dddb;
  border-radius: 10px;
  margin-top: 10px;
}

.place-selected-card.visible {
  display: flex;
}

.place-selected-icon {
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid #e0dddb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #b5622a;
}

.place-selected-info {
  flex: 1;
  min-width: 0;
}

.place-selected-name {
  font-size: 13px;
  font-weight: 600;
  color: #37322f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.place-selected-addr {
  font-size: 11.5px;
  color: #605a57;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.place-selected-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 11.5px;
  color: #b5622a;
  font-weight: 600;
}

.place-clear-btn {
  background: none;
  border: none;
  color: #b2aea9;
  cursor: pointer;
  padding: 4px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition:
    color 0.15s,
    background 0.15s;
}

.place-clear-btn:hover {
  color: #37322f;
  background: #e0dddb;
}

/* Why card */
.why-card {
  background: #fffbf7;
  border: 1px solid rgba(181, 98, 42, 0.18);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 4px;
}

.why-card-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.why-card-text {
  font-size: 12px;
  line-height: 18px;
  color: #605a57;
}

.why-card-text strong {
  color: #37322f;
  font-weight: 600;
}

/* Skip link */
.skip-link {
  display: block;
  text-align: center;
  font-size: 12px;
  color: #b2aea9;
  margin-top: 16px;
  text-decoration: none;
  transition: color 0.2s;
}

.skip-link:hover {
  color: #605a57;
}

/* Loading state for button */
.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Layout overrides for onboarding page */
.onboarding-main {
  margin-left: 0 !important;
  padding: 0 !important;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f7f5f3;
}

.onboarding-main .page-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.onboarding-main .page-header {
  text-align: center;
}

.onboarding-main .page-header-left {
  margin: 0 auto;
  align-items: center;
}

/* ═══════════════════════════════════════════════
   RESPONSES PAGE — MOBILE CARD LAYOUT
   Paste into app.css (or responses-specific file)
   Triggers at ≤ 640px
   ═══════════════════════════════════════════════ */

@media (max-width: 640px) {
  /* ── Filters: stack vertically ── */
  .filters-bar form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .filter-group {
    width: 100%;
  }

  .filter-group .select-wrapper,
  .filter-group .select-wrapper select {
    width: 100%;
    min-width: unset;
  }

  .filter-group input[type="date"] {
    width: 100%;
    box-sizing: border-box;
  }

  .filter-clear {
    align-self: flex-start;
  }

  /* ── Table → Cards ── */
  .table-wrap table {
    display: block;
  }
  .table-wrap thead {
    display: none;
  }
  .table-wrap tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
  }

  /* Each response-row becomes a card */
  .table-wrap tr.response-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    position: relative;
  }

  /* All tds: reset table display */
  .table-wrap tr.response-row td {
    display: block;
    padding: 0;
    border: none;
    background: none;
  }

  /* td 1: Stars — left, shares row 1 with form name */
  .table-wrap tr.response-row td:nth-child(1) {
    order: 3;
    flex: 0 0 auto;
    align-self: center;
  }

  /* td 2: Form name + location — fills row 1 */
  .table-wrap tr.response-row td:nth-child(2) {
    order: 1;
    flex: 1 1 50%;
    min-width: 0;
  }
  .table-wrap tr.response-row td:nth-child(2) .response-location {
    max-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* td 6: Actions — top-right */
  .table-wrap tr.response-row td:nth-child(6) {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .table-wrap tr.response-row .row-actions {
    align-items: flex-end;
    gap: 5px;
  }

  /* Meta strip: Google + Durum + Tarih on one line below */
  .table-wrap tr.response-row td:nth-child(3) {
    order: 9;
    flex: 0 0 100%;
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    margin-top: 4px;
    gap: 0;
  }

  .table-wrap tr.response-row td:nth-child(4) {
    order: 8;
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    font-size: 12px;
  }

  .table-wrap tr.response-row td:nth-child(5) {
    order: 6;
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    font-size: 12px;
    gap: 10px;
  }

  /* Dot separators between meta items */
  .table-wrap tr.response-row td:nth-child(3)::after,
  .table-wrap tr.response-row td:nth-child(4)::after {
    content: "·";
    color: var(--ink-muted);
    margin: 0 7px;
  }

  /* Date: time inline */
  .response-date {
    white-space: nowrap;
  }
  .response-date span {
    display: inline;
    margin-left: 3px;
  }

  /* ── Answers expand row ── */
  .table-wrap tr.answers-row {
    display: block;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    margin-top: -10px;
    background: var(--bg);
    overflow: hidden;
  }

  .table-wrap tr.answers-row td {
    display: block;
    width: 100%;
    padding: 0;
  }

  /* ── Pagination ── */
  .pagination {
    padding: 16px;
    gap: 10px;
  }

  /* ── table-wrap itself must not overflow ── */
  .table-wrap {
    overflow: hidden;
  }
}

/* ── Performance Spectrum ── */
.perf-spectrum-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.perf-track-wrapper {
  position: relative;
  margin: 40px 16px 20px 16px;
  height: 8px;
  background: var(--surface);
  border-radius: 4px;
  border: 1px solid var(--border);
}

.perf-track-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #22c55e 100%);
  opacity: 0.15;
  width: 100%;
}

.perf-pin {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: var(--bg);
  border: 2px solid var(--ink-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-muted);
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  cursor: default;
}

.perf-pin:hover {
  z-index: 30;
  transform: translate(-50%, -50%) scale(1.1);
}

.perf-pin .pin-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  font-weight: 500;
}

.perf-pin .pin-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--ink);
}

.perf-pin:hover .pin-tooltip {
  opacity: 1;
}

.perf-pin.main-biz {
  width: 32px;
  height: 32px;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
  z-index: 20;
  box-shadow: 0 0 0 0 rgba(181, 98, 42, 0.4);
  animation: pulse-pin 2s infinite;
}

.perf-pin.main-biz .pin-tooltip {
  bottom: calc(100% + 12px);
  background: var(--copper);
}
.perf-pin.main-biz .pin-tooltip::after {
  border-top-color: var(--copper);
}

@keyframes pulse-pin {
  0% {
    box-shadow: 0 0 0 0 rgba(181, 98, 42, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(181, 98, 42, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(181, 98, 42, 0);
  }
}

.perf-scale-labels {
  position: absolute;
  top: calc(100% + 12px);
  left: -10px;
  right: -10px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 500;
}

/* Pro Plan CTA Hover Effect */
.perf-spectrum-card .perf-cta-overlay {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.perf-spectrum-card:hover .perf-cta-overlay {
  opacity: 1;
  visibility: visible;
}

/* Always show Pro CTA on mobile devices */
@media (max-width: 768px) {
  .perf-spectrum-card .perf-cta-overlay {
    opacity: 1;
    visibility: visible;
  }
}
