.modal-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.45);
  align-items: center; justify-content: center;
  padding: 16px;
}
.modal-backdrop.open { display: flex; }

.modal-card {
  background: #fff;
  border-radius: 16px;
  width: 100%; max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  position: relative;
  display: flex; flex-direction: column;
}

.modal-banner {
  background: #FEF9C3;
  color: #713F12;
  font-size: 11px; font-weight: 500;
  text-align: center;
  padding: 7px 16px;
  border-radius: 16px 16px 0 0;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.modal-inner { padding: 24px; flex: 1; }

.modal-close {
  position: absolute; top: 12px; right: 14px;
  font-size: 22px; color: #888; background: none; border: none;
  cursor: pointer; line-height: 1; z-index: 10;
  transition: color 0.15s;
}
.modal-close:hover { color: #333; }

.modal-tabs {
  display: flex; border-bottom: 1px solid #E5EEF5;
  margin-bottom: 20px;
}
.modal-tab {
  flex: 1; padding: 10px; text-align: center;
  font-size: 13px; font-weight: 500; color: #5A7080;
  cursor: pointer; border-bottom: 2px solid transparent;
  transition: all 0.15s;
  background: none; border-left: none; border-right: none; border-top: none;
  font-family: var(--font-sans);
}
.modal-tab.active { color: #2B6CB0; border-bottom-color: #2B6CB0; }

.spruce-phone {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.spruce-header {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
}

.spruce-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #2B6CB0, #2BB5A4);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 600; flex-shrink: 0;
}

.spruce-header-info { flex: 1; }
.spruce-header-name { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.spruce-header-cred { font-size: 11px; color: #888; }

.spruce-messages {
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
  min-height: 200px;
}

.bubble { max-width: 80%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.5; }
.bubble-parent { background: #F0F0F0; color: #1a1a1a; align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble-provider { background: #4EC5B5; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble-label { font-size: 10px; color: #999; margin-bottom: 3px; }
.bubble-label-right { text-align: right; }

.spruce-stat {
  padding: 10px 16px; border-top: 1px solid #f0f0f0;
  font-size: 12px; color: #4EC5B5; font-weight: 500;
  display: flex; align-items: center; gap: 6px;
}
.spruce-stat::before { content: '⚡'; font-size: 12px; }

.spruce-inbox { display: none; flex-direction: column; gap: 0; }
.spruce-inbox.visible { display: flex; }
.spruce-inbox-header { padding: 14px 16px; font-size: 14px; font-weight: 600; color: #1a1a1a; border-bottom: 1px solid #f0f0f0; }
.inbox-thread { padding: 14px 16px; border-bottom: 1px solid #f7f7f7; display: flex; gap: 12px; align-items: center; cursor: pointer; }
.inbox-thread:hover { background: #f9f9f9; }
.inbox-avatar { width: 40px; height: 40px; border-radius: 50%; background: #E8F4F4; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: #2BB5A4; flex-shrink: 0; }
.inbox-info { flex: 1; min-width: 0; }
.inbox-name { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.inbox-preview { font-size: 12px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.inbox-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.inbox-time { font-size: 11px; color: #aaa; }
.inbox-unread { width: 8px; height: 8px; border-radius: 50%; background: #4EC5B5; }

.hint-progress { display: flex; gap: 8px; margin-bottom: 24px; align-items: center; }
.hint-step-dot { flex: 1; height: 4px; border-radius: 2px; background: #E5EEF5; transition: background 0.2s; }
.hint-step-dot.done { background: #4EC5B5; }
.hint-step-label { font-size: 11px; color: #888; white-space: nowrap; }

.hint-step { display: none; }
.hint-step.active { display: block; }
.hint-step-title { font-size: 17px; font-weight: 600; color: #0F1E2E; margin-bottom: 6px; }
.hint-step-sub { font-size: 13px; color: #5A7080; margin-bottom: 20px; }

.form-field { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 500; color: #5A7080; margin-bottom: 5px; letter-spacing: 0.04em; text-transform: uppercase; }
.form-input { width: 100%; padding: 10px 12px; border: 1.5px solid #E5EEF5; border-radius: 8px; font-size: 14px; color: #0F1E2E; background: #fff; transition: border-color 0.15s; outline: none; }
.form-input:focus { border-color: #2BB5A4; }
.form-select { width: 100%; padding: 10px 12px; border: 1.5px solid #E5EEF5; border-radius: 8px; font-size: 14px; color: #0F1E2E; background: #fff; appearance: none; outline: none; }

.tier-cards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.tier-card { border: 2px solid #E5EEF5; border-radius: 12px; padding: 16px; cursor: pointer; position: relative; transition: all 0.15s; }
.tier-card:hover { border-color: #2BB5A4; }
.tier-card.selected { border-color: #2BB5A4; background: #F0FAFA; }
.tier-badge { position: absolute; top: -10px; right: 14px; background: #2BB5A4; color: #fff; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 99px; letter-spacing: 0.05em; }
.tier-name { font-size: 14px; font-weight: 600; color: #0F1E2E; }
.tier-price { font-size: 12px; color: #5A7080; margin-top: 3px; }

.review-summary { background: #F4F8FB; border-radius: 10px; padding: 16px; margin-bottom: 20px; }
.review-line { font-size: 14px; color: #0F1E2E; font-weight: 500; }
.review-sub { font-size: 12px; color: #5A7080; margin-top: 4px; }

.stripe-header { text-align: center; margin-bottom: 20px; }
.stripe-merchant { font-size: 14px; font-weight: 600; color: #0F1E2E; }
.stripe-amount { font-size: 28px; font-weight: 700; color: #0F1E2E; margin-top: 4px; }
.stripe-period { font-size: 13px; color: #5A7080; }

.stripe-field { margin-bottom: 14px; }
.stripe-label { display: block; font-size: 11px; font-weight: 500; color: #5A7080; margin-bottom: 5px; letter-spacing: 0.05em; text-transform: uppercase; }
.stripe-input { width: 100%; padding: 11px 12px; border: 1.5px solid #E5EEF5; border-radius: 6px; font-size: 14px; color: #0F1E2E; background: #fff; outline: none; }
.stripe-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stripe-cap-note { font-size: 12px; color: #5A7080; margin-bottom: 16px; }
.stripe-annual-note { font-size: 12px; color: #4EC5B5; font-weight: 500; margin-bottom: 16px; padding: 8px 12px; background: #F0FAFA; border-radius: 6px; display: none; }
.stripe-annual-note.visible { display: block; }
.stripe-fine-print { font-size: 11px; color: #888; text-align: center; margin-top: 12px; }
.stripe-powered { font-size: 11px; color: #aaa; text-align: center; margin-top: 8px; letter-spacing: 0.02em; }

.btn-primary {
  display: inline-block; width: 100%; padding: 13px 20px;
  background: #4EC5B5; color: #fff;
  border: none; border-radius: 8px;
  font-size: 15px; font-weight: 600; font-family: var(--font-sans);
  cursor: pointer; text-align: center;
  transition: background 0.15s, transform 0.1s;
  line-height: 1;
}
.btn-primary:hover { background: #3aafa0; }
.btn-primary:active { transform: scale(0.98); }
