.btn {
  border: none;
  font-weight: 800;
  font-size: 0.96rem;
  padding: 0.85rem 1.6rem;
  border-radius: 12px; /* Slightly more squircle-friendly radius */
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(214, 41, 118, 0.1);
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(214, 41, 118, 0.15);
}

.btn--compact {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

.btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.btn--primary {
  background: var(--insta-gradient);
  color: #fff;
  box-shadow: 0 10px 25px rgba(214, 41, 118, 0.25);
}

.btn--primary:hover {
  box-shadow: 0 15px 35px rgba(214, 41, 118, 0.35);
}

.btn--ghost,
.btn--secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border: 1px solid rgba(214, 41, 118, 0.1);
}

.btn--ghost:hover,
.btn--secondary:hover {
  background: #fff;
  border-color: var(--primary);
}

.wizard {
  display: grid;
  gap: 1.5rem;
}

.dashboard {
  display: grid;
  gap: 1.4rem;
  margin-bottom: 4rem;
}

.dashboard__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard__tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.dash-tab {
  border: 1px solid var(--border);
  background: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  font-weight: 700;
  color: #4a4d61;
  cursor: pointer;
}

.dash-tab.is-active {
  border-color: transparent;
  background: var(--insta-gradient);
  color: #fff;
  box-shadow: 0 10px 24px rgba(214, 41, 118, 0.18);
}

.dashboard__panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.dash-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.dash-table {
  overflow: auto;
}

.dash-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.dash-table th,
.dash-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #f0ecf2;
  text-align: left;
}

.status-cell {
  display: grid;
  gap: 0.35rem;
  align-items: start;
}

.status-cell select {
  max-width: 160px;
}

.action-cell {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn.danger {
  color: #c0392b;
  border: 1px solid rgba(192, 57, 43, 0.2);
}

.dash-table th {
  font-weight: 800;
  color: #1f2130;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
}

.status-pill.new { background: #fef3f8; color: #b31269; }
.status-pill.quote { background: #f1f6ff; color: #1f6feb; }
.status-pill.follow { background: #fff9e6; color: #9a6b00; }
.status-pill.closed { background: #eefaf1; color: #1a7f3d; }

.dash-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

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

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(4px);
}

.modal__card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 1.2rem;
  width: min(420px, 92vw);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  z-index: 1;
  max-height: 85vh;
  overflow: auto;
}

.modal__card--wide {
  width: min(720px, 95vw);
}

.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal__close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.lead-detail-grid {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.lead-menu-list {
  margin: 0.3rem 0 0;
  padding-left: 1.1rem;
}

.lead-menu-list li {
  margin-bottom: 0.25rem;
}

.quote-body {
  display: grid;
  gap: 0.6rem;
}

.quote-lead-info {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: start;
}

.quote-lead-info p {
  margin: 0 0 0.3rem;
}

.quote-menu-block {
  margin-top: 0.5rem;
}

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

.quote-summary {
  display: grid;
  gap: 0.35rem;
  padding: 0.8rem;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.quote-summary div {
  display: flex;
  justify-content: space-between;
  color: #3b3e51;
}

.quote-summary__grand {
  border-top: 1px solid var(--border);
  padding-top: 0.35rem;
  font-size: 1.05rem;
}

.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-start;
}

.quote-hint {
  color: #606476;
  font-size: 0.9rem;
  margin: 0.2rem 0 0;
}

.quote-branding {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--border);
  color: #3b3e51;
  line-height: 1.5;
}

.quote-branding a {
  color: inherit;
  text-decoration: none;
}

.quote-actions-bar {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), #fff);
  padding: 0.8rem 0 0.2rem;
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
}

@media (max-width: 640px) {
  .quote-actions {
    flex-direction: column;
  }
  .quote-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .date-input-wrap {
    grid-template-columns: 1fr;
  }
  .date-input-trigger {
    width: 100%;
  }
}

.planner__intro.card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 252, 0.96));
  box-shadow: 0 20px 50px rgba(150, 93, 146, 0.08);
}

.stepper-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.stepper-copy h2 {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
  font-weight: 850;
  color: #1a1a2e;
}

.stepper-copy p {
  margin: 0;
  color: var(--muted);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  align-items: stretch;
  justify-items: stretch;
}

