:root {
    --gift-ink: #edfaff;
    --gift-muted: #91aebc;
    --gift-night: #050d17;
    --gift-panel: rgba(8, 25, 39, .92);
    --gift-line: rgba(72, 222, 245, .2);
    --gift-cyan: #4be8f8;
    --gift-violet: #936dff;
    --gift-green: #56f0ad;
    --gift-danger: #ff7798;
}

.gift-page {
    background:
        radial-gradient(circle at 82% 8%, rgba(127, 72, 255, .16), transparent 30%),
        radial-gradient(circle at 4% 31%, rgba(33, 219, 239, .1), transparent 28%),
        linear-gradient(rgba(59, 207, 231, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 207, 231, .025) 1px, transparent 1px),
        var(--gift-night);
    background-size: auto, auto, 52px 52px, 52px 52px, auto;
    color: var(--gift-ink);
    min-height: 100vh;
}

.gift-page *, .gift-page *::before, .gift-page *::after { box-sizing: border-box; }
.gift-page [hidden] { display: none !important; }
.gift-page .site-footer { margin-top: 0; }

.gift-shell { margin: 0 auto; max-width: 1320px; padding: clamp(42px, 7vw, 92px) 24px 96px; }
.gift-kicker { color: var(--gift-cyan); font-family: Consolas, 'Lucida Console', monospace; font-size: .7rem; font-weight: 900; letter-spacing: .19em; margin: 0; text-transform: uppercase; }

