/* Digital gift cards
   Isolated feature styles: safe to remove without affecting the main theme. */

.gift-home {
  overflow: hidden;
  padding-block: clamp(2.25rem, 3.5vw, 3.5rem);
  color: #fff9ee;
  background: var(--maroon-950);
}
.gift-home::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .14;
  pointer-events: none;
  background-image: linear-gradient(90deg, transparent 49.6%, rgba(255,255,255,.18) 50%, transparent 50.4%);
  background-size: 130px 100%;
}
.gift-home__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, .98fr);
  min-height: 350px;
  align-items: stretch;
}
.gift-home__media { position: relative; min-height: 350px; overflow: hidden; border-radius: 8px 0 0 8px; background: #f8f0e1; }
.gift-home__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.gift-home:hover .gift-home__media img { transform: scale(1.035); }
.gift-home__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(58,11,18,.72)); }
.gift-home__badge { position: absolute; z-index: 2; top: 1rem; left: 1rem; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .7rem; color: var(--maroon-950); background: var(--gold-400); border-radius: 4px; font-family: var(--font-en); font-size: .62rem; font-weight: 800; letter-spacing: .08em; }
.gift-home__copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: clamp(1.6rem, 3vw, 2.75rem); border: 1px solid rgba(255,255,255,.12); border-left: 0; border-radius: 0 8px 8px 0; }
.gift-home__copy .eyebrow { color: var(--gold-400); }
.gift-home__copy h2 { max-width: 680px; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2.5rem, 3.8vw, 3.7rem); line-height: .92; }
.gift-home__copy h2 em { color: var(--gold-400); }
.gift-home__copy > p:not(.eyebrow) { max-width: 520px; margin: .9rem 0 1.35rem; color: rgba(255,249,238,.76); font-family: var(--font-en); font-size: .86rem; }
.gift-home__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.gift-home__fineprint { display: inline-flex; align-items: center; gap: .55rem; color: rgba(255,249,238,.58); font-family: var(--font-en); font-size: .76rem; }
.gift-home__seal { position: absolute; right: clamp(1rem, 3vw, 2rem); bottom: 1rem; width: 58px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(232,187,75,.45); border-radius: 50%; color: var(--gold-400); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.6rem; transform: rotate(-8deg); }