.stepper__item {
  text-align: center;
  background: #fff;
  border: 1.5px solid rgba(231, 215, 226, 0.8);
  border-radius: 18px;
  padding: 0.75rem 0.85rem 1rem;
  font-weight: 700;
  color: var(--muted);
  min-height: 100px;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.stepper__bullet {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(214, 41, 118, 0.14);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1rem;
  background: #fff;
  color: #6c6f81;
  transition: all 0.25s ease;
}

.stepper__label {
  display: block;
  font-size: 0.95rem;
  color: #585c6d;
}

.stepper__item.is-active {
  border-color: transparent;
  background: linear-gradient(145deg, #fff, #fff4fb);
  box-shadow: 0 12px 28px rgba(214, 41, 118, 0.12);
}

  .stepper__item.is-active .stepper__bullet {
    background: var(--insta-gradient);
    color: #fff;
    border: none;
    box-shadow: 0 10px 25px rgba(214, 41, 118, 0.35);
  }

  .stepper__item.is-active .stepper__label {
    color: #1a1a2e;
  }

.chat-intake {
  display: grid;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(214, 41, 118, 0.12);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
}

.chat-history {
  display: grid;
  gap: 0.5rem;
}

.chat-bubble {
  background: #fff;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(214, 41, 118, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.chat-bubble.is-question {
  background: linear-gradient(135deg, #fff5fb, #fdf1ff);
  border-color: rgba(214, 41, 118, 0.15);
  color: #3c3f52;
  font-weight: 800;
}

.chat-bubble.is-summary {
  background: #f8f9fb;
  color: #4a4d61;
}

.chat-input {
  display: grid;
  gap: 0.75rem;
}

.date-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  position: relative;
}

.date-input-trigger {
  white-space: nowrap;
}

.date-input-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.chat-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.chat-hint,
.chat-done {
  color: #5f6375;
  margin: 0;
  font-size: 0.94rem;
}

.stepper-notes {
  margin: 0.4rem 0 0;
  padding: 0.75rem 1rem 0.25rem;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  color: #5a5d6f;
  border-top: 1px dashed rgba(214, 41, 118, 0.18);
}

.stepper-notes li {
  font-size: 0.95rem;
}

.step h3 {
  margin-bottom: 1.2rem;
  font-size: 1.45rem;
  font-weight: 850;
  color: #1a1a2e;
}

.grid-2 {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  border: 1.5px solid var(--border);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.25s ease;
  background: rgba(255, 255, 255, 0.8);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(214, 41, 118, 0.08);
}

.error-text {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 1.2rem;
}

.package-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.package-card {
  position: relative;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(214, 41, 118, 0.08);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
}

.package-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100px; height: 100px;
  background: radial-gradient(circle at top right, rgba(214, 41, 118, 0.06), transparent 70%);
  z-index: 0;
}

.package-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(188, 24, 136, 0.12);
}

.package-card.is-selected {
  border: 2.5px solid transparent;
  background-image: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), var(--insta-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.package-card h4 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.package-card small {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--primary);
  background: rgba(214, 41, 118, 0.08);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.package-card ul {
  padding-left: 1.3rem;
  list-style: none;
}

.package-card li {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  position: relative;
}

.package-card li::before {
  content: '🌸';
  position: absolute;
  left: -1.3rem;
  font-size: 0.75rem;
}

.menu-option-wrap {
  display: grid;
  gap: 1.5rem;
}

.shuffle-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

#shuffle-menu-btn {
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
}

.menu-suggestion-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.menu-suggestion-card {
  background: linear-gradient(145deg, #ffffff, #faf7fc);
  border: 1px solid rgba(214, 41, 118, 0.12);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(214, 41, 118, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-suggestion-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(214, 41, 118, 0.08);
  border-color: rgba(214, 41, 118, 0.25);
}

.menu-suggestion-heading {
  font-size: 1.4rem;
  font-weight: 850;
  color: #1a1a2e;
  margin: 1.5rem 0 1rem;
}

.menu-suggestion__title {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a1a2e;
  border-bottom: 1.5px dashed rgba(214, 41, 118, 0.15);
  padding-bottom: 0.5rem;
}

.menu-suggestion__description {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: -0.4rem;
  margin-bottom: 0.8rem;
}

.menu-suggestion-list {
  margin: 0;
  padding-left: 1.2rem;
  list-style: none;
}

.menu-suggestion-list li {
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  position: relative;
  line-height: 1.4;
  color: #4a4d61;
}

.menu-suggestion-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: -1rem;
}

.review-list {
  display: grid;
  gap: 0.8rem;
}

.review-item {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px dashed var(--border);
}

.review-menu-summary {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.wizard__actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  position: sticky;
  bottom: 1.5rem;
  z-index: 50;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

#shuffle-menu-btn {
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
  display: none; /* Hidden by default, shown by wizard.js in Step 2 */
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1.2fr 1fr;
  }

  .stepper-panel {
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
  }
}

@media (max-width: 720px) {
  .stepper {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
  }
  .stepper__item {
    padding: 0.7rem 0.75rem 0.9rem;
    min-height: 92px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
  }
  .stepper__bullet {
    width: 52px;
    height: 52px;
    font-size: 0.95rem;
  }
  .stepper-copy h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 720px) {
  .dashboard {
    gap: 1rem;
  }
  .dashboard__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .dashboard__panel {
    padding: 1rem;
    border-radius: 16px;
  }
  .dash-panel__head {
    align-items: flex-start;
    flex-direction: column;
  }
  .dash-filter {
    width: 100%;
    display: grid;
    gap: 0.35rem;
  }
  .dash-filter label {
    font-size: 0.85rem;
    color: #4a4d61;
  }
  .dash-filter select {
    width: 100%;
    max-width: none;
  }
  .dashboard__tabs {
    width: 100%;
  }
  .dash-tab {
    flex: 1;
    text-align: center;
  }
  .dash-table {
    overflow: visible;
  }
  .dash-table table,
  .dash-table thead,
  .dash-table tbody,
  .dash-table th,
  .dash-table td,
  .dash-table tr {
    display: block;
    width: 100%;
  }
  .dash-table thead {
    position: absolute;
    left: -9999px;
  }
  .dash-table tr {
    margin-bottom: 1rem;
    border: 1px solid #f0ecf2;
    border-radius: 14px;
    padding: 0.8rem 0.9rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
    background: #fff;
  }
  .dash-table td {
    border: none;
    padding: 0.35rem 0;
    position: relative;
  }
  .dash-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 800;
    font-size: 0.82rem;
    color: #5a5d6f;
    margin-bottom: 0.1rem;
  }
  .action-cell {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.5rem;
  }
  .action-cell .btn {
    width: 100%;
    justify-content: center;
  }
  .status-cell {
    grid-template-columns: 1fr;
  }
  .status-cell select {
    max-width: none;
  }
}
