/* ══════════════════════════════════════════════════════════
   POUKAZ-CARD.CSS — grafika darčekového poukazu
   Používa: /poukazy/ (náhľady), /poukazy/poukaz/ (osobný poukaz + tlač)
   Rozmer A5 na šírku (210 × 148 mm). Veľkosti v cqw → poukaz vyzerá
   rovnako v malom náhľade aj pri tlači.
   ══════════════════════════════════════════════════════════ */

.rpv {
  --rpv-gold: #C9A96E;
  --rpv-gold-deep: #8B6914;
  --rpv-dark: #2A2A35;
  --rpv-mid: #55556A;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 210 / 148;
  font-family: 'Open Sans', sans-serif;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.rpv-paper {
  position: relative; width: 100%; height: 100%;
  display: grid; grid-template-columns: 1fr 31%;
  border-radius: 1.6cqw; overflow: hidden;
  box-shadow: 0 2.4cqw 6cqw rgba(42,42,53,0.16), 0 0.4cqw 1cqw rgba(42,42,53,0.08);
}
/* jemný vnútorný rám */
.rpv-paper::before {
  content: ''; position: absolute; inset: 2.6cqw; z-index: 2; pointer-events: none;
  border: 0.14cqw solid var(--rpv-frame, rgba(201,169,110,0.55)); border-radius: 0.8cqw;
}

/* ── ľavá časť ── */
.rpv-main {
  position: relative; z-index: 3;
  padding: 7.4cqw 4cqw 6.6cqw 7.6cqw;
  display: flex; flex-direction: column;
}
.rpv-label {
  font-size: 1.45cqw; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--rpv-label, var(--rpv-gold-deep));
  display: flex; align-items: center; gap: 1.4cqw;
}
.rpv-label::after { content: ''; width: 6cqw; height: 0.12cqw; background: currentColor; opacity: 0.6; }
.rpv-title {
  margin-top: 2.6cqw;
  font-size: 6.2cqw; line-height: 1.02; letter-spacing: -0.025em;
  font-weight: 300; color: var(--rpv-title-thin, var(--rpv-dark));
}
.rpv-title strong { font-weight: 700; color: var(--rpv-title-bold, #fff); }
.rpv-line {
  margin-top: 2.4cqw; max-width: 44cqw;
  font-size: 1.5cqw; line-height: 1.6; letter-spacing: 0.04em;
  color: var(--rpv-text, var(--rpv-mid));
}
.rpv-for {
  margin-top: auto; display: flex; align-items: flex-end; gap: 1.4cqw; max-width: 46cqw;
  font-size: 1.5cqw; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rpv-text, var(--rpv-mid));
}
.rpv-for i {
  flex: 1; min-height: 3cqw; border-bottom: 0.12cqw solid var(--rpv-rule, rgba(42,42,53,0.3));
  font-style: normal; text-transform: none; letter-spacing: 0.01em;
  font-size: 2.3cqw; font-weight: 600; color: var(--rpv-title-thin, var(--rpv-dark)); padding-bottom: 0.3cqw;
}
.rpv-sign { margin-top: 3.4cqw; display: flex; flex-direction: column; gap: 0.5cqw; }
.rpv-sign strong {
  font-size: 2cqw; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--rpv-title-thin, var(--rpv-dark));
}
.rpv-sign span { font-size: 1.3cqw; letter-spacing: 0.12em; color: var(--rpv-text, var(--rpv-mid)); }

/* ── motív ── */
.rpv-motif {
  position: absolute; z-index: 1; pointer-events: none;
  right: calc(31% + 2cqw); top: 60%; width: 34cqw; height: 34cqw; transform: translateY(-50%);
  color: var(--rpv-motif, var(--rpv-gold)); opacity: var(--rpv-motif-o, 0.7);
}
.rpv-motif svg { width: 100%; height: 100%; display: block; }

