/* ANE — Gift card page. אותה שפה כמו הסטודיו: רקע בהיר, ירוק אחד, רדיוס 12/16. */
.anegc {
  --g-ink: #0F1A14; --g-ink-2: #34433A; --g-muted: #5A6A60; --g-line: #DFE6E1; --g-line-2: #CBD6CF;
  --g-soft: #F4F8F5; --g-accent: #12903E; --g-accent-dk: #0B6E2E; --g-accent-soft: #E7F4EB; --g-danger: #B42318;
  --g-ease: cubic-bezier(0.23, 1, 0.32, 1);
  max-width: 1080px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) 20px clamp(40px, 6vw, 72px);
  font-family: Assistant, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; color: var(--g-ink);
  -webkit-font-smoothing: antialiased;
}
.anegc *, .anegc *::before, .anegc *::after { box-sizing: border-box; }
.anegc [hidden] { display: none !important; }
html body .anegc i.ph.anegc-icon, html body .anegc i.ph.anegc-icon::before { font-family: "Phosphor" !important; font-style: normal; }

.anegc-hero { max-width: 640px; margin-bottom: clamp(24px, 4vw, 40px); }
.anegc-title { margin: 0 0 10px; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.12; font-weight: 800; letter-spacing: -0.01em; color: var(--g-ink); text-wrap: balance; }
.anegc-lead { margin: 0; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65; color: var(--g-ink-2); max-width: 58ch; }

.anegc-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); gap: clamp(24px, 4vw, 48px); align-items: start; }

/* טופס */
.anegc-form { display: grid; gap: 22px; }
.anegc-step { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 10px; }
.anegc-label { display: block; margin: 0; padding: 0; font-size: 16px; font-weight: 800; color: var(--g-ink); }
.anegc-sub { font-size: 14px; font-weight: 700; color: var(--g-ink-2); margin-bottom: 6px; }
.anegc-amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.anegc-chip { position: relative; cursor: pointer; }
.anegc-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.anegc-chip span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 84px; height: 48px; padding: 0 18px;
  border-radius: 12px; border: 1px solid var(--g-line-2); background: #fff; font-size: 17px; font-weight: 800; color: var(--g-ink);
  font-variant-numeric: tabular-nums; transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 140ms var(--g-ease);
}
.anegc-chip:hover span { border-color: var(--g-accent); }
.anegc-chip:active span { transform: scale(0.97); }
.anegc-chip input:checked + span { border-color: var(--g-accent); background: var(--g-accent-soft); color: var(--g-accent-dk); box-shadow: 0 0 0 1px var(--g-accent) inset; }
.anegc-chip input:focus-visible + span { outline: 3px solid rgba(18, 144, 62, 0.35); outline-offset: 2px; }
.anegc-other { max-width: 240px; }
.anegc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.anegc-input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--g-line-2); background: #fff;
  font-family: inherit; font-size: 16px; color: var(--g-ink); transition: border-color 140ms ease, box-shadow 140ms ease;
}
.anegc-input:hover { border-color: var(--g-muted); }
.anegc-input:focus { outline: none; border-color: var(--g-accent); box-shadow: 0 0 0 3px rgba(18, 144, 62, 0.2); }
.anegc-input[aria-invalid="true"] { border-color: var(--g-danger); box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12); }
.anegc-input[dir="ltr"] { text-align: left; }
.anegc-text { height: auto; min-height: 92px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.anegc-count { margin: -4px 0 0; font-size: 12.5px; color: var(--g-muted); text-align: end; font-variant-numeric: tabular-nums; }
.anegc-opt { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--g-line); background: #fff; cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease; }
.anegc-opt:has(input:checked) { border-color: var(--g-accent); background: var(--g-accent-soft); }
.anegc-opt input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--g-accent); }
.anegc-opt b { display: block; font-size: 15px; color: var(--g-ink); }
.anegc-opt small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.5; color: var(--g-muted); }
.anegc-email { padding-inline-start: 30px; }
.anegc-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 0 22px;
  border: 0; border-radius: 12px; background: var(--g-accent); color: #fff; font-family: inherit; font-size: 17px; font-weight: 800; cursor: pointer;
  transition: background-color 160ms ease, transform 140ms var(--g-ease);
}
.anegc-btn:hover { background: var(--g-accent-dk); }
.anegc-btn:active { transform: scale(0.985); }
.anegc-btn:focus-visible { outline: 3px solid rgba(18, 144, 62, 0.35); outline-offset: 3px; }
.anegc-btn-sum { font-variant-numeric: tabular-nums; padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.16); }
.anegc-fine { margin: -8px 0 0; font-size: 13px; line-height: 1.6; color: var(--g-muted); }
.anegc-err { margin: 0; padding: 10px 12px; border-radius: 10px; background: #FDECEA; color: var(--g-danger); font-size: 14.5px; font-weight: 600; }

/* כרטיס תצוגה — שכבות הדפסה דקות על ירוק עמוק */
.anegc-side { position: sticky; top: 96px; display: grid; gap: 20px; }
.anegc-card {
  position: relative; overflow: hidden; aspect-ratio: 1.586; padding: clamp(18px, 3vw, 26px); border-radius: 20px; color: #fff;
  display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 4px;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(155, 230, 180, 0.28) 0%, rgba(155, 230, 180, 0) 55%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0 1px, rgba(255, 255, 255, 0) 1px 5px),
    linear-gradient(150deg, #0E7A34 0%, #0B4F27 55%, #08351B 100%);
  box-shadow: 0 30px 60px -28px rgba(8, 53, 27, 0.6), 0 2px 0 rgba(255, 255, 255, 0.12) inset;
}
.anegc-card-top { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; color: #CFEBD8; }
.anegc-card-top .ph { font-size: 22px; color: #fff; }
.anegc-card-kind { font-size: 13.5px; color: #B9E0C6; }
.anegc-card-amt { align-self: end; font-size: clamp(40px, 6vw, 58px); font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; transition: opacity 180ms var(--g-ease), filter 180ms var(--g-ease); }
.anegc-card-amt.is-swap { opacity: 0.35; filter: blur(2px); }
.anegc-card-names { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anegc-card-msg { margin: 0; font-size: 13.5px; line-height: 1.5; color: #E7F4EB; font-style: italic; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.anegc-card-msg:empty { display: none; }
.anegc-card-code { justify-self: start; margin-top: 8px; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.1); font-family: Consolas, Menlo, monospace; font-size: 15px; letter-spacing: 0.12em; }
.anegc-how { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.anegc-how li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-size: 15px; line-height: 1.55; color: var(--g-ink-2); }
.anegc-how li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--g-accent-soft); color: var(--g-accent-dk); font-weight: 800; font-size: 14px; }

@media (max-width: 860px) {
  .anegc-grid { grid-template-columns: 1fr; }
  .anegc-side { position: static; order: -1; }
  .anegc-how { display: none; }
  .anegc-card { max-width: 440px; }
}
@media (max-width: 480px) {
  .anegc { padding-inline: 16px; }
  .anegc-two { grid-template-columns: 1fr; }
  .anegc-chip { flex: 1 1 calc(50% - 4px); }
  .anegc-chip span { width: 100%; }
  .anegc-email { padding-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .anegc-card-amt, .anegc-chip span, .anegc-btn { transition: none; }
}
.anegc ::selection { background: rgba(18, 144, 62, 0.22); }
