.voucher-page{
  --brand:#d6b25e;
  --brand-2:#ffd700;
  --panel:#0f1526;
  --panel-2:#0b1020;
  --ink:#e9edf7;
  --muted:#b9c0d6;
  --wrap:1200px;
  --stroke:rgba(214,178,94,.18);
  --stroke-2:rgba(214,178,94,.32);
  --shadow:0 18px 46px rgba(0,0,0,.55);
  padding:56px 16px 78px;
  color:var(--ink);
}

.voucher-page .wrap{
  max-width:var(--wrap);
  margin:0 auto;
}

.voucher-page .page-head{
  text-align:center;
  margin:0 0 26px;
}

.voucher-page .page-head h1{
  margin:0 0 12px;
  font-size:clamp(2.05rem,2.3vw,2.65rem);
  font-weight:650;
  letter-spacing:.12em;
  color:rgba(255,255,255,.92);
  text-transform:uppercase;
}

.voucher-page .page-head h1::after{
  content:"";
  display:block;
  width:min(520px,72%);
  height:1px;
  margin:14px auto 0;
  background:linear-gradient(90deg,transparent,rgba(214,178,94,.70),transparent);
}

.voucher-page .page-head .lead{
  color:rgba(233,237,247,.82);
  margin:0 auto;
  max-width:900px;
  font-size:clamp(.96rem,1.9vw,1.05rem);
  line-height:1.6;
}

.voucher-page .page-head .lead .star{
  color:#eec108;
  font-weight:900;
}

.voucher-page .voucher-canvas{
  display:flex;
  justify-content:center;
  align-items:center;
}

.voucher-page .art-frame{
  position:relative;
  width:100%;
  max-width:920px;
  aspect-ratio:297/210;
  border-radius:18px;
  overflow:hidden;
  background:
radial-gradient(1200px 260px at 15% -10%, rgba(255, 255, 255, 0.12), transparent 55%), radial-gradient(900px 240px at 95% 0%, rgba(0, 0, 0, 0.5), transparent 55%), linear-gradient(180deg, rgba(255,255,255,.03), rgba(0, 0, 0, 0.14)), linear-gradient(180deg, var(--panel), var(--panel-2));
  box-shadow:var(--shadow);
  border:1px solid var(--stroke);
}

.voucher-page .art{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  user-select:none;
  -webkit-user-drag:none;
}

.voucher-page .overlay{
  position:absolute;
  inset:0;
  pointer-events:none;
  font-family:Montserrat, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:#111;
}

.voucher-page .ov-input{
  position:absolute;
  pointer-events:auto;
  background:transparent;
  border:0;
  outline:0;
  box-shadow:none;
  color:#111;
  caret-color:#111;
  font-weight:700;
  font-style:italic;
  line-height:1;
  height:1.6em;
  padding:0 .15em;
  border-radius:0;
  font-size:clamp(16px,2vw,20px);
}

.voucher-page .ov-input::placeholder{
  color:rgba(17, 17, 17, 0.5);
  font-weight:600;
  font-style:italic;
}

.voucher-page .overlay .ov-input[readonly]{
  cursor:pointer;
}

.voucher-page .voucher-canvas.lang-bg .ov-input.name{
  left:65%;
  top:45%;
  width:31%;
  text-align:left;
}

.voucher-page .voucher-canvas.lang-bg .ov-input.amount{
  left:65%;
  top:54%;
  width:31%;
  text-align:left;
}

.voucher-page .voucher-canvas.lang-bg .ov-input.date{
  left:65%;
  top:64.2%;
  width:31%;
  text-align:left;
}

.voucher-page .voucher-canvas.lang-en .ov-input.name{
  left:65%;
  top:45%;
  width:31%;
  text-align:left;
}

.voucher-page .voucher-canvas.lang-en .ov-input.amount{
  left:65%;
  top:54%;
  width:31%;
  text-align:left;
}

.voucher-page .voucher-canvas.lang-en .ov-input.date{
  left:65%;
  top:64.2%;
  width:31%;
  text-align:left;
}

.voucher-page .voucher-actions{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:18px;
}

.voucher-page .btn-primary{
  height:42px;
  padding:0 26px;
  border-radius:12px;
  font-weight:760;
  font-size:.92rem;
}

