/* ===========================================================
   LightVessel — Tehillim checkout / success / Soul Birthday.
   Reuses the global palette vars from styles.css (:root).
   All classes prefixed .lvc- to avoid collisions.
   =========================================================== */

.lvc-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: flex-start; justify-content: center;
  background: rgba(4, 4, 9, 0.82); backdrop-filter: blur(4px);
  padding: 4vh 1rem; overflow-y: auto;
}
.lvc-overlay.is-open { display: flex; }

.lvc-modal {
  position: relative; width: 100%; max-width: 460px;
  background: linear-gradient(165deg, var(--bg-card, #12121d), var(--bg-2, #0d0d16));
  border: 1px solid rgba(201, 150, 43, 0.4); border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(201, 150, 43, 0.15);
  padding: 1.9rem 1.7rem 1.7rem; color: var(--ink, #ece6da);
  font-family: var(--sans, 'Inter', sans-serif);
  animation: lvcIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes lvcIn { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }

.lvc-x {
  position: absolute; top: 0.8rem; right: 1rem;
  background: none; border: none; cursor: pointer;
  color: var(--ink-dim, #a59c89); font-size: 1.7rem; line-height: 1;
  transition: color 0.2s;
}
.lvc-x:hover { color: var(--gold-lt, #FFD37A); }

.lvc-head { text-align: center; margin-bottom: 1.2rem; }
.lvc-spark { font-size: 1.6rem; color: var(--gold-lt, #FFD37A); text-shadow: 0 0 20px rgba(255, 211, 122, 0.55); }
.lvc-title {
  font-family: var(--serif, 'Cormorant Garamond', serif); font-weight: 600;
  font-size: 1.55rem; color: var(--ink, #ece6da); margin-top: 0.2rem;
}
.lvc-heb { font-family: var(--heb, 'Frank Ruhl Libre', serif); color: var(--gold-soft, #e7c66b); font-size: 1.2rem; }

.lvc-field { display: grid; gap: 0.35rem; margin-bottom: 0.95rem; text-align: start; }
.lvc-field > span { font-size: 0.78rem; letter-spacing: 0.04em; color: var(--gold-lt, #FFD37A); }
.lvc-input {
  width: 100%; background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line, rgba(201, 150, 43, 0.28)); border-radius: 10px;
  padding: 0.75rem 0.9rem; color: var(--ink, #ece6da);
  font-family: var(--sans, 'Inter', sans-serif); font-size: 1rem; color-scheme: dark;
}
.lvc-input:focus { outline: none; border-color: var(--gold-lt, #FFD37A); box-shadow: 0 0 0 3px rgba(255, 211, 122, 0.14); }

.lvc-row { display: flex; gap: 0.5rem; align-items: stretch; }
.lvc-row .lvc-input { flex: 1; }
.lvc-mini {
  border: 1px solid var(--gold, #C9962B); background: transparent; color: var(--gold-lt, #FFD37A);
  border-radius: 10px; padding: 0 0.95rem; font-size: 0.9rem; cursor: pointer; white-space: nowrap;
  transition: background 0.2s;
}
.lvc-mini:hover:not(:disabled) { background: rgba(201, 150, 43, 0.12); }
.lvc-mini:disabled { opacity: 0.55; cursor: default; }

.lvc-connect {
  width: 100%; margin-bottom: 0.95rem; border: 1px dashed rgba(201, 150, 43, 0.5);
  background: rgba(201, 150, 43, 0.06); color: var(--gold-soft, #e7c66b);
  border-radius: 10px; padding: 0.6rem; font-size: 0.88rem; cursor: pointer; transition: background 0.2s;
}
.lvc-connect:hover { background: rgba(201, 150, 43, 0.14); }

.lvc-price {
  text-align: center; margin: 0.4rem 0 1rem;
  font-family: var(--serif, serif);
}
.lvc-price .lvc-amt { font-size: 2.1rem; font-weight: 700; color: var(--gold-lt, #FFD37A); }
.lvc-price .lvc-cur { color: var(--gold-soft, #e7c66b); font-size: 1rem; letter-spacing: 0.06em; }
.lvc-price .lvc-was { color: var(--ink-dim, #a59c89); text-decoration: line-through; font-size: 1.1rem; margin-inline-end: 0.5rem; }

.lvc-note { font-size: 0.84rem; min-height: 1.1em; margin: 0.3rem 0; }
.lvc-note.is-ok { color: var(--gold-soft, #e7c66b); }
.lvc-note.is-err { color: #ff9a9a; }

.lvc-btn {
  display: block; width: 100%; border: none; cursor: pointer;
  font-family: var(--sans, 'Inter', sans-serif); font-weight: 600; font-size: 1rem;
  padding: 0.9rem 1rem; border-radius: 999px; margin-top: 0.5rem;
  color: #1a1206; background: linear-gradient(145deg, var(--gold-lt, #FFD37A), var(--gold, #C9962B));
  box-shadow: 0 8px 28px rgba(201, 150, 43, 0.32); transition: transform 0.15s, opacity 0.2s;
}
.lvc-btn:hover:not(:disabled) { transform: translateY(-2px); }
.lvc-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.lvc-btn--ghost {
  color: var(--gold-lt, #FFD37A); background: transparent; border: 1px solid var(--gold, #C9962B);
  box-shadow: none;
}

.lvc-qr {
  width: 240px; height: 240px; margin: 0.6rem auto 0.8rem; display: block;
  background: #fff; border-radius: 12px; padding: 8px;
}
.lvc-addr {
  font-family: 'Courier New', monospace; font-size: 0.78rem; word-break: break-all;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line, rgba(201, 150, 43, 0.28));
  border-radius: 8px; padding: 0.55rem 0.7rem; color: var(--ink-dim, #a59c89); text-align: center;
}
.lvc-pay-status { text-align: center; margin-top: 0.8rem; color: var(--gold-soft, #e7c66b); font-size: 0.92rem; }
.lvc-spin {
  display: inline-block; width: 14px; height: 14px; margin-inline-end: 6px; vertical-align: middle;
  border: 2px solid rgba(201, 150, 43, 0.35); border-top-color: var(--gold-lt, #FFD37A);
  border-radius: 50%; animation: lvcSpin 0.9s linear infinite;
}
@keyframes lvcSpin { to { transform: rotate(360deg); } }

/* success */
.lvc-success-spark { font-size: 2.4rem; text-align: center; color: var(--gold-lt, #FFD37A); text-shadow: 0 0 26px rgba(255, 211, 122, 0.6); }
.lvc-success-title {
  text-align: center; font-family: var(--serif, serif); font-size: 1.5rem; color: var(--ink, #ece6da); margin: 0.3rem 0 0.2rem;
}
.lvc-success-img { width: 120px; height: 120px; object-fit: cover; border-radius: 14px; display: block; margin: 0.8rem auto; border: 1px solid var(--line); }
.lvc-success-prod { text-align: center; color: var(--gold-soft, #e7c66b); font-family: var(--serif, serif); font-size: 1.2rem; }
.lvc-tx { text-align: center; font-size: 0.82rem; margin-top: 0.5rem; }
.lvc-tx a { color: var(--gold-soft, #e7c66b); text-decoration: underline; }

.lvc-divider { border: none; border-top: 1px solid rgba(201, 150, 43, 0.2); margin: 1.4rem 0 1.1rem; }

.lvc-check { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.7rem; font-size: 0.86rem; color: var(--ink, #ece6da); line-height: 1.45; cursor: pointer; }
.lvc-check input { margin-top: 0.2rem; accent-color: var(--gold, #C9962B); width: 16px; height: 16px; flex: none; }
.lvc-privacy { font-size: 0.76rem; color: var(--ink-dim, #a59c89); text-align: center; margin: 0.6rem 0 0.2rem; }
.lvc-btn-row { display: flex; gap: 0.6rem; margin-top: 0.7rem; }
.lvc-btn-row .lvc-btn { margin-top: 0; }

@media (max-width: 520px) {
  .lvc-modal { max-width: 100%; }
  .lvc-qr { width: 200px; height: 200px; }
}
