/* =====================================================================
   صفحه‌های «ویزای …» — افزوده بر country.css (+ life.css برای .rel)
   ===================================================================== */

/* برچسب ویزا شناور در قهرمان */
.l-visa {
  right: 0; bottom: 4%; width: 300px; border-radius: 6px; overflow: hidden; color: #111;
  transform: translateZ(140px) rotate(-6deg);
  box-shadow: 0 2px 2px rgba(0,0,0,.1), calc(var(--mx) * -26px) calc(30px + var(--my) * -20px) 40px -18px rgba(0,0,0,.5);
  direction: ltr; text-align: left;
  background-image: repeating-linear-gradient(135deg, rgba(43,41,39,.045) 0 2px, transparent 2px 9px);
}
.vs__top { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1.5px solid #111; font-size: 13px; font-weight: 700; letter-spacing: .3em; }
.vs__top span:last-child { font-size: 10px; letter-spacing: .14em; }
.vs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; padding: 10px 14px; }
.vs__grid small { display: block; font-size: 8.5px; letter-spacing: .12em; color: #777; }
.vs__grid b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs__mrz { padding: 8px 14px 10px; border-top: 1px dashed rgba(43,41,39,.4); font: 700 10.5px/1.5 ui-monospace, "Courier New", monospace; letter-spacing: .08em; white-space: nowrap; overflow: hidden; color: #222; }

/* ---------- گذرنامه‌ی سه‌بعدی ---------- */
.ppx { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 50px; align-items: center; }
.vtabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; }
.vtab {
  height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid #d5d4d2; background: #fff; cursor: pointer; white-space: nowrap;
  font: 500 14.5px/1 "Vazirmatn", Tahoma, sans-serif; color: #2b2a29; transition: background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.vtab:hover { border-color: #111; }
.vtab[aria-selected="true"] { background: #111; color: #fff; border-color: #111; box-shadow: 0 4px 0 #000, 0 10px 18px -8px rgba(0,0,0,.5); }
.vtab:focus-visible { outline: 2px solid #111; outline-offset: 3px; }

.pp { position: relative; perspective: 1800px; }
.pp__book { --tilt: 0deg; position: relative; aspect-ratio: 2 / 1.38; transform-style: preserve-3d; transform: rotateX(18deg) rotateZ(var(--tilt)); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.pp.is-open .pp__book { transform: rotateX(8deg); }
.pp__page {
  position: absolute; top: 0; bottom: 0; width: 50%; box-sizing: border-box; overflow: hidden;
  background-color: #fbfaf6;
  background-image: repeating-radial-gradient(circle at 50% 120%, rgba(43,41,39,.05) 0 1px, transparent 1px 7px);
}
.pp__right { right: 0; border-radius: 0 8px 8px 0; box-shadow: inset 14px 0 18px -14px rgba(0,0,0,.35), 0 26px 34px -24px rgba(0,0,0,.5); padding: 7% 7% 6%; }
.pp__cover {
  position: absolute; top: 0; bottom: 0; right: 0; width: 50%; transform-style: preserve-3d; transform-origin: 0 50%; z-index: 3;
  transition: transform 1.3s cubic-bezier(.6, 0, .25, 1);
}
.pp.is-open .pp__cover { transform: rotateY(-180deg); }
.pp__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pp__front {
  border-radius: 0 8px 8px 0; color: #e8e6e1;
  background: radial-gradient(120% 120% at 30% 20%, #2e2e2e, #121212 60%, #070707);
  box-shadow: inset 0 0 0 1px #000, inset 6px 0 10px rgba(0,0,0,.6), 0 26px 34px -20px rgba(0,0,0,.6);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
}
.pp__front svg { width: 34%; height: auto; }
.pp__front b { font-size: 13px; letter-spacing: .32em; direction: ltr; }
.pp__front span { font-size: 15px; font-weight: 700; }
.pp__inside { transform: rotateY(180deg); border-radius: 8px 0 0 8px; box-shadow: inset -14px 0 18px -14px rgba(0,0,0,.35); display: grid; place-items: center; background-color: #fbfaf6; background-image: repeating-radial-gradient(circle at 50% 120%, rgba(43,41,39,.05) 0 1px, transparent 1px 7px); }
.pp__stamp { width: 74%; aspect-ratio: 1; opacity: 0; transform: rotate(-14deg) scale(1.7); }
.pp__stamp.is-hit { animation: ppStamp .5s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes ppStamp { 0% { opacity: 0; transform: rotate(-20deg) scale(1.7); } 60% { opacity: .9; transform: rotate(-12deg) scale(.95); } 100% { opacity: .85; transform: rotate(-14deg) scale(1); } }
.pp__stamp svg { width: 100%; height: 100%; display: block; }
.pp__leaf { position: absolute; top: 0; bottom: 0; right: 0; width: 50%; transform-origin: 0 50%; z-index: 4; pointer-events: none; border-radius: 0 8px 8px 0; background-color: #f5f3ee; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: inset 14px 0 18px -14px rgba(0,0,0,.35); }
.pp__leaf.is-turn { animation: leafTurn .65s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes leafTurn { from { transform: rotateY(0); } to { transform: rotateY(-180deg); } }
.pp__label small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: #8a8884; direction: ltr; text-align: right; }
.pp__label h3 { margin: 4px 0 12px; font-size: clamp(17px, 2vw, 22px); font-weight: 700; color: #111; line-height: 1.45; }
.pp__rows { margin: 0; display: grid; gap: 8px; }
.pp__rows div { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 6px; border-bottom: 1px dashed rgba(43,41,39,.3); }
.pp__rows dt { font-size: 12.5px; color: #8a8884; }
.pp__rows dd { margin: 0; font-size: 13.5px; font-weight: 700; color: #111; text-align: left; }
.pp__shadow { position: absolute; left: 6%; right: 6%; bottom: -34px; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.3), rgba(0,0,0,0)); filter: blur(6px); }
.vpanel { padding: 30px 30px 26px; border-radius: 6px; box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 26px 40px -28px rgba(0,0,0,.45); }
.vpanel > * { transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1); }
.vpanel.is-swap > * { opacity: 0; transform: translateY(10px); }
.vpanel h3 { margin: 0 0 10px; font-size: 21px; font-weight: 700; color: #111; }
.vpanel p { margin: 0 0 14px; font-size: 15px; line-height: 2.05; color: #3f3d3a; text-align: justify; text-align-last: right; }

/* ---------- چک‌لیست مدارک روی تخته‌شاسی ---------- */
.ckx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: center; }
.clip { --px: 0; --py: 0; position: relative; perspective: 1400px; }
.clip__board {
  position: relative; padding: 54px 18px 22px; border-radius: 14px; transform-style: preserve-3d;
  background: linear-gradient(160deg, #2c2c2c, #111 60%, #060606);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), calc(var(--px) * -18px) 30px 44px -26px rgba(0,0,0,.6);
  transform: rotateX(calc(10deg + var(--py) * -5deg)) rotateY(calc(var(--px) * 7deg));
  transition: transform .4s ease;
}
.clip__clamp { position: absolute; left: 50%; top: -14px; width: 130px; height: 50px; margin-left: -65px; border-radius: 10px 10px 6px 6px; transform: translateZ(30px);
  background: linear-gradient(180deg, #e9e9e9, #9a9a9a 55%, #5a5a5a); box-shadow: 0 6px 10px rgba(0,0,0,.4), inset 0 1px 0 #fff; }
.clip__clamp::before { content: ""; position: absolute; left: 50%; top: 9px; width: 34px; height: 12px; margin-left: -17px; border-radius: 8px; background: #2a2a2a; box-shadow: inset 0 2px 3px rgba(0,0,0,.6); }
.clip__paper { position: relative; padding: 26px 22px 18px; border-radius: 3px; transform: translateZ(8px); box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.clip__paper h3 { margin: 0 0 10px; font-size: 17px; font-weight: 700; color: #111; }
.ck { list-style: none; margin: 0; padding: 0; }
.ck li + li { border-top: 1px dashed rgba(43,41,39,.25); }
.ck button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 8px 2px; border: 0; background: none; cursor: pointer; text-align: right;
  font: 500 14.5px/1.7 "Vazirmatn", Tahoma, sans-serif; color: #2b2927; }
.ck button:focus-visible { outline: 2px solid #111; outline-offset: 2px; border-radius: 4px; }
.ck__box { flex: none; width: 24px; height: 24px; overflow: visible; }
.ck__box rect { fill: none; stroke: #2b2927; stroke-width: 1.6; }
.ck__box path { fill: none; stroke: #111; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .4s ease; }
.ck button[aria-checked="true"] .ck__box path { stroke-dashoffset: 0; }
.ck button[aria-checked="true"] .ck__txt { text-decoration: line-through; text-decoration-color: rgba(17,17,17,.45); color: #6b6965; }
.ck__meter { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 13px; color: #6b6967; font-variant-numeric: tabular-nums; }
.ck__bar { flex: 1; height: 6px; border-radius: 6px; background: #e4e3df; overflow: hidden; }
.ck__bar span { display: block; height: 100%; width: 0; background: #111; transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.ck__ready { position: absolute; left: 14px; bottom: 54px; width: 120px; height: 120px; opacity: 0; transform: rotate(-14deg) scale(1.7); pointer-events: none; }
.clip.is-done .ck__ready { animation: ppStamp .5s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.ck__ready svg { width: 100%; height: 100%; }

@media (max-width: 980px) {
  .ppx { grid-template-columns: minmax(0, 1fr); gap: 50px; }
  .pp { max-width: 560px; width: 100%; margin: 0 auto; }
  .ckx { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .clip { max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 560px) {
  .l-visa { width: 220px; right: -1%; bottom: 1%; }
  .vs__grid { gap: 4px 6px; padding: 8px 10px; } .vs__grid b { font-size: 10px; } .vs__grid small { font-size: 7.5px; }
  .vs__mrz { font-size: 8px; padding: 6px 10px 8px; }
  .vtabs { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 4px 16px 10px; scrollbar-width: none; }
  .vtabs::-webkit-scrollbar { display: none; }
  .pp__right { padding: 6% 6% 5%; }
  .pp__label h3 { font-size: 14px; margin-bottom: 6px; }
  .pp__label small { font-size: 9px; }
  .pp__rows { gap: 4px; } .pp__rows div { padding-bottom: 3px; } .pp__rows dt { font-size: 10px; } .pp__rows dd { font-size: 10.5px; }
  .vpanel { padding: 24px 20px 20px; }
  .clip__board { padding: 50px 12px 16px; }
  .clip__paper { padding: 22px 14px 14px; }
  .ck__ready { width: 90px; height: 90px; bottom: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .pp__book, .pp__cover, .clip__board, .vpanel > * { transition: none; }
  .pp__leaf.is-turn { animation: none; }
}

/* بخش انواع ویزا نباید صفحه را افقی پهن کند */
#types { overflow-x: clip; }
/* چرخش سه‌بعدی تخته‌شاسی نباید صفحه را افقی پهن کند */
.sec:has(.ckx), .clip { overflow-x: clip; overflow-clip-margin: 0; }
.clip { padding-top: 16px; }