.voucher-page .btn-secondary{
  height:42px;
  padding:0 18px;
  border-radius:12px;
  font-weight:760;
  font-size:.88rem;
}

.voucher-page .terms-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:rgba(214,178,94,.96);
  text-decoration:none;
  font-weight:750;
  font-size:.95rem;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(214,178,94,.45);
  background:rgba(255,255,255,.02);
  box-shadow:0 12px 30px rgba(0,0,0,.36);
  transition:transform .14s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.voucher-page .terms-link:hover{
  transform:translateY(-2px);
  background:rgba(214,178,94,.10);
  border-color:rgba(214,178,94,.70);
  color:rgba(255,215,0,.95);
  box-shadow:0 18px 44px rgba(0,0,0,.5);
}

.voucher-page .modal-backdrop[hidden]{
  display:none !important;
}

.voucher-page .modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0, 0, 0, 0.58);
  display:grid;
  place-items:center;
  z-index:2000;
}

.voucher-page #editModal .modal{
  width:min(560px, 92vw);
  background:linear-gradient(180deg, rgba(15,21,38,.98), rgba(11,16,32,.98));
  color:rgba(233,237,247,.92);
  border-radius:14px;
  box-shadow:0 24px 60px rgba(0,0,0,.65);
  border:1px solid rgba(214,178,94,.22);
}

.voucher-page #editModal .modal-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 16px;
  background:rgba(16,23,43,.95);
  border-top-left-radius:14px;
  border-top-right-radius:14px;
  border-bottom:1px solid rgba(214,178,94,.18);
}

.voucher-page #editModal .modal-head strong{
  color:rgba(255,215,0,.95);
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.voucher-page #editModal .modal-close{
  background:none;
  border:0;
  color:rgba(233,237,247,.72);
  font-size:22px;
  line-height:1;
  cursor:pointer;
}

.voucher-page #editModal .modal-body{
  padding:16px;
  display:grid;
  gap:12px;
  line-height:1.6;
}

.voucher-page #editModal .form-row{
  display:grid;
  gap:6px;
}

.voucher-page #editModal .form-row label{
  font-weight:720;
  color:rgba(233,237,247,.82);
}

.voucher-page #editModal .form-row input{
  background:rgba(16,23,43,.75);
  border:1px solid rgba(214,178,94,.22);
  border-radius:12px;
  padding:12px 12px;
  color:rgba(255,255,255,.92);
  font-size:16px;
  outline:none;
}

.voucher-page #editModal .form-row input:focus{
  border-color:rgba(255,215,0,.75);
  box-shadow:0 0 0 3px rgba(255, 215, 0, 0.14);
}

.voucher-page #editModal .hint{
  color:rgba(233,237,247,.70);
}

.voucher-page #editModal .modal-foot{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:12px 16px 16px;
}

@media (max-width: 768px){
  .voucher-page{
    padding:46px 14px 68px;
  }
  .voucher-page .art-frame{
    border-radius:16px;
  }
}

@media (max-width: 560px){
  .voucher-page .ov-input{
    font-size:clamp(15px, 3.2vw, 18px);
    height:1.55em;
  }
  .voucher-page .voucher-canvas.lang-bg .ov-input.name,
  .voucher-page .voucher-canvas.lang-bg .ov-input.amount,
  .voucher-page .voucher-canvas.lang-bg .ov-input.date,
  .voucher-page .voucher-canvas.lang-en .ov-input.name,
  .voucher-page .voucher-canvas.lang-en .ov-input.amount,
  .voucher-page .voucher-canvas.lang-en .ov-input.date{
    font-size:10px;
  }
  .voucher-page .voucher-actions{
    gap:10px;
  }
  .voucher-page .btn-primary{
    height:40px;
    padding:0 20px;
    font-size:.88rem;
  }
  .voucher-page .terms-link{
    width:100%;
    max-width:420px;
    justify-content:center;
  }
}

@supports not (aspect-ratio: 1/1){
  .voucher-page .art-frame{
    position:relative;
    height:auto;
  }
  .voucher-page .art-frame::before{
    content:"";
    display:block;
    padding-top:calc(210 / 297 * 100%);
  }
  .voucher-page .art,
  .voucher-page .overlay{
    position:absolute;
    inset:0;
  }
}