.gift-page-hero { position: relative; min-height: min(70vh, 680px); display: grid; align-items: end; overflow: hidden; color: #fff; background: var(--maroon-950); }
.gift-page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.gift-page-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,5,9,.92) 0%, rgba(42,8,13,.68) 38%, rgba(42,8,13,.12) 72%), linear-gradient(0deg, rgba(20,4,7,.4), transparent 45%); }
.gift-page-hero__content { position: relative; z-index: 1; padding-top: calc(var(--header-height) + 4rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.gift-page-hero__content .eyebrow { color: var(--gold-400); }
.gift-page-hero__content h1 { max-width: 730px; margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(3.8rem, 8vw, 7.3rem); font-weight: 600; line-height: .82; letter-spacing: 0; }
.gift-page-hero__content h1 em { color: var(--gold-400); font-style: normal; }
.gift-page-hero__content > p:not(.eyebrow) { max-width: 590px; margin: 1.45rem 0 1.8rem; color: rgba(255,255,255,.82); font-family: var(--font-en); font-size: 1.04rem; }

.gift-builder { padding-block: clamp(4.5rem, 8vw, 7.5rem); background: var(--surface); }
.gift-builder__heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 430px); align-items: end; gap: 3rem; margin-bottom: 2rem; }
.gift-builder__heading h2 { font-family: "Cormorant Garamond", Georgia, serif; }
.gift-builder__heading > p { margin: 0; color: var(--text-muted); font-family: var(--font-en); }
.gift-notice { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.2rem; padding: .9rem 1rem; border: 1px solid rgba(216,164,43,.45); border-radius: 6px; color: var(--text); background: color-mix(in srgb, var(--gold-200) 30%, var(--surface-card)); font-family: var(--font-en); }
.gift-notice > i { display: grid; width: 34px; aspect-ratio: 1; flex: 0 0 auto; place-items: center; color: var(--maroon-800); background: var(--gold-400); border-radius: 50%; }
.gift-notice div { display: grid; gap: .1rem; }
.gift-notice strong { font-size: .85rem; }
.gift-notice span { color: var(--text-muted); font-size: .78rem; }
.gift-workspace { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(330px, .78fr); align-items: start; gap: 1.5rem; }
.gift-workspace__main, .gift-preview-panel { border: 1px solid var(--border); border-radius: 8px; background: var(--surface-card); box-shadow: var(--shadow-sm); }
.gift-workspace__main { overflow: hidden; }
.gift-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface-alt) 68%, var(--surface-card)); }
.gift-steps li { position: relative; display: flex; min-height: 70px; align-items: center; justify-content: center; gap: .6rem; color: var(--ink-500); font-family: var(--font-en); font-size: .8rem; }
.gift-steps li + li { border-left: 1px solid var(--border); }
.gift-steps li::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--maroon-700); transform: scaleX(0); transition: transform .35s var(--ease); }
.gift-steps li.is-active { color: var(--text); }
.gift-steps li.is-complete { color: var(--success); }
.gift-steps li.is-active::after { transform: scaleX(1); }
.gift-steps li > span { display: grid; width: 28px; aspect-ratio: 1; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-weight: 700; }
.gift-steps li.is-complete > span { color: #fff; border-color: var(--success); background: var(--success); font-size: 0; }
.gift-steps li.is-complete > span::before { content: "✓"; font-size: .8rem; }
.gift-form { padding: clamp(1.3rem, 3.5vw, 2.5rem); }
.gift-form__step { animation: gift-step-in .42s var(--ease); }
@keyframes gift-step-in { from { opacity: 0; transform: translateY(12px); } }
.gift-form__section-head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 2rem; }
.gift-form__section-head > span { color: var(--maroon-700); font-family: var(--font-en); font-size: .65rem; font-weight: 800; letter-spacing: .16em; }
.gift-form__section-head h3 { margin: -.35rem 0 .2rem; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.45rem); line-height: 1; }
.gift-form__section-head p { margin: 0; color: var(--text-muted); font-family: var(--font-en); font-size: .84rem; }
.gift-fieldset { min-width: 0; margin: 0 0 2rem; padding: 0; border: 0; }
.gift-fieldset legend { width: 100%; margin-bottom: .8rem; font-family: var(--font-en); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.gift-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; }
.gift-amount-option { position: relative; }
.gift-amount-option input, .gift-design-option input { position: absolute; opacity: 0; pointer-events: none; }
.gift-amount-option label { display: grid; min-height: 64px; place-items: center; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.45rem; font-weight: 700; transition: border .2s, color .2s, background .2s, transform .2s; }
.gift-amount-option label:hover { transform: translateY(-2px); border-color: var(--maroon-700); }
.gift-amount-option input:checked + label { color: #fff; border-color: var(--maroon-800); background: var(--maroon-800); box-shadow: 0 8px 18px rgba(76,16,25,.16); }
.gift-amount-option input:focus-visible + label, .gift-design-option input:focus-visible + label { outline: 3px solid var(--gold-400); outline-offset: 3px; }
.gift-custom-amount { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .7rem; padding: .65rem .8rem; border: 1px solid var(--border); border-radius: 6px; color: var(--text); background: var(--surface); font-family: var(--font-en); font-size: .82rem; font-weight: 700; }
.gift-custom-amount__control, .gift-money-input { display: flex; align-items: center; color: var(--maroon-700); }
.gift-custom-amount input { width: 130px; padding: .25rem .2rem; border: 0; outline: 0; color: var(--text); background: transparent; font-weight: 700; }
.gift-field-hint { margin: .4rem 0 0; color: var(--text-muted); font-family: var(--font-en); font-size: .72rem; }
.gift-designs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.gift-design-option { position: relative; }
.gift-design-option label { display: grid; gap: .5rem; padding: .55rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); transition: transform .2s, border .2s, box-shadow .2s; }
.gift-design-option label:hover { transform: translateY(-2px); border-color: var(--maroon-700); }
.gift-design-option input:checked + label { border-color: var(--maroon-700); box-shadow: inset 0 0 0 2px var(--maroon-700); }
.gift-design-option__swatch { position: relative; min-height: 84px; overflow: hidden; border-radius: 4px; }
.gift-design-option__swatch::after { content: "O"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.9); font-family: "Cormorant Garamond", Georgia, serif; font-size: 2rem; }
.gift-design-option__swatch--rosso { background: linear-gradient(135deg, #4c1019, #a4373d 65%, #d8a42b); }
.gift-design-option__swatch--garden { background: linear-gradient(135deg, #123e2d, #2d7650 62%, #e8bb4b); }
.gift-design-option__swatch--celebration { background: linear-gradient(135deg, #fff7e8, #e8c86f 55%, #8b2937); }
.gift-design-option__swatch--celebration::after { color: var(--maroon-800); }
.gift-design-option strong { display: block; font-family: var(--font-en); font-size: .75rem; }
.gift-design-option small { display: block; margin-top: .12rem; color: var(--text-muted); font-family: var(--font-en); font-size: .65rem; line-height: 1.35; }
.gift-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gift-field { display: grid; gap: .45rem; min-width: 0; font-family: var(--font-en); }
.gift-field--wide { grid-column: 1 / -1; }
.gift-field > span:first-child { font-size: .74rem; font-weight: 800; }
.gift-field input, .gift-field select, .gift-field textarea { width: 100%; min-height: 50px; padding: .75rem .85rem; border: 1px solid var(--border); border-radius: 5px; outline: 0; color: var(--text); background: var(--surface); transition: border-color .2s, box-shadow .2s, background .2s; }
.gift-field textarea { min-height: 112px; resize: vertical; }
.gift-field input:focus, .gift-field select:focus, .gift-field textarea:focus { border-color: var(--maroon-700); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-400) 30%, transparent); background: var(--surface-card); }
.gift-field input[aria-invalid="true"], .gift-field select[aria-invalid="true"], .gift-field textarea[aria-invalid="true"] { border-color: var(--error); }
.gift-field small { justify-self: end; color: var(--text-muted); font-size: .68rem; }
.gift-form__actions { display: flex; justify-content: flex-end; gap: .8rem; margin-top: 2rem; }
.gift-form__actions--split { justify-content: space-between; }
.gift-form__message { min-height: 1.2em; margin: .8rem 0 0; color: var(--error); font-family: var(--font-en); font-size: .78rem; font-weight: 700; }
.gift-form__message.is-success { color: var(--success); }
.gift-order-summary { display: grid; gap: .6rem; margin-bottom: 1.6rem; padding: 1.1rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); font-family: var(--font-en); }
.gift-order-summary__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; color: var(--text-muted); font-size: .82rem; }
.gift-order-summary__row strong { color: var(--text); text-align: right; }
.gift-order-summary__row--total { margin-top: .4rem; padding-top: .85rem; border-top: 1px solid var(--border); color: var(--text); font-weight: 800; }
.gift-order-summary__row--total strong { color: var(--maroon-700); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.7rem; line-height: 1; }
.gift-payment { margin-bottom: 0; }
.gift-payment__warning { display: flex; gap: .6rem; margin-bottom: 1rem; padding: .7rem .8rem; color: #6a4800; background: #fff2c9; border-radius: 5px; font-family: var(--font-en); font-size: .72rem; font-weight: 700; }
.gift-demo-consent { display: flex; align-items: flex-start; gap: .7rem; margin-top: 1rem; color: var(--text-muted); font-family: var(--font-en); font-size: .73rem; }
.gift-demo-consent input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--maroon-700); }

.gift-preview-panel { position: sticky; top: 92px; padding: 1.2rem; }
.gift-preview-panel__top { display: flex; justify-content: space-between; margin-bottom: .8rem; color: var(--text-muted); font-family: var(--font-en); font-size: .65rem; }
.gift-preview-panel__top > span { color: var(--maroon-700); font-weight: 800; letter-spacing: .14em; }
.gift-card-visual { position: relative; min-height: 272px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 1.25rem; border-radius: 8px; color: #fff; box-shadow: 0 20px 42px rgba(31,8,12,.2); isolation: isolate; }
.gift-card-visual::before { content: ""; position: absolute; z-index: -1; width: 240px; aspect-ratio: 1; right: -80px; top: -90px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 0 0 30px rgba(255,255,255,.035), 0 0 0 65px rgba(255,255,255,.025); }
.gift-card-visual--rosso { background: linear-gradient(135deg, #3a0b12, #7e202a 58%, #b0443b); }
.gift-card-visual--garden { background: linear-gradient(135deg, #0e3024, #2d7650 65%, #c29b32); }
.gift-card-visual--celebration { color: var(--maroon-950); background: linear-gradient(135deg, #fffaf0, #f1d78f 58%, #d2a63a); }
.gift-card-visual__brand { display: flex; align-items: center; gap: .55rem; }
.gift-card-visual__brand > span { display: grid; width: 34px; aspect-ratio: 1; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.2rem; }
.gift-card-visual__brand strong { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.15rem; line-height: .9; }
.gift-card-visual__brand small { display: block; margin-top: .25rem; font-family: var(--font-en); font-size: .38rem; font-weight: 700; letter-spacing: .18em; opacity: .7; }
.gift-card-visual__center { margin-block: 2rem 1.2rem; }
.gift-card-visual__center small { display: block; margin-bottom: .1rem; font-family: var(--font-en); font-size: .55rem; font-weight: 700; letter-spacing: .18em; opacity: .7; }
.gift-card-visual__center strong { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.75rem, 4vw, 2.55rem); line-height: 1; }
.gift-card-visual__center p { display: -webkit-box; max-width: 90%; margin: .5rem 0 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-family: var(--font-en); font-size: .67rem; opacity: .76; }
.gift-card-visual__bottom { display: flex; align-items: end; justify-content: space-between; gap: 1rem; font-family: var(--font-en); }
.gift-card-visual__bottom span { font-size: .6rem; font-weight: 700; text-transform: uppercase; }
.gift-card-visual__bottom b { font-family: "Cormorant Garamond", Georgia, serif; font-size: 2rem; line-height: .8; }
.gift-preview-panel__details { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1rem; }
.gift-preview-panel__details div { min-width: 0; padding: .7rem; border: 1px solid var(--border); border-radius: 5px; }
.gift-preview-panel__details span, .gift-preview-panel__details strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-en); }
.gift-preview-panel__details span { color: var(--text-muted); font-size: .6rem; text-transform: uppercase; }
.gift-preview-panel__details strong { margin-top: .15rem; font-size: .75rem; }

.gift-balance { color: #fff8ed; background: #173e30; }
.gift-balance .eyebrow { color: var(--gold-400); }
.gift-balance h2 { font-family: "Cormorant Garamond", Georgia, serif; }
.gift-balance h2 em { color: var(--gold-400); }
.gift-balance__layout { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr); align-items: start; gap: clamp(2rem, 6vw, 6rem); }
.gift-balance__intro > p:not(.eyebrow) { margin: 1.3rem 0 1.7rem; color: rgba(255,255,255,.7); font-family: var(--font-en); }
.gift-balance__features { display: grid; gap: .6rem; }
.gift-balance__features span { display: flex; align-items: center; gap: .7rem; color: rgba(255,255,255,.82); font-family: var(--font-en); font-size: .78rem; }
.gift-balance__features i { width: 20px; color: var(--gold-400); text-align: center; }
.gift-balance__desk { overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; color: var(--text); background: var(--surface-card); box-shadow: 0 24px 60px rgba(5,19,13,.28); }
.gift-balance-form, .gift-account { padding: clamp(1.3rem, 3vw, 2rem); }
.gift-balance-form .gift-field-grid { grid-template-columns: minmax(0, 1.4fr) minmax(110px, .6fr) auto; align-items: end; }
.gift-balance-form .gift-field--wide { grid-column: auto; }
.gift-account { border-top: 1px solid var(--border); }
.gift-account__balance { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.2rem; }
.gift-account__balance span, .gift-account__balance strong { display: block; }
.gift-account__balance div > span { color: var(--text-muted); font-family: var(--font-en); font-size: .7rem; text-transform: uppercase; }
.gift-account__balance div > strong { margin-top: .25rem; font-family: "Cormorant Garamond", Georgia, serif; font-size: 3rem; line-height: .85; }
.gift-status { padding: .4rem .65rem; border-radius: 999px; color: #fff; background: var(--success); font-family: var(--font-en); font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.gift-status.is-redeemed { background: var(--ink-500); }
.gift-account__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1.5rem; }
.gift-account__meta div { padding: .7rem; border: 1px solid var(--border); border-radius: 5px; }
.gift-account__meta span, .gift-account__meta strong { display: block; font-family: var(--font-en); }
.gift-account__meta span { color: var(--text-muted); font-size: .6rem; text-transform: uppercase; }
.gift-account__meta strong { margin-top: .15rem; font-size: .72rem; }
.gift-redeem-form { padding-top: 1.4rem; border-top: 1px solid var(--border); }
.gift-redeem-form h3, .gift-history h3 { margin: 0 0 1rem; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.65rem; }
.gift-money-input { min-height: 50px; padding-inline: .85rem; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); }
.gift-money-input input { min-height: auto; padding-left: .25rem; border: 0; background: transparent; box-shadow: none !important; }
.gift-history { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.gift-transaction { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.gift-transaction:last-child { border-bottom: 0; }
.gift-transaction__icon { display: grid; width: 36px; aspect-ratio: 1; place-items: center; border-radius: 50%; color: var(--success); background: color-mix(in srgb, var(--success) 12%, transparent); }
.gift-transaction.is-redemption .gift-transaction__icon { color: var(--maroon-700); background: color-mix(in srgb, var(--maroon-700) 10%, transparent); }
.gift-transaction strong, .gift-transaction small { display: block; font-family: var(--font-en); }
.gift-transaction strong { font-size: .76rem; }
.gift-transaction small { color: var(--text-muted); font-size: .63rem; }
.gift-transaction__amount { text-align: right; }
.gift-transaction__amount b { display: block; font-family: var(--font-en); font-size: .78rem; }
.gift-transaction__amount small { color: var(--text-muted); }

.gift-success-main { padding-top: 70px; background: var(--surface); }
.gift-success { min-height: calc(100vh - 70px); padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.gift-success::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none; background: linear-gradient(90deg, transparent 49.8%, var(--border) 50%, transparent 50.2%); background-size: 120px 100%; }
.gift-success .container { position: relative; }
.gift-success__status { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; color: var(--success); font-family: var(--font-en); font-size: .7rem; font-weight: 800; letter-spacing: .13em; }
.gift-success__status > span { display: grid; width: 34px; aspect-ratio: 1; place-items: center; border-radius: 50%; color: #fff; background: var(--success); }
.gift-success__status p { margin: 0; }
.gift-success__heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.gift-success__heading h1, .gift-success-empty h1 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(3.5rem, 7vw, 6.6rem); font-weight: 600; line-height: .84; letter-spacing: 0; }
.gift-success__heading h1 em, .gift-success-empty h1 em { color: var(--maroon-700); font-style: normal; }
.gift-success__heading p { max-width: 620px; margin: 1rem 0 0; color: var(--text-muted); font-family: var(--font-en); }
.gift-success__number { min-width: 150px; padding: .8rem; border-left: 2px solid var(--gold-400); font-family: var(--font-en); }
.gift-success__number small, .gift-success__number strong { display: block; }
.gift-success__number small { color: var(--text-muted); font-size: .58rem; letter-spacing: .12em; }
.gift-success__number strong { margin-top: .2rem; font-size: .8rem; }
.gift-success__grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(340px, .97fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.gift-card-visual--large { min-height: 360px; padding: 1.7rem; }
.gift-card-visual--large .gift-card-visual__center strong { font-size: clamp(2.5rem, 5vw, 4rem); }
.gift-card-visual--large .gift-card-visual__center p { font-size: .78rem; }
.gift-credentials { display: grid; grid-template-columns: 1fr .45fr auto; align-items: center; gap: .7rem; margin-top: .8rem; padding: .75rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-card); box-shadow: var(--shadow-sm); }
.gift-credentials div { min-width: 0; }
.gift-credentials span, .gift-credentials strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-en); }
.gift-credentials span { color: var(--text-muted); font-size: .6rem; text-transform: uppercase; }
.gift-credentials strong { font-size: .78rem; }
.gift-success__summary .eyebrow { margin-bottom: .7rem; }
.gift-success__summary h2 { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2.6rem, 5vw, 4.3rem); }
.gift-success__details { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-block: 1.5rem; }
.gift-success__details div { padding: .75rem; border-bottom: 1px solid var(--border); }
.gift-success__details span, .gift-success__details strong { display: block; font-family: var(--font-en); }
.gift-success__details span { color: var(--text-muted); font-size: .6rem; text-transform: uppercase; }
.gift-success__details strong { margin-top: .2rem; font-size: .75rem; }
.gift-success__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.gift-text-link { display: inline-flex; align-items: center; gap: .5rem; width: 100%; margin-top: .6rem; color: var(--maroon-700); font-family: var(--font-en); font-size: .75rem; font-weight: 800; }
.gift-success-empty { min-height: calc(100vh - 70px); display: grid; align-items: center; text-align: center; }
.gift-success-empty p { max-width: 520px; margin: 1.2rem auto 1.8rem; color: var(--text-muted); }
.gift-success-empty .eyebrow { justify-content: center; }
.gift-email-modal { position: fixed; z-index: 4000; inset: 0; display: grid; place-items: center; padding: 1rem; }
.gift-email-modal__backdrop { position: absolute; inset: 0; background: rgba(25,5,9,.78); backdrop-filter: blur(8px); }
.gift-email-modal__panel { position: relative; width: min(680px, 100%); max-height: calc(100dvh - 2rem); overflow: auto; border-radius: 8px; background: #f7f3eb; box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.gift-email-modal__close { position: absolute; z-index: 3; top: .8rem; right: .8rem; color: #fff; border-color: rgba(255,255,255,.4); background: rgba(0,0,0,.2); }
.gift-email-modal__bar { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 4rem .8rem 1rem; color: #fff; background: var(--maroon-950); font-family: var(--font-en); font-size: .62rem; }
.gift-email-modal__bar > span { font-weight: 800; letter-spacing: .12em; }
.gift-email__masthead { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: 1.1rem; color: var(--maroon-950); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.4rem; }
.gift-email__masthead > span { display: grid; width: 32px; aspect-ratio: 1; place-items: center; border-radius: 50%; color: #fff; background: var(--maroon-700); }
.gift-email__image { height: 190px; overflow: hidden; }
.gift-email__image img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.gift-email__body { padding: clamp(1.4rem, 5vw, 3rem); color: var(--ink-900); text-align: center; }
.gift-email__body .eyebrow { justify-content: center; }
.gift-email__body h2 { font-family: "Cormorant Garamond", Georgia, serif; }
.gift-email__body > p:not(.eyebrow) { color: var(--ink-700); font-family: var(--font-en); font-size: .85rem; }
.gift-email__body blockquote { margin: 1.3rem 0; padding: 1rem; border-block: 1px solid rgba(76,16,25,.15); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.25rem; font-style: italic; }
.gift-email__code { display: grid; grid-template-columns: 1.3fr .5fr .6fr; gap: .4rem; margin-bottom: 1.3rem; }
.gift-email__code div { padding: .7rem; border: 1px solid rgba(76,16,25,.14); border-radius: 5px; background: #fff; }
.gift-email__code span, .gift-email__code strong { display: block; font-family: var(--font-en); }
.gift-email__code span { color: var(--ink-500); font-size: .55rem; text-transform: uppercase; }
.gift-email__code strong { margin-top: .15rem; font-size: .7rem; }

@media (max-width: 980px) {
  .gift-home__layout { grid-template-columns: 1fr; }
  .gift-home__media { min-height: 275px; border-radius: 8px 8px 0 0; }
  .gift-home__media::after { background: linear-gradient(0deg, rgba(58,11,18,.82), transparent 62%); }
  .gift-home__copy { border-top: 0; border-left: 1px solid rgba(255,255,255,.12); border-radius: 0 0 8px 8px; }
  .gift-workspace { grid-template-columns: 1fr; }
  .gift-preview-panel { position: static; grid-row: 1; }
  .gift-card-visual { min-height: 320px; }
  .gift-balance__layout, .gift-success__grid { grid-template-columns: 1fr; }
  .gift-balance__intro { max-width: 680px; }
}

@media (max-width: 720px) {
  .gift-page-hero { min-height: 620px; }
  .gift-page-hero > img { object-position: 62% center; }
  .gift-page-hero__shade { background: linear-gradient(0deg, rgba(25,5,9,.93) 0%, rgba(42,8,13,.62) 68%, rgba(42,8,13,.3)); }
  .gift-page-hero__content { padding-bottom: 3rem; }
  .gift-page-hero__content h1 { font-size: clamp(3.7rem, 17vw, 5.1rem); }
  .gift-builder__heading { grid-template-columns: 1fr; gap: 1rem; }
  .gift-notice { align-items: flex-start; }
  .gift-steps li { min-height: 62px; }
  .gift-steps li strong { display: none; }
  .gift-form { padding: 1.15rem; }
  .gift-amounts { grid-template-columns: repeat(2, 1fr); }
  .gift-designs { grid-template-columns: 1fr; }
  .gift-design-option label { grid-template-columns: 105px 1fr; align-items: center; }
  .gift-design-option__swatch { min-height: 64px; }
  .gift-field-grid { grid-template-columns: 1fr; }
  .gift-field--wide { grid-column: auto; }
  .gift-form__actions, .gift-form__actions--split { flex-direction: column-reverse; }
  .gift-form__actions .button { width: 100%; }
  .gift-card-visual { min-height: 260px; }
  .gift-balance-form .gift-field-grid { grid-template-columns: 1fr; }
  .gift-account__meta { grid-template-columns: 1fr; }
  .gift-success__heading { display: grid; }
  .gift-success__heading h1 { font-size: clamp(3.3rem, 15vw, 5rem); }
  .gift-success__number { min-width: 0; }
  .gift-card-visual--large { min-height: 300px; }
  .gift-credentials { grid-template-columns: 1fr auto; }
  .gift-credentials div:first-child { grid-column: 1 / -1; }
  .gift-success__details { grid-template-columns: 1fr; }
  .gift-success__actions .button { width: 100%; }
  .gift-email__code { grid-template-columns: 1fr 1fr; }
  .gift-email__code div:first-child { grid-column: 1 / -1; }
  .gift-email-modal__bar small { display: none; }
}

@media (max-width: 520px) {
  .gift-home { padding-block: 2rem; }
  .gift-home__media { min-height: 225px; }
  .gift-home__copy { padding: 1.5rem 1.25rem 4.5rem; }
  .gift-home__copy h2 { font-size: 2.35rem; }
  .gift-home__actions .button { width: 100%; }
  .gift-home__seal { bottom: 1rem; }
  .gift-preview-panel { padding: .75rem; }
  .gift-card-visual { min-height: 235px; padding: 1rem; }
  .gift-card-visual__center { margin-block: 1.5rem 1rem; }
  .gift-card-visual__center strong { font-size: 2rem; }
  .gift-preview-panel__details { grid-template-columns: 1fr; }
  .gift-account__balance { align-items: flex-start; }
  .gift-transaction { grid-template-columns: 36px 1fr; }
  .gift-transaction__amount { grid-column: 2; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .gift-home__media img, .gift-form__step { transition: none; animation: none; }
}
