/* Zynnah studio — gift cards (/gift order page + /gift-card link page) */
.gift-page [hidden] { display: none !important; }
.gift-page { background: #fff4f8; --hot: #e2508c; --hot-2: #c93576; --sun: #f2b544; --wa: #17804a; }

/* ── The card (front / back, flips) ── */
.gcard {
  position: relative; width: 100%; aspect-ratio: 831 / 1211; perspective: 1400px;
  cursor: pointer; direction: ltr; container-type: inline-size; border-radius: 4.5%;
  -webkit-tap-highlight-color: transparent;
}
.gcard:focus-visible { outline: 3px solid var(--hot-2, #c93576); outline-offset: 4px; }
.gcard-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3, 1.2, .4, 1); }
.gcard.flipped .gcard-in { transform: rotateY(180deg); }
.gface {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 4.5%; overflow: hidden; background: #fff;
  box-shadow: 0 26px 50px -24px rgba(80, 10, 50, .55), 0 2px 6px rgba(80, 10, 50, .12);
}
.gface img { width: 100%; height: 100%; object-fit: cover; }
.gback { transform: rotateY(180deg); }
.gv {
  position: absolute; transform: translateY(-50%); white-space: nowrap; overflow: hidden; text-overflow: clip;
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; font-weight: 600; color: #3b2240; line-height: 1.2;
  font-size: calc(4.3cqw * var(--k, 1)); text-align: left;
}
.gv[data-i="0"] { white-space: normal; max-height: 11cqw; line-height: 1.15; overflow-wrap: anywhere; }
.gv.soft { color: rgba(59, 34, 64, .38); font-weight: 500; font-style: italic; }
@media (prefers-reduced-motion: reduce) { .gcard-in { transition: none; } }

/* ── Hero ── */
.gf-hero {
  padding: 36px 0 30px; color: #fff; overflow: hidden; position: relative;
  background:
    radial-gradient(50% 60% at 90% 0%, rgba(242, 181, 68, .55), transparent 70%),
    radial-gradient(60% 70% at 0% 100%, rgba(138, 104, 184, .7), transparent 70%),
    var(--hot-2);
  border-radius: 0 0 40px 40px;
}
.gf-hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; }
.gf-kicker { font-family: var(--f-latin); letter-spacing: .28em; font-size: 12px; opacity: .9; }
.gf-hero h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(36px, 5.4vw, 68px); line-height: 1.2; margin: 8px 0 12px; text-wrap: balance; }
.gf-hero h1 em { font-style: normal; color: #ffe7b0; }
html[lang="en"] .gf-hero h1 { font-family: var(--f-latin); font-weight: 500; }
html[lang="en"] .gf-hero h1 em { font-style: italic; }
.gf-hero p { font-size: 18px; max-width: 30em; margin: 0 0 22px; }
.gf-btn-white { background: #fff; color: var(--hot-2); box-shadow: 0 12px 26px -12px rgba(60, 0, 30, .5); }
.gf-btn-white:hover { background: var(--plum); color: #fff; }
.gf-fan { position: relative; height: 330px; }
.gf-fan img {
  position: absolute; left: 50%; bottom: 0; width: 150px; height: auto; border-radius: 10px;
  transform-origin: 50% 120%; transform: translateX(-50%) rotate(calc(var(--i) * 13deg)) translateY(var(--y, 0px));
  box-shadow: 0 20px 34px -18px rgba(60, 0, 30, .7); transition: transform .5s cubic-bezier(.3, 1.4, .5, 1);
}
.gf-fan:hover img { transform: translateX(-50%) rotate(calc(var(--i) * 17deg)) translateY(-8px); }

/* ── Order form ── */
.gf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; align-items: start; padding: 34px 0 60px; }
.gf-step { background: #fff; border-radius: 26px; padding: 22px 22px 24px; margin-bottom: 16px; box-shadow: 0 14px 40px -30px rgba(80, 10, 50, .5); }
.gf-step h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-family: var(--f-display); font-size: 22px; }
html[lang="en"] .gf-step h2 { font-family: var(--f-latin); font-weight: 600; }
.gf-step h2 i {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--hot-2); color: #fff; font-style: normal; font-family: var(--f-latin); font-size: 16px;
}

.gf-designs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.gf-design { position: relative; cursor: pointer; text-align: center; }
.gf-design input { position: absolute; opacity: 0; pointer-events: none; }
.gf-design img { width: 100%; height: auto; border-radius: 10px; aspect-ratio: 831 / 1211; object-fit: cover; outline: 3px solid transparent; outline-offset: 3px; transition: transform .25s, outline-color .2s; }
.gf-design span { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; }
.gf-design:hover img { transform: translateY(-3px); }
.gf-design input:checked + img { outline-color: var(--hot-2); transform: translateY(-3px); }
.gf-design input:checked ~ span { color: var(--hot-2); }
.gf-design input:focus-visible + img { outline-color: var(--plum); }

.gf-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gf-kind { position: relative; cursor: pointer; }
.gf-kind input { position: absolute; opacity: 0; }
.gf-kind > span {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 18px; height: 100%;
  border: 2px solid var(--line); transition: border-color .2s, background .2s;
}
.gf-kind b { font-size: 16px; }
.gf-kind small { color: var(--muted); font-size: 13.5px; }
.gf-kind input:checked + span { border-color: var(--hot-2); background: #fff0f6; }
.gf-kind input:focus-visible + span { outline: 3px solid var(--plum); outline-offset: 2px; }
.gf-sub { margin-top: 16px; }

.gf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gf-chip {
  border: 2px solid var(--line); background: #fff; border-radius: 99px; padding: 9px 18px; font-weight: 700; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.gf-chip:hover { border-color: var(--hot-2); }
.gf-chip.on { background: var(--hot-2); border-color: var(--hot-2); color: #fff; }
.gf-other { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 600; }
.gf-other input { width: 150px; }

.gf-pgroup h3 { font-size: 14px; color: var(--muted); margin: 12px 0 6px; font-weight: 600; }
.gf-pgroup:first-child h3 { margin-top: 0; }
.gf-pkg {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 14px;
  margin-bottom: 6px; cursor: pointer; transition: border-color .2s, background .2s;
}
.gf-pkg input { accent-color: var(--hot-2); }
.gf-pkg .n { flex: 1; min-width: 0; }
.gf-pkg .n small { display: block; color: var(--muted); font-size: 12.5px; }
.gf-pkg b { white-space: nowrap; }
.gf-pkg:has(input:checked) { border-color: var(--hot-2); background: #fff0f6; }

.gf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gf-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-weight: 600; font-size: 14.5px; }
.gf-field > em { display: none; }
.gf-field span + em { display: none; }
.gf-step input:not([type=radio]):not(.sr), .gf-step textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-weight: 400;
}
.gf-step input:focus, .gf-step textarea:focus { outline: none; border-color: var(--hot-2); box-shadow: 0 0 0 3px rgba(201, 53, 118, .15); }
.gf-step textarea { resize: vertical; }
.gf-note { background: #fff7e3; border-radius: 14px; padding: 10px 14px; margin: 12px 0 0; font-size: 14.5px; }

.gf-sum { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 16px; }
.gf-sum dt { color: var(--muted); }
.gf-sum dd { margin: 0; font-weight: 600; }
.gf-sum .tot { font-size: 19px; color: var(--plum); font-weight: 700; border-top: 1px dashed var(--line); padding-top: 8px; }
.gf-how { margin: 0 0 14px; padding-inline-start: 22px; color: var(--ink); font-size: 15px; }
.gf-how li { margin-bottom: 4px; }
.gf-warn { background: #fff0f6; border: 1px solid rgba(201, 53, 118, .25); padding: 10px 14px; border-radius: 12px; font-size: 14.5px; margin: 0 0 16px; }
.gf-wa {
  width: 100%; justify-content: center; display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: #fff; font-size: 17px; padding: 15px 22px;
}
.gf-wa:hover { background: #0f6339; }
.gf-wa svg { width: 22px; height: 22px; fill: currentColor; }
.gift-page .form-msg { min-height: 0; margin: 0 0 10px; color: #b3121d; font-weight: 600; }
.gift-page .form-msg:empty { display: none; }

.gf-side { position: sticky; top: 92px; }
.gf-preview { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gf-preview .gcard { max-width: 300px; }
.gf-total { display: flex; align-items: baseline; gap: 10px; font-size: 15px; color: var(--muted); }
.gf-total b { color: var(--plum); font-size: 22px; font-family: var(--f-latin); }

/* ── Done ── */
.gf-done { padding: 40px 0 70px; outline: none; }
.gf-done-card { max-width: 560px; margin: 0 auto; background: #fff; border-radius: 30px; padding: 34px 26px; text-align: center; box-shadow: 0 20px 50px -30px rgba(80, 10, 50, .5); }
.gf-done-ic { font-size: 54px; display: block; line-height: 1; }
.gf-done h2 { font-family: var(--f-display); font-size: 30px; margin: 12px 0 6px; }
.gf-code b { font-family: var(--f-latin); font-size: 22px; color: var(--hot-2); letter-spacing: .04em; margin-inline-start: 6px; }
.gf-iban { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 14px 0; }
.gf-iban code { background: #fff4f8; padding: 6px 10px; border-radius: 8px; font-size: 15px; }
.gf-done .gf-warn { text-align: start; }
.gf-again { display: inline-block; margin-top: 14px; color: var(--hot-2); font-weight: 600; }

/* ── Card link page (/gift-card) ── */
.gc-page main { padding: 26px 0 60px; }
.gc-wrap { width: min(980px, 100% - 32px); margin: 0 auto; display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 40px; align-items: center; }
.gc-card { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gc-card .gcard { max-width: 380px; }
.gc-hint { font-size: 13px; color: var(--muted); }
.gc-info h1 { font-family: var(--f-display); font-size: clamp(30px, 4.6vw, 48px); line-height: 1.25; margin: 0 0 4px; color: var(--hot-2); }
html[lang="en"] .gc-info h1 { font-family: var(--f-latin); font-weight: 600; }
.gc-from { font-size: 18px; margin: 0 0 16px; }
.gc-msg {
  position: relative; background: #fff; border-radius: 22px; padding: 16px 20px; margin: 0 0 18px; font-size: 17px;
  box-shadow: 0 14px 34px -24px rgba(80, 10, 50, .55);
}
.gc-msg::before { content: "“"; position: absolute; top: -18px; inset-inline-start: 14px; font-family: var(--f-latin); font-size: 64px; color: var(--hot); line-height: 1; }
.gc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.gc-fact { background: #fff; border-radius: 18px; padding: 12px 14px; }
.gc-fact span { display: block; font-size: 12.5px; color: var(--muted); }
.gc-fact b { font-size: 17px; }
.gc-fact .code { font-family: var(--f-latin); letter-spacing: .05em; color: var(--hot-2); }
.gc-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.gc-acts .gf-wa { width: auto; }
.gc-banner { border-radius: 18px; padding: 14px 18px; margin-bottom: 18px; font-weight: 600; }
.gc-banner.pending { background: #fff7e3; }
.gc-banner.off { background: #f3eef4; color: var(--muted); }
.gc-steps { margin: 18px 0 0; padding-inline-start: 22px; color: var(--muted); font-size: 14.5px; }

/* print: both sides at the real card size (73.3 × 106.8 mm) */
.gc-print { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  body * { visibility: hidden; }
  .gc-print, .gc-print * { visibility: visible; }
  .gc-print { display: flex !important; gap: 8mm; position: absolute; top: 0; left: 0; direction: ltr; }
  .gc-print .gcard { width: 73.3mm; cursor: default; }
  .gc-print .gface { box-shadow: none; border-radius: 0; outline: .2mm dashed #bbb; }
  .gc-print .gcard-in { transform: none !important; transition: none; }
  .gc-print .gback { transform: none; }
  .gc-print .gside { position: relative; width: 73.3mm; aspect-ratio: 831 / 1211; container-type: inline-size; }
  .gc-print .gside .gface { position: absolute; inset: 0; backface-visibility: visible; }
}

/* ── Tablet & phone ── */
@media (max-width: 960px) {
  .gf-grid { grid-template-columns: minmax(0, 1fr); }
  .gf-side { position: static; order: -1; }
  .gf-preview .gcard { max-width: 220px; }
  .gc-wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .gc-card .gcard { max-width: 300px; }
}
@media (max-width: 720px) {
  .gf-hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .gf-fan { height: 210px; }
  .gf-fan img { width: 100px; }
  .gf-designs { grid-template-columns: repeat(5, minmax(84px, 1fr)); overflow-x: auto; padding: 4px 4px 8px; margin: 0 -4px; scroll-snap-type: x mandatory; }
  .gf-design { scroll-snap-align: start; }
  .gf-design span { font-size: 12.5px; }
  .gf-kinds, .gf-row { grid-template-columns: 1fr; }
  .gf-step { padding: 18px 16px 20px; border-radius: 22px; }
  .gf-step h2 { font-size: 19px; }
}
