.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
.modal.hidden { display: none !important; pointer-events: none !important; }
.modal-box {
  background: #fff; border-radius: 10px; padding: 20px; width: 100%; max-width: 360px;
  margin: auto 0; flex-shrink: 0;
}
.pay-share-modal.modal-box { margin: 12px auto; }.store-item { padding: 12px 0; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.store-item:last-child { border-bottom: none; }
.store-item .name { font-weight: 600; font-size: 15px; }
.store-card {
  border: 1px solid #eee; border-radius: 10px; padding: 14px; margin-bottom: 10px;
  background: #fafafa; transition: border-color .2s, box-shadow .2s;
}
.store-card:last-child { margin-bottom: 0; }
.store-card.active { border-color: #07c160; background: #f8fff9; box-shadow: 0 0 0 1px #07c160; }
.store-card.highlight { border-color: #ff6b35; }
.store-card.share-more-target { border-color: #07c160; animation: pulse-border 1.5s ease-in-out 2; }
.tag-just-paid {
  display: inline-block; font-size: 11px; font-weight: 600; color: #ff6b35;
  background: #fff3ee; padding: 1px 6px; border-radius: 4px; vertical-align: middle;
}
@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(7,193,96,.3); }
  50% { box-shadow: 0 0 0 4px rgba(7,193,96,.15); }
}
.store-card-main { margin-bottom: 12px; flex: 1; min-width: 0; }
.store-card-row { display: flex; gap: 12px; margin-bottom: 12px; }
.store-card-thumb {
  width: 72px; height: 72px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  background: #f0f0f0;
}
.store-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-card-thumb.placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: #07c160; background: #e8f8ef;
}
.store-card-meta { line-height: 1.45; }
.store-card-main .name { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.store-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.store-card-actions .btn { flex: 1; padding: 10px 8px; font-size: 14px; min-width: 88px; }
.store-card-actions a.btn { text-align: center; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn-outline { background: #fff; border: 1px solid #d9d9d9; color: #666; }
.home-intro h3 { margin-bottom: 6px; }
.share-action-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.share-action-row .btn { flex: 1; min-width: 100px; }
.user-bar { background: linear-gradient(135deg, #e8f8ef, #fff); }
.pay-success { color: #07c160; font-size: 36px; text-align: center; margin: 4px 0 8px; }
.pay-share-modal h3 { text-align: center; margin-bottom: 8px; }
.pay-share-actions { display: grid; gap: 10px; margin-top: 16px; }
.btn-lg { padding: 14px 16px; font-size: 16px; }
.pay-stat-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.pay-stat-row strong { color: #07c160; font-size: 18px; }
.poster-preview { margin-top: 12px; text-align: center; }
.poster-preview img { max-width: 100%; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.share-copy-box { margin-top: 12px; text-align: left; }
.share-copy-label { margin-bottom: 6px; font-weight: 600; color: #333; }
.share-text-area {
  width: 100%; padding: 10px; border: 1px solid #d9d9d9; border-radius: 8px;
  font-size: 13px; line-height: 1.5; resize: none; background: #fafafa; color: #333;
  font-family: inherit; box-sizing: border-box;
}
.share-copy-btn { margin-top: 8px; }
.post-pay-step { margin-top: 16px; padding-top: 16px; border-top: 1px dashed #eee; text-align: left; }
.post-pay-step-1 { border-top: none; padding-top: 0; margin-top: 8px; }
.step-badge {
  display: inline-block; background: #07c160; color: #fff; font-size: 12px;
  font-weight: 700; padding: 2px 10px; border-radius: 20px; margin-bottom: 8px;
}
.step-badge-secondary { background: #ff6b35; }
.step-title { font-size: 15px; font-weight: 700; color: #333; margin-bottom: 4px; }
.step-store-name { font-size: 18px; font-weight: 700; color: #07c160; margin-bottom: 12px; }
.post-pay-step-2 .note { margin-bottom: 10px; }
.share-more-banner {
  margin-top: 12px; padding: 12px; background: #fff8f5; border: 1px solid #ffd4c2;
  border-radius: 8px; font-size: 13px; color: #666;
}
.store-card { cursor: pointer; }
.store-card-chevron { color: #ccc; font-size: 22px; flex-shrink: 0; align-self: center; }
.stores-more-link {
  display: inline-block;
  margin-top: 10px;
  color: #07c160;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.stores-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: #ff6b35;
  padding: 2px 6px;
  border-radius: 10px;
  vertical-align: middle;
}
.text-templates { margin-top: 12px; }
.text-template-item { border: 1px solid #eee; border-radius: 8px; padding: 10px; margin-bottom: 8px; background: #fafafa; }
.text-template-item .label { font-weight: 600; margin-bottom: 6px; }
.text-template-item pre { white-space: pre-wrap; font-size: 12px; color: #555; margin: 0 0 8px; font-family: inherit; }
.comm-row { padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.rank-badge { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; background: #07c160; color: #fff; border-radius: 50%; font-weight: 700; font-size: 13px; }
.avatar-circle { width: 36px; height: 36px; border-radius: 50%; background: #e8f8ef; color: #07c160; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.notify-item.unread { border-left: 3px solid #07c160; padding-left: 10px; }