.gift-hero { align-items: center; display: grid; gap: clamp(34px, 7vw, 90px); grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); margin-bottom: clamp(48px, 7vw, 86px); }
.gift-hero-copy h1 { color: #fff; font-family: Bahnschrift, 'Arial Narrow', sans-serif; font-size: clamp(3rem, 7vw, 6.3rem); letter-spacing: -.06em; line-height: .91; margin: 15px 0 24px; max-width: 810px; text-align: left; }
.gift-lede { color: #a1bbc7; font-size: clamp(1rem, 1.5vw, 1.16rem); line-height: 1.75; margin: 0; max-width: 720px; }
.gift-status-line { align-items: center; background: rgba(8, 28, 42, .82); border: 1px solid var(--gift-line); border-radius: 999px; color: #bcd3dc; display: inline-flex; font-family: Consolas, 'Lucida Console', monospace; font-size: .73rem; gap: 10px; letter-spacing: .04em; margin-top: 28px; padding: 10px 15px; }
.gift-status-dot { animation: gift-pulse 1.8s ease-in-out infinite; background: #ffc967; border-radius: 50%; box-shadow: 0 0 0 5px rgba(255, 201, 103, .09); height: 7px; width: 7px; }
.gift-status-line.is-ready .gift-status-dot { background: var(--gift-green); box-shadow: 0 0 0 5px rgba(86, 240, 173, .09), 0 0 15px rgba(86, 240, 173, .52); }
.gift-status-line.is-unavailable .gift-status-dot { animation: none; background: var(--gift-danger); box-shadow: 0 0 0 5px rgba(255, 119, 152, .08); }

.certificate-preview { aspect-ratio: 1.6 / 1; background: radial-gradient(circle at 84% 18%, rgba(151, 91, 255, .3), transparent 30%), linear-gradient(145deg, rgba(14, 56, 76, .98), rgba(9, 18, 35, .98)); border: 1px solid rgba(100, 232, 250, .38); border-radius: 24px 7px 24px 7px; box-shadow: 0 34px 90px rgba(0, 0, 0, .42), inset 0 0 55px rgba(38, 218, 244, .04); display: grid; grid-template-rows: auto 1fr auto auto; min-height: 330px; overflow: hidden; padding: clamp(22px, 4vw, 38px); position: relative; transform: perspective(900px) rotateY(-3deg) rotateX(2deg); }
.certificate-preview::before, .certificate-preview::after { background: var(--gift-night); border: 1px solid var(--gift-line); border-radius: 50%; content: ''; height: 38px; position: absolute; top: calc(50% - 19px); width: 38px; z-index: 2; }
.certificate-preview::before { left: -20px; }
.certificate-preview::after { right: -20px; }
.certificate-scan { animation: gift-scan 5.5s ease-in-out infinite; background: linear-gradient(90deg, transparent, rgba(96, 239, 255, .22), transparent); height: 1px; left: 8%; position: absolute; right: 8%; top: 18%; }
.certificate-topline, .certificate-footer { color: #77ddec; display: flex; font-family: Consolas, 'Lucida Console', monospace; font-size: .62rem; font-weight: 850; justify-content: space-between; letter-spacing: .12em; }
.certificate-value { align-self: center; display: grid; gap: 1px; }
.certificate-value small, .certificate-recipient span { color: #789aaa; font-family: Consolas, 'Lucida Console', monospace; font-size: .61rem; font-weight: 800; letter-spacing: .16em; }
.certificate-value strong { color: #fff; font-family: Bahnschrift, 'Arial Narrow', sans-serif; font-size: clamp(4rem, 8vw, 7rem); letter-spacing: -.07em; line-height: .95; text-shadow: 0 0 36px rgba(75, 232, 248, .25); }
.certificate-recipient { border-bottom: 1px solid rgba(85, 220, 242, .18); display: grid; gap: 7px; margin-bottom: 15px; padding-bottom: 15px; }
.certificate-recipient strong { color: #e8faff; font-family: Bahnschrift, 'Arial Narrow', sans-serif; font-size: 1rem; letter-spacing: .06em; max-width: 95%; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.certificate-footer { color: #829eaa; flex-wrap: wrap; gap: 8px; }

.gift-workspace { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); }
.gift-compose-panel, .gift-rules-panel { background: linear-gradient(145deg, rgba(10, 31, 47, .97), rgba(6, 17, 29, .98)); border: 1px solid var(--gift-line); border-radius: 22px 7px 22px 7px; box-shadow: 0 28px 70px rgba(0, 0, 0, .26); padding: clamp(24px, 4vw, 42px); }
.gift-panel-heading { align-items: end; border-bottom: 1px solid rgba(73, 211, 235, .14); display: flex; justify-content: space-between; margin-bottom: 28px; padding-bottom: 20px; }
.gift-panel-heading h2, .gift-rules-panel h2 { color: #fff; font-family: Bahnschrift, 'Arial Narrow', sans-serif; font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.04em; margin: 8px 0 0; text-align: left; }
.gift-step-indicator, .gift-rule-index { color: #5e7f8e; font-family: Consolas, 'Lucida Console', monospace; font-size: .69rem; letter-spacing: .12em; }

#giftCertificateForm { display: grid; gap: 24px; }
#giftCertificateForm fieldset { border: 0; margin: 0; padding: 0; }
#giftCertificateForm legend { color: #cce5ec; font-size: .84rem; font-weight: 850; margin-bottom: 13px; }
.gift-denominations { display: grid; gap: 11px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gift-denomination { background: rgba(5, 19, 31, .78); border: 1px solid #284656; border-radius: 15px 4px 15px 4px; cursor: pointer; display: grid; min-height: 125px; padding: 17px; position: relative; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.gift-denomination:hover, .gift-denomination:focus-within, .gift-denomination.is-selected { border-color: var(--gift-cyan); box-shadow: inset 0 0 0 1px rgba(75, 232, 248, .14), 0 16px 35px rgba(0, 0, 0, .22); transform: translateY(-2px); }
.gift-denomination.is-selected { background: linear-gradient(140deg, rgba(21, 79, 94, .72), rgba(45, 32, 86, .72)); }
.gift-denomination.is-unavailable { cursor: not-allowed; filter: grayscale(.45); opacity: .42; pointer-events: none; transform: none; }
.gift-denomination input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.gift-denomination-code { color: #7ea2b0; font-family: Consolas, 'Lucida Console', monospace; font-size: .6rem; letter-spacing: .1em; }
.gift-denomination strong { align-self: end; color: #fff; font-family: Bahnschrift, 'Arial Narrow', sans-serif; font-size: 2.2rem; letter-spacing: -.05em; }
.gift-denomination small { color: var(--gift-cyan); font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
fieldset:disabled .gift-denomination { cursor: not-allowed; opacity: .48; transform: none; }

.gift-recipient-fields { display: grid; gap: 15px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gift-recipient-fields legend { grid-column: 1 / -1; }
.gift-recipient-fields label { color: #9eb8c4; display: grid; font-size: .8rem; font-weight: 800; gap: 8px; }
.gift-recipient-fields label span { align-items: center; display: flex; justify-content: space-between; }
.gift-recipient-fields label small { color: #698997; font-size: .69rem; font-weight: 600; }
.gift-message-field { grid-column: 1 / -1; }
.gift-recipient-fields input, .gift-recipient-fields textarea { background: #061522; border: 1px solid #284657; border-radius: 10px 3px 10px 3px; color: #eefcff; font: inherit; outline: none; padding: 12px 13px; resize: vertical; width: 100%; }
.gift-recipient-fields input { min-height: 48px; }
.gift-recipient-fields input:focus, .gift-recipient-fields textarea:focus { border-color: var(--gift-cyan); box-shadow: 0 0 0 3px rgba(75, 232, 248, .09); }
.gift-recipient-fields input:disabled, .gift-recipient-fields textarea:disabled { color: #66808b; cursor: not-allowed; opacity: .58; }

.gift-claim-callout { align-items: flex-start; background: rgba(22, 76, 89, .28); border: 1px solid rgba(72, 221, 241, .18); border-radius: 13px; display: grid; gap: 13px; grid-template-columns: auto 1fr; padding: 16px; }
.gift-callout-icon { align-items: center; background: linear-gradient(145deg, var(--gift-cyan), var(--gift-violet)); border-radius: 9px 3px 9px 3px; color: #06131d; display: flex; font-family: Consolas, 'Lucida Console', monospace; font-size: .67rem; font-weight: 950; height: 34px; justify-content: center; width: 34px; }
.gift-claim-callout strong { color: #defaff; display: block; font-size: .86rem; }
.gift-claim-callout p { color: #8facb8; font-size: .79rem; line-height: 1.55; margin: 5px 0 0; }

.gift-terms-check { align-items: flex-start; color: #9bb5c0; cursor: pointer; display: grid; font-size: .77rem; gap: 11px; grid-template-columns: auto 1fr; line-height: 1.55; }
.gift-terms-check input { accent-color: var(--gift-cyan); height: 18px; margin: 1px 0 0; width: 18px; }
.gift-terms-check a { color: var(--gift-cyan); font-weight: 900; }
.gift-terms-check a:hover { color: #fff; }
.gift-continue { align-items: center; background: linear-gradient(100deg, var(--gift-cyan), #7b6dff); border: 0; border-radius: 11px 4px 11px 4px; color: #03131d; cursor: pointer; display: flex; font: 850 .9rem Bahnschrift, 'Arial Narrow', sans-serif; justify-content: space-between; letter-spacing: .04em; min-height: 52px; padding: 0 18px; text-transform: uppercase; transition: box-shadow .2s ease, transform .2s ease; }
.gift-continue:hover:not(:disabled) { box-shadow: 0 15px 34px rgba(60, 218, 245, .2); transform: translateY(-2px); }
.gift-continue:disabled { background: #304653; color: #8097a2; cursor: not-allowed; }
.gift-checkout-note { color: #6f8995; font-size: .72rem; line-height: 1.5; margin: -12px 0 0; text-align: center; }
.gift-form-notice { background: #351b29; border-left: 3px solid var(--gift-danger); border-radius: 4px; color: #ffdce5; font-size: .82rem; line-height: 1.5; padding: 12px 14px; }
.gift-form-notice.is-success { background: #12342d; border-left-color: var(--gift-green); color: #d9fff0; }
.gift-form-notice.is-info { background: #102d3e; border-left-color: var(--gift-cyan); color: #dffbff; }

.gift-rules-panel { overflow: hidden; position: relative; }
.gift-rules-panel::after { border: 1px solid rgba(97, 227, 247, .08); border-radius: 50%; content: ''; height: 260px; pointer-events: none; position: absolute; right: -155px; top: -120px; width: 260px; }
.gift-rule-index { position: absolute; right: 28px; top: 28px; }
.gift-rules-list { display: grid; gap: 0; list-style: none; margin: 30px 0; padding: 0; }
.gift-rules-list li { border-top: 1px solid rgba(70, 201, 226, .12); display: grid; gap: 14px; grid-template-columns: auto 1fr; padding: 18px 0; }
.gift-rules-list li > span { color: var(--gift-cyan); font-family: Consolas, 'Lucida Console', monospace; font-size: .64rem; font-weight: 900; letter-spacing: .09em; }
.gift-rules-list strong { color: #eafaff; display: block; font-size: .88rem; }
.gift-rules-list p { color: #83a1ae; font-size: .78rem; line-height: 1.55; margin: 5px 0 0; }
.gift-gdst-boundary { background: linear-gradient(140deg, rgba(58, 33, 95, .72), rgba(8, 41, 58, .75)); border: 1px solid rgba(165, 105, 255, .28); border-radius: 15px 4px 15px 4px; padding: 19px; }
.gift-gdst-label { align-items: center; color: #ce9cff !important; display: flex; font-family: Consolas, 'Lucida Console', monospace; font-size: .6rem !important; font-weight: 900; gap: 8px; letter-spacing: .12em; margin: 0 0 10px !important; }
.gift-gdst-label span { background: #cb7cff; border-radius: 50%; box-shadow: 0 0 12px #cb7cff; height: 6px; width: 6px; }
.gift-gdst-boundary h3 { color: #fff; font-family: Bahnschrift, 'Arial Narrow', sans-serif; font-size: 1.15rem; margin: 0 0 9px; text-align: left; }
.gift-gdst-boundary > p:last-child { color: #a89bb8; font-size: .76rem; line-height: 1.55; margin: 0; }

.gift-redemption-zone { margin-top: clamp(42px, 7vw, 78px); }
.gift-redemption-heading { align-items: end; display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr); margin-bottom: 24px; }
.gift-redemption-heading h2 { color: #fff; font-family: Bahnschrift, 'Arial Narrow', sans-serif; font-size: clamp(2.2rem, 5vw, 4.2rem); letter-spacing: -.05em; line-height: 1; margin: 10px 0 0; text-align: left; }
.gift-redemption-heading > p { color: #8daab7; line-height: 1.65; margin: 0; }
.gift-redemption-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gift-claim-panel, .gift-wallet-panel { background: linear-gradient(145deg, rgba(10, 32, 48, .97), rgba(6, 18, 30, .98)); border: 1px solid var(--gift-line); border-radius: 19px 6px 19px 6px; box-shadow: 0 24px 62px rgba(0, 0, 0, .24); min-width: 0; padding: clamp(22px, 3vw, 32px); }
.gift-subpanel-heading { align-items: flex-start; border-bottom: 1px solid rgba(72, 211, 235, .12); display: grid; gap: 14px; grid-template-columns: auto 1fr; margin-bottom: 22px; padding-bottom: 18px; }
.gift-subpanel-heading > span { align-items: center; background: rgba(75, 232, 248, .09); border: 1px solid rgba(75, 232, 248, .2); border-radius: 9px 3px 9px 3px; color: var(--gift-cyan); display: flex; font-family: Consolas, 'Lucida Console', monospace; font-size: .65rem; font-weight: 900; height: 34px; justify-content: center; width: 34px; }
.gift-subpanel-heading h3 { color: #f1fcff; font-family: Bahnschrift, 'Arial Narrow', sans-serif; font-size: 1.35rem; margin: 0 0 5px; text-align: left; }
.gift-subpanel-heading p { color: #7f9ca9; font-size: .8rem; line-height: 1.5; margin: 0; }
#giftClaimForm { display: grid; gap: 11px; }
#giftClaimForm > label { color: #bdd4dc; font-size: .8rem; font-weight: 850; }
.gift-code-entry { display: grid; gap: 9px; grid-template-columns: minmax(0, 1fr) auto; }
.gift-code-entry input { background: #05131f; border: 1px solid #2a4b5c; border-radius: 10px 3px 10px 3px; color: #f1fdff; font: 800 1rem Consolas, 'Lucida Console', monospace; letter-spacing: .08em; min-height: 50px; min-width: 0; outline: none; padding: 11px 13px; width: 100%; }
.gift-code-entry input:focus { border-color: var(--gift-cyan); box-shadow: 0 0 0 3px rgba(75, 232, 248, .09); }
.gift-code-entry input:disabled { cursor: not-allowed; opacity: .5; }
.gift-code-entry button { background: linear-gradient(100deg, var(--gift-cyan), #7d6aff); border: 0; border-radius: 10px 3px 10px 3px; color: #03131d; cursor: pointer; font: 850 .78rem Bahnschrift, 'Arial Narrow', sans-serif; letter-spacing: .05em; min-height: 50px; padding: 0 17px; text-transform: uppercase; }
.gift-code-entry button:disabled { background: #304653; color: #8097a2; cursor: not-allowed; }
.gift-code-safety { color: #698792; font-size: .71rem; line-height: 1.5; margin: 0; }
.gift-claim-notice { background: #351b29; border-left: 3px solid var(--gift-danger); border-radius: 4px; color: #ffdce5; font-size: .8rem; line-height: 1.5; margin-top: 5px; padding: 12px 14px; }
.gift-claim-notice.is-success { background: #12342d; border-left-color: var(--gift-green); color: #d9fff0; }
.gift-account-route { align-items: center; border-top: 1px solid rgba(72, 211, 235, .12); color: #7eeaf8; display: flex; font-size: .78rem; font-weight: 850; justify-content: space-between; margin-top: 21px; padding-top: 17px; text-decoration: none; }
.gift-account-route:hover { color: #fff; }
.gift-wallet-refresh { background: transparent; border: 1px solid #315568; border-radius: 9px 3px 9px 3px; color: #a9dce5; cursor: pointer; font: 800 .7rem Bahnschrift, 'Arial Narrow', sans-serif; letter-spacing: .06em; margin: 0 0 15px; min-height: 38px; padding: 0 12px; text-transform: uppercase; }
.gift-wallet-refresh:hover:not(:disabled) { border-color: var(--gift-cyan); color: #fff; }
.gift-wallet-refresh:disabled { cursor: not-allowed; opacity: .45; }
.gift-wallet-list { display: grid; gap: 10px; }
.gift-wallet-empty { background: rgba(5, 19, 31, .65); border: 1px dashed #284858; border-radius: 11px; color: #7895a1; font-size: .79rem; line-height: 1.55; margin: 0; padding: 18px; text-align: center; }
.gift-wallet-card { background: rgba(5, 19, 31, .76); border: 1px solid rgba(69, 208, 233, .16); border-radius: 12px 4px 12px 4px; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) auto; padding: 15px; }
.gift-wallet-card h4 { color: #e8fbff; font: 850 .9rem Bahnschrift, 'Arial Narrow', sans-serif; margin: 0; overflow-wrap: anywhere; }
.gift-wallet-status { align-self: start; background: rgba(68, 221, 241, .1); border: 1px solid rgba(68, 221, 241, .18); border-radius: 999px; color: #7ee9f6; font: 800 .6rem Consolas, 'Lucida Console', monospace; letter-spacing: .07em; padding: 6px 8px; text-transform: uppercase; }
.gift-wallet-values { display: grid; gap: 9px; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gift-wallet-values div { border-top: 1px solid rgba(72, 211, 235, .1); display: grid; gap: 4px; padding-top: 9px; }
.gift-wallet-values dt { color: #668692; font: 800 .58rem Consolas, 'Lucida Console', monospace; letter-spacing: .1em; text-transform: uppercase; }
.gift-wallet-values dd { color: #dffaff; font-size: .86rem; font-weight: 850; margin: 0; }

@keyframes gift-pulse { 50% { opacity: .5; transform: scale(.8); } }
@keyframes gift-scan { 0%, 100% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 65% { opacity: .2; transform: translateY(220px); } }

@media (max-width: 980px) {
    .gift-hero { grid-template-columns: 1fr; }
    .certificate-preview { max-width: 700px; transform: none; width: 100%; }
    .gift-workspace { grid-template-columns: 1fr; }
    .gift-redemption-heading, .gift-redemption-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .gift-shell { padding: 38px 13px 64px; }
    .gift-hero-copy h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
    .certificate-preview { aspect-ratio: auto; min-height: 320px; }
    .gift-denominations { grid-template-columns: 1fr; }
    .gift-denomination { min-height: 94px; }
    .gift-recipient-fields { grid-template-columns: 1fr; }
    .gift-message-field { grid-column: auto; }
    .certificate-footer { display: grid; }
    .gift-code-entry { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .gift-page *, .gift-page *::before, .gift-page *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