/* ── pravá časť (ústrižok) ── */
.rpv-side {
  position: relative; z-index: 3;
  background: var(--rpv-side, rgba(255,255,255,0.35));
  border-left: 0.16cqw dashed var(--rpv-cut, rgba(42,42,53,0.22));
  padding: 7.4cqw 6.6cqw 6.6cqw 4.2cqw;
  display: flex; flex-direction: column; justify-content: space-between;
}
/* výrezy ako pri vstupenke */
.rpv-side::before, .rpv-side::after {
  content: ''; position: absolute; left: -2.1cqw; width: 4.2cqw; height: 4.2cqw; border-radius: 50%;
  background: var(--rpv-notch, #FAF9FC);
}
.rpv-side::before { top: -2.1cqw; }
.rpv-side::after { bottom: -2.1cqw; }
.rpv-value span, .rpv-code span {
  display: block; font-size: 1.3cqw; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--rpv-label, var(--rpv-gold-deep)); margin-bottom: 1cqw;
}
.rpv-value strong {
  display: block; font-size: 7.6cqw; font-weight: 700; line-height: 1; letter-spacing: -0.03em;
  color: var(--rpv-value, var(--rpv-dark));
}
.rpv-code-val {
  display: block; font-size: 1.95cqw; font-weight: 700; letter-spacing: 0.08em;
  color: var(--rpv-title-thin, var(--rpv-dark));
  border: 0.14cqw solid var(--rpv-rule, rgba(42,42,53,0.3)); border-radius: 0.6cqw;
  padding: 1.3cqw 0.8cqw; text-align: center; white-space: nowrap;
}
.rpv-code-empty { height: 5.4cqw; border-style: dashed; }

/* ══ TÉMY ══ */

/* 1 · Osobná konzultácia — noc a zlato */
.rpv--night .rpv-paper {
  background:
    radial-gradient(circle at 30% 20%, rgba(201,169,110,0.16), transparent 55%),
    radial-gradient(circle at 85% 90%, rgba(184,107,168,0.14), transparent 50%),
    #2A2A35;
}
.rpv--night {
  --rpv-label: #C9A96E; --rpv-title-thin: rgba(255,255,255,0.88); --rpv-title-bold: #E8D5B0;
  --rpv-text: rgba(255,255,255,0.6); --rpv-rule: rgba(232,213,176,0.45); --rpv-frame: rgba(201,169,110,0.5);
  --rpv-side: rgba(255,255,255,0.04); --rpv-cut: rgba(232,213,176,0.35); --rpv-value: #E8D5B0;
  --rpv-motif: #C9A96E; --rpv-motif-o: 0.55;
}

/* 2 · Tvoj energetický manuál — ružový papier */
.rpv--rose .rpv-paper {
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.55), transparent 50%),
    linear-gradient(135deg, #E9C7EB 0%, #F1D9F2 55%, #E5C2E7 100%);
}
.rpv--rose {
  --rpv-label: #8B5E8B; --rpv-title-thin: #2A2A35; --rpv-title-bold: #ffffff;
  --rpv-text: #55556A; --rpv-rule: rgba(42,42,53,0.28); --rpv-frame: rgba(255,255,255,0.85);
  --rpv-side: rgba(255,255,255,0.32); --rpv-cut: rgba(139,94,139,0.35); --rpv-value: #2A2A35;
  --rpv-motif: #ffffff; --rpv-motif-o: 0.95;
}
.rpv--rose .rpv-title strong { text-shadow: 0 0.2cqw 1.2cqw rgba(139,94,139,0.25); }

/* 3 · Konzultácia — levanduľová modrá */
.rpv--blue .rpv-paper {
  background:
    radial-gradient(circle at 80% 15%, rgba(255,255,255,0.5), transparent 50%),
    linear-gradient(160deg, #C6C9EB 0%, #D3D5F1 60%, #BEC1E6 100%);
}
.rpv--blue {
  --rpv-label: #5C4FA0; --rpv-title-thin: #2A2A35; --rpv-title-bold: #ffffff;
  --rpv-text: #55556A; --rpv-rule: rgba(42,42,53,0.28); --rpv-frame: rgba(255,255,255,0.85);
  --rpv-side: rgba(255,255,255,0.3); --rpv-cut: rgba(92,79,160,0.35); --rpv-value: #2A2A35;
  --rpv-motif: #ffffff; --rpv-motif-o: 0.95;
}
.rpv--blue .rpv-title strong { text-shadow: 0 0.2cqw 1.2cqw rgba(92,79,160,0.25); }
.rpv-valid {
  display: block; margin-top: 1.1cqw; font-style: normal; text-align: center;
  font-size: 1.2cqw; letter-spacing: 0.1em; color: var(--rpv-text, var(--rpv-mid));
}
