/* ═══════════════════════════════════════════════════════
   POKLON-BON REDEEM MODAL  (.pr-rm-*)
   1:1 iz prototipa RedemptionModal (docs/PROTOTYPE.html) — vanilla JS render.
   ═══════════════════════════════════════════════════════ */

.pr-rm-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15,30,32,.65); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; animation: fadeUp .3s var(--ease-out);
}
.pr-rm-overlay[hidden] { display: none; }

.pr-rm-panel {
  background: var(--c-cream); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.30);
  width: 100%; max-width: 640px; max-height: 94vh;
  overflow-y: auto; position: relative;
}

@media (max-width: 640px) {
  .pr-rm-overlay { padding: 0; }
  .pr-rm-panel { border-radius: 0; max-width: 100%; max-height: 100%; height: 100%; }
}

.pr-rm-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: rgba(255,255,255,.85); border: 1px solid var(--c-border-soft);
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 16px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text);
}
.pr-rm-close:hover { background: #fff; }

.pr-rm-body { padding: 44px 36px 36px; }
@media (max-width: 640px) { .pr-rm-body { padding: 36px 20px 28px; } }

/* ── Loading / error (not_found, unpaid, redeemed, expired) ── */
.pr-rm-simple { padding: 40px; text-align: center; max-width: 420px; margin: 0 auto; }
.pr-rm-simple-ico { font-size: 40px; margin-bottom: 14px; }
.pr-rm-simple-title {
  font-family: var(--font-serif); font-size: 24px; font-weight: 500;
  color: var(--c-teal-dark); margin: 0 0 10px;
}
.pr-rm-simple-text { color: var(--c-text-muted); margin: 0 0 18px; font-size: 13.5px; line-height: 1.55; }
.pr-rm-simple-text.is-error { color: #922b21; }
.pr-rm-simple-btn {
  background: var(--c-teal-dark); color: #fff; border: none; padding: 10px 22px;
  border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
}

/* ── Gift header ── */
.pr-rm-head { text-align: center; margin-bottom: 24px; }
.pr-rm-head-ico { font-size: 40px; margin-bottom: 10px; }
.pr-rm-eyebrow {
  font-size: 12px; font-weight: 700; color: var(--c-gold);
  letter-spacing: .22em; text-transform: uppercase; margin-bottom: 8px;
}
.pr-rm-title {
  font-family: var(--font-serif); font-size: 30px; font-weight: 500;
  color: var(--c-teal-dark); margin: 0 0 10px; letter-spacing: -.015em; line-height: 1.2;
}
@media (max-width: 640px) { .pr-rm-title { font-size: 26px; } }
.pr-rm-sub { font-size: 13.5px; color: var(--c-text-muted); margin: 0 auto; max-width: 460px; line-height: 1.55; }

/* ── Personal message ── */
.pr-rm-message {
  background: linear-gradient(135deg, #fffdf6, var(--c-cream-warm));
  border: 1px dashed var(--c-gold); border-radius: 14px;
  padding: 20px 20px 16px; margin-bottom: 24px; position: relative;
}
@media (max-width: 640px) { .pr-rm-message { padding: 16px 16px 14px; } }
.pr-rm-message-quote {
  font-family: var(--font-serif); font-size: 16px; font-style: italic;
  color: var(--c-text); margin: 6px 0 8px; line-height: 1.6;
}
.pr-rm-message-sig {
  font-size: 11.5px; color: var(--c-brown-gold); letter-spacing: .16em;
  text-transform: uppercase; font-weight: 700; text-align: right;
}

/* ── Area selection ── */
.pr-rm-sec { margin-bottom: 22px; }
.pr-rm-sec-lbl {
  font-size: 12px; font-weight: 700; color: var(--c-brown-gold);
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px;
}
.pr-rm-counter { font-size: 12.5px; color: var(--c-text-muted); margin-bottom: 14px; }
.pr-rm-counter strong { color: var(--c-text-muted); }
.pr-rm-counter strong.has-picks { color: var(--c-brown-gold); }

.pr-rm-area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 640px) { .pr-rm-area-grid { grid-template-columns: 1fr 1fr; } }

.pr-rm-area-btn {
  background: var(--c-surface); border: 2px solid var(--c-border-soft); border-radius: 12px;
  padding: 12px 8px; cursor: pointer; font-family: inherit; text-align: center;
  transition: all .15s; position: relative;
}
.pr-rm-area-btn.is-selected {
  background: linear-gradient(135deg, #fffdf6, var(--c-cream-warm));
  border-color: var(--c-gold); box-shadow: 0 0 0 3px rgba(200,147,42,.13);
}
.pr-rm-area-btn.is-full { background: rgba(0,0,0,.03); opacity: .5; cursor: not-allowed; }
.pr-rm-area-icon { font-size: 22px; margin-bottom: 6px; }
.pr-rm-area-name {
  font-family: var(--font-serif); font-size: 14px; font-weight: 500;
  color: var(--c-teal-dark); line-height: 1.2;
}
.pr-rm-area-check {
  position: absolute; top: 6px; right: 6px; background: var(--c-gold); color: #fff;
  width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ── Guest email field ── */
.pr-rm-email-wrap { margin-bottom: 20px; }
.pr-rm-input {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--c-border-soft); background: var(--c-surface);
  font-size: 14px; font-family: inherit; color: var(--c-text); outline: none;
}
.pr-rm-input:focus { border-color: var(--c-gold); }
.pr-rm-email-hint { font-size: 11.5px; color: var(--c-text-faint); margin-top: 6px; }

.pr-rm-error {
  background: #fdecea; border: 1px solid #f5b7b1; color: #922b21;
  padding: 10px 14px; border-radius: 10px; font-size: 12.5px; margin-bottom: 14px;
}

.pr-rm-submit {
  width: 100%; background: linear-gradient(135deg, var(--c-gold), #b8851f);
  color: #fff; border: none; padding: 15px; border-radius: 999px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 24px rgba(200,147,42,.33);
}
.pr-rm-submit:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.pr-rm-submit:not(:disabled):hover { filter: brightness(1.04); }

.pr-rm-footnote { margin-top: 14px; font-size: 11.5px; color: var(--c-text-faint); text-align: center; line-height: 1.5; }
.pr-rm-footnote code { font-family: monospace; color: var(--c-brown-gold); }

/* ── Done stage ── */
.pr-rm-done { padding: 52px 36px 40px; text-align: center; }
@media (max-width: 640px) { .pr-rm-done { padding: 44px 24px 32px; } }
.pr-rm-done-ico { font-size: 56px; margin-bottom: 10px; }
.pr-rm-done-title { font-family: var(--font-serif); font-size: 28px; color: var(--c-teal-dark); margin: 0 0 12px; }
.pr-rm-done-text { font-size: 14px; color: var(--c-text-muted); max-width: 420px; margin: 0 auto 28px; line-height: 1.6; }
.pr-rm-done-btn {
  background: linear-gradient(135deg, var(--c-gold), #b8851f); color: #fff; border: none;
  padding: 14px 32px; border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 18px rgba(200,147,42,.27); font-family: inherit;
}
