/* ============================================ */
/* PAIR MODE — «Языки любви» вдвоём (prefix pr-) */
/* Used on index.html (modal + banner) and pair.html */
/* ============================================ */

/* === Header chip on index (like .attachment-btn, warm gold accent) === */
.pair-btn {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: #fcd34d;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}
.pair-btn:hover {
  background: rgba(245, 158, 11, 0.26);
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.28);
  transform: translateY(-1px);
}
/* No separate mobile size: the other header chips keep 6px 14px / 0.8rem at ≤768px too */

/* === «Partner joined» banner on index === */
.pr-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 10px 10px 10px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(236, 72, 153, 0.14));
  border: 1px solid rgba(251, 191, 36, 0.4);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.12);
  animation: prFadeIn 0.35s ease;
}
.pr-banner-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
}
.pr-banner-text {
  color: #fde68a;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.4;
  padding: 4px 0;
  overflow-wrap: anywhere;
  min-width: 0;
}
.pr-banner-link {
  min-height: 36px;
  padding: 6px 0;
  border: none;
  background: none;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.pr-banner-link:hover { color: #fde68a; }
.pr-banner-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 1rem;
  cursor: pointer;
}
.pr-banner-close:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

@keyframes prFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes prSpin { to { transform: rotate(360deg); } }

/* === Common building blocks === */
.pr-wrap { text-align: left; }
.pr-wrap > * + * { margin-top: 14px; }
.pr-in-modal { padding: 4px 0; }

.pr-hero { text-align: center; }
.pr-hero-icon {
  font-size: 2.6rem;
  line-height: 1.1;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.35));
}
.pr-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 8px;
  color: #f8fafc;
  overflow-wrap: anywhere;
}
.about-modal-content h2.pr-title { color: #f8fafc; font-size: 1.35rem; }
.pr-title-sm { font-size: 1.15rem; }
.pr-hero-lg .pr-title { font-size: 1.5rem; }
.pr-accent {
  background: linear-gradient(135deg, #fde68a, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pr-sub {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 540px;
}
.pr-center { text-align: center; }
.pr-center-text { text-align: center; }
.pr-muted { color: #64748b; }

.pr-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 16px;
}
.pr-card > * + * { margin-top: 12px; }
.pr-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0;
}

.pr-hint {
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}
.pr-hint-sm { font-size: 0.76rem; }
.pr-hint.pr-ok { color: #a7f3d0; }

.pr-note {
  background: rgba(124, 58, 237, 0.1);
  border: 1px dashed rgba(168, 85, 247, 0.32);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #e2e8f0;
  text-align: center;
}
.pr-note-ok {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #d1fae5;
  margin-top: 12px;
}

.pr-error {
  display: none;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.85rem;
  line-height: 1.45;
}
.pr-error.show { display: block; }

.pr-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.pr-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.78rem;
  line-height: 1.3;
}

.pr-mylang {
  text-align: center;
  font-size: 0.88rem;
  color: #cbd5e1;
  background: rgba(236, 72, 153, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.25);
  border-radius: 12px;
  padding: 10px 12px;
}
.pr-mylang b { color: #fbcfe8; }

/* === Buttons (big tap targets) === */
.pr-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed, #a855f7 55%, #ec4899);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.pr-btn:active { transform: scale(0.98); }
.pr-btn:disabled { opacity: 0.65; cursor: wait; transform: none; }
.pr-btn-lg { min-height: 58px; font-size: 1.08rem; }

.pr-btn-gold-solid {
  background: linear-gradient(135deg, #f59e0b, #fbbf24 60%, #fde68a);
  color: #1f1300;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}


.pr-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.pr-btn-block { display: flex; width: 100%; }

.pr-btn-sm {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.8rem;
  border-radius: 10px;
}
.pr-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.16);
  color: #fde68a;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.pr-btn-gold:hover { background: rgba(245, 158, 11, 0.3); }

.pr-btn-tg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #0088cc, #29a9eb);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
}
.pr-btn-tg:hover { filter: brightness(1.1); }
.pr-btn-tg svg { flex-shrink: 0; }

.pr-spinner {
  display: inline-block;
  width: 26px;
  height: 26px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #f472b6;
  border-radius: 50%;
  animation: prSpin 0.8s linear infinite;
  vertical-align: middle;
}
.pr-spinner-sm { width: 16px; height: 16px; border-width: 2px; }

.pr-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 40vh;
  color: #94a3b8;
  font-size: 0.95rem;
}

/* === «О себе» form === */
.pr-form > * + * { margin-top: 14px; }
.pr-field { margin: 0; }
.pr-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 6px;
}
.pr-input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #f8fafc;
  font-family: 'Inter', sans-serif;
  font-size: 1rem; /* ≥16px: no iOS zoom on focus */
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pr-input:focus { border-color: #a855f7; box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.18); }
.pr-input::placeholder { color: #55556a; }

.pr-date-row { display: flex; gap: 8px; }
.pr-date {
  flex: 1;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 12px 6px;
}
.pr-date-year { flex: 1.5; }

.pr-gender { display: flex; gap: 8px; }
.pr-gender-btn {
  flex: 1;
  min-height: 48px;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: transparent;
  color: #94a3b8;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.pr-gender-btn.active { background: rgba(168, 85, 247, 0.25); border-color: #a855f7; color: #fff; }

.pr-privacy {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.5;
  text-align: center;
  margin: 0;
}
.pr-privacy a { color: #c084fc; text-decoration: underline; }
.pr-card .pr-privacy { text-align: left; }
.pr-tg-block:empty { display: none; }

/* === Share block === */
.pr-share > * + * { margin-top: 10px; }
.pr-link-input {
  font-size: 0.9rem;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.3);
  text-overflow: ellipsis;
}
.pr-share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pr-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 50px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.pr-share-btn:active { transform: scale(0.97); }
.pr-wa { background: linear-gradient(135deg, #1fa855, #25d366); }
.pr-tg { background: linear-gradient(135deg, #0088cc, #29a9eb); }
.pr-copy, .pr-native {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
}
.pr-copy.pr-copied { background: rgba(16, 185, 129, 0.18); border-color: rgba(16, 185, 129, 0.5); color: #a7f3d0; }
/* No native share button → «copy» takes the whole row */
.pr-share-grid > .pr-copy:last-child { grid-column: 1 / -1; }

.pr-notify {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px 14px;
}

/* === «Мои приглашения» === */
.pr-invites {
  margin-top: 22px !important;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
/* Returning inviter: statuses on top, the new-invite form below a divider */
.pr-in-modal > .pr-invites:first-child {
  margin-top: 0 !important;
  padding-top: 0;
  border-top: 0;
}
.pr-in-modal > .pr-invites:first-child + .pr-hero {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.pr-invites-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.pr-invites-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0;
}
.pr-invite-list { display: flex; flex-direction: column; gap: 8px; }
.pr-invite-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.pr-invite-item.is-joined { border-color: rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.06); }
.pr-invite-item.is-missing { opacity: 0.6; }
.pr-invite-main { flex: 1 1 160px; min-width: 0; }
.pr-invite-status {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.pr-invite-date { font-size: 0.74rem; color: #64748b; margin-top: 2px; }
.pr-invite-actions { flex-shrink: 0; }

/* === pair.html page shell === */
.pr-page {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
}
.pr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 0 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}
.pr-logo { text-decoration: none; min-width: 0; }
.pr-lang { display: flex; gap: 4px; flex-shrink: 0; }
.pr-lang-btn {
  min-width: 40px;
  min-height: 34px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: none;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.pr-lang-btn.active { background: rgba(168, 85, 247, 0.3); border-color: #a855f7; }
.pr-main { min-height: 50vh; }
.pr-main > .pr-wrap { padding-bottom: 8px; }
.pr-footer { margin-top: 32px; }
.pr-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 10px;
}
.pr-footer-links a {
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
}
.pr-footer-links a:hover { color: #e2e8f0; }

/* Landing */
.pr-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pr-benefits li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.45;
}
.pr-benefits b { color: #f8fafc; }
.pr-b-ico { flex-shrink: 0; width: 24px; text-align: center; font-size: 1.1rem; line-height: 1.3; }

/* Test host */
.pr-test-card { padding: 14px 12px; }

/* Report */
.pr-report-hero { padding-top: 4px; }
.pr-names {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 6px;
}
.pr-name { max-width: 100%; overflow-wrap: anywhere; }
.pr-name-a { color: #c4b5fd; }
.pr-name-b { color: #f9a8d4; }
.pr-heart { font-size: 1.6rem; }

.pr-signs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pr-sign-person {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px;
  min-width: 0;
}
.pr-sign-a { border-top: 3px solid rgba(167, 139, 250, 0.7); }
.pr-sign-b { border-top: 3px solid rgba(244, 114, 182, 0.7); }
.pr-sign-name {
  font-weight: 700;
  color: #f8fafc;
  font-size: 0.95rem;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.pr-sign-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.84rem;
}
.pr-sign-k { color: #94a3b8; flex-shrink: 0; }
.pr-sign-v { color: #e2e8f0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.pr-cta-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(124, 58, 237, 0.12));
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.pr-cta-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  color: #fde68a;
  margin: 0;
}
.pr-cta-text { font-size: 0.86rem; color: #cbd5e1; line-height: 1.55; margin: 0; }

.pr-secondary { display: flex; flex-direction: column; gap: 8px; }

/* Paid-CTA shortcut under the love-language «NN%» */
.pr-cmp-cta { margin-top: 14px; }

/* «Who are you?» before handing a visitor's pair to the calculator */
.pr-choose {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 14px;
  padding: 12px;
  margin-top: 12px;
  text-align: left;
}
.pr-choose > * + * { margin-top: 8px; }
.pr-choose-q { font-size: 0.88rem; font-weight: 600; color: #fde68a; line-height: 1.4; }
.pr-choose .pr-btn-ghost { overflow-wrap: anywhere; }

/* Hover only where a real pointer hovers (on touch screens :hover sticks to the last tap) */
@media (hover: hover) and (pointer: fine) {
  .pr-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 26px rgba(124, 58, 237, 0.55); }
  .pr-btn-gold-solid:hover { box-shadow: 0 6px 26px rgba(245, 158, 11, 0.5); }
  .pr-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }
  .pr-share-btn:hover { filter: brightness(1.1); }
  .pr-gender-btn:hover { border-color: #a855f7; color: #e2e8f0; }
}

/* Index modals: a scroll inside the modal must not scroll the page behind it */
#loveLangModal, #pairModal { overscroll-behavior: contain; }

/* === Mobile === */
@media (max-width: 520px) {
  .pr-signs-grid { grid-template-columns: 1fr; }
  .pr-title, .about-modal-content h2.pr-title { font-size: 1.2rem; }
  .pr-hero-lg .pr-title { font-size: 1.3rem; }
  .pr-names { font-size: 1.3rem; }
  .pr-card { padding: 16px 14px; }
}
/* Index modals on phones: style.css stacks overlay padding 20px + modal margin 10px (30px dead gutters) */
@media (max-width: 480px) {
  #loveLangModal, #pairModal { padding: 8px; }
  #loveLangModal .about-modal, #pairModal .about-modal { margin: 8px auto; }
  #pairContent .pr-card { padding: 14px 12px; }
}
@media (max-width: 380px) {
  .pr-share-btn { font-size: 0.82rem; padding: 10px 6px; }
  .pr-date { font-size: 1rem; padding: 12px 4px; }
  .pr-invite-actions { width: 100%; }
  .pr-invite-actions .pr-btn-sm { width: 100%; }
}
