/* Sustain-X Gifts — by TruBlink */

.sxg {
	--sxg-brand: #0e23ff;
	--sxg-brand-2: #3fa9ff;
	--sxg-ink: #0b1033;
	--sxg-muted: #5b6275;
	--sxg-line: #e6e8f0;
	--sxg-bg: #ffffff;
	--sxg-cream: #f4f5fa;
	--sxg-navy: #0b1033;
	--sxg-blue-light: #7b87ff;
	--sxg-radius: 20px;
	--sxg-shadow: 0 20px 60px -20px rgba(11, 16, 51, .25);
	--sxg-accent: #0e23ff;
	--sxg-from: #0b1033;
	--sxg-to: #0e23ff;
	--sxg-soft: #f4f5fa;
	--sxg-hand: "Caveat", "Segoe Script", cursive;
	font-family: Poppins, "Segoe UI", Helvetica, Arial, sans-serif;
	color: var(--sxg-ink);
	background: var(--sxg-bg);
	line-height: 1.55;
}
body:has(.sxg-builder), body:has(.sxg-open-page) { overflow-x: clip; }
.sxg *, .sxg *::before, .sxg *::after { box-sizing: border-box; }
.sxg h1, .sxg h2, .sxg h3, .sxg legend, .sxg button, .sxg input, .sxg textarea { font-family: Poppins, "Segoe UI", Helvetica, Arial, sans-serif; }
.sxg ins { background: none; text-decoration: none; }
.sxg .sxg-open__title, .sxg .sxg-open__state h1, .sxg .sxg-reveal__plan h3, .sxg .sxg-thanks h2, .sxg .sxg-quote p, .sxg .sxg-hero__title { color: #fff !important; }
.sxg .sxg-h2, .sxg .sxg-step legend { color: var(--sxg-ink) !important; }
.sxg-hero__title, .sxg-open__title, .sxg-h2, .sxg-quote p { text-wrap: balance; }
.sxg a.sxg-btn, .sxg a.sxg-btn:hover, .sxg a.sxg-btn:focus { text-decoration: none !important; }
.sxg .sxg-field input, .sxg .sxg-field textarea { border: 0 !important; border-radius: 14px !important; height: auto; }
/* Full-bleed sections inside the theme's content column */
.sxg-builder > section, .sxg-open-page > section { width: 100vw; position: relative; left: 50%; margin-left: -50vw; }
.sxg-builder, .sxg-open-page { margin-top: 0; }

.sxg-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sxg-wrap--narrow { max-width: 760px; }
.sxg-h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; text-align: center; margin: 0 0 40px; color: var(--sxg-ink); }

/* Buttons */
.sxg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; padding: 13px 24px; font: 600 15px/1.2 inherit; font-family: inherit; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.sxg-btn:hover { transform: translateY(-2px); text-decoration: none; }
.sxg-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--sxg-brand) 40%, transparent); outline-offset: 3px; }
.sxg-btn--lg { padding: 17px 30px; font-size: 16px; }
.sxg-btn--primary { color: #fff !important; background: linear-gradient(135deg, var(--sxg-brand), #4a5bff); box-shadow: 0 12px 30px -10px rgba(14, 35, 255, .6); }
.sxg-btn--primary:hover { box-shadow: 0 18px 36px -12px rgba(14, 35, 255, .7); }
.sxg-btn--ghost { color: var(--sxg-ink) !important; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1.5px var(--sxg-line); }
.sxg-btn--light { color: var(--sxg-ink) !important; background: #fff; box-shadow: 0 12px 30px -10px rgba(0,0,0,.35); }
.sxg-btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------------- Hero ---------------- */
.sxg-hero { position: relative; padding: 80px 0 96px; color: #fff; background: radial-gradient(900px 520px at 85% 20%, rgba(14,35,255,.55), transparent 65%), radial-gradient(700px 420px at 0% 100%, rgba(14,35,255,.25), transparent 70%), var(--sxg-navy); overflow: hidden; }
.sxg-hero__glow { position: absolute; inset: -30% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(circle, rgba(63,169,255,.18), transparent 60%); pointer-events: none; }
.sxg-hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.sxg-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #c9ceff; background: rgba(14,35,255,.3); box-shadow: inset 0 0 0 1px rgba(123,135,255,.35); padding: 7px 14px; border-radius: 999px; margin-bottom: 20px; }
.sxg-hero__title { font-size: clamp(34px, 4.8vw, 58px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; margin: 0 0 22px; color: var(--sxg-ink); }
.sxg-hero__title em { display: block; font-style: normal; color: var(--sxg-blue-light); }
.sxg-hero__lead { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,.75); max-width: 540px; margin: 0 0 30px; }
.sxg-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.sxg-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: rgba(255,255,255,.75); }
.sxg-trust li { position: relative; padding-left: 24px; }
.sxg-trust li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 17px; height: 17px; border-radius: 50%; background: rgba(14,35,255,.45); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }

.sxg-hero__stack { position: relative; height: 420px; perspective: 1200px; }
.sxg-mini-card { position: absolute; left: 50%; top: 50%; width: 300px; aspect-ratio: 1.6; border-radius: 22px; overflow: hidden; box-shadow: var(--sxg-shadow); transform-origin: 50% 100%; transition: transform .6s cubic-bezier(.2,.8,.2,1); background: #fff; }
.sxg-mini-card .sxg-art { display: block; width: 100%; height: 100%; }
.sxg-mini-card__title { position: absolute; left: 18px; bottom: 14px; font-family: var(--sxg-hand); font-size: 34px; font-weight: 700; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.sxg-mini-card--0 { transform: translate(-50%, -50%) translate(-70px, -40px) rotate(-12deg); animation: sxg-bob 7s ease-in-out infinite; }
.sxg-mini-card--1 { transform: translate(-50%, -50%) translate(70px, -10px) rotate(9deg); animation: sxg-bob 8s ease-in-out -2s infinite; }
.sxg-mini-card--2 { transform: translate(-50%, -50%) translate(-10px, 60px) rotate(-2deg); animation: sxg-bob 6s ease-in-out -1s infinite; z-index: 2; }
.sxg-hero__stack:hover .sxg-mini-card--0 { transform: translate(-50%, -50%) translate(-120px, -60px) rotate(-16deg); }
.sxg-hero__stack:hover .sxg-mini-card--1 { transform: translate(-50%, -50%) translate(120px, -20px) rotate(13deg); }
.sxg-hero__ribbon { position: absolute; right: 6%; bottom: 8%; z-index: 3; background: #fff; border-radius: 999px; padding: 10px 18px; font-family: var(--sxg-hand); font-size: 24px; font-weight: 700; color: var(--sxg-brand); box-shadow: 0 10px 30px -10px rgba(0,0,0,.45); transform: rotate(-6deg); animation: sxg-bob 5s ease-in-out infinite; }

/* ---------------- Studio (form + preview) ---------------- */
.sxg-studio { padding: 80px 0; background: var(--sxg-cream); scroll-margin-top: 80px; }
.sxg-studio__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; }

.sxg-form { min-width: 0; }
.sxg-step { border: 0; padding: 0; margin: 0 0 44px; min-width: 0; }
.sxg-step legend { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 18px; padding: 0; color: var(--sxg-ink); }
.sxg-step__n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: #fff; background: var(--sxg-ink); }

.sxg input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

/* Occasions */
.sxg-occasions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sxg-occasion { position: relative; cursor: pointer; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1.5px var(--sxg-line); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.sxg-occasion:hover { transform: translateY(-3px); }
.sxg-occasion__art { display: block; aspect-ratio: 1.6; }
.sxg-occasion__art .sxg-art { display: block; width: 100%; height: 100%; }
.sxg-occasion__label { display: block; padding: 10px 10px 12px; font-size: 13px; font-weight: 600; text-align: center; }
.sxg-occasion:has(input:checked) { box-shadow: 0 0 0 3px var(--sxg-accent), 0 14px 30px -14px var(--sxg-accent); }
.sxg-occasion:has(input:focus-visible) { outline: 3px solid var(--sxg-brand); outline-offset: 3px; }

/* Plans */
.sxg-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sxg-plan { position: relative; cursor: pointer; display: block; }
.sxg-plan__body { position: relative; display: flex; flex-direction: column; height: 100%; padding: 22px 18px 18px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1.5px var(--sxg-line); transition: box-shadow .2s ease, transform .2s ease; }
.sxg-plan:hover .sxg-plan__body { transform: translateY(-3px); }
.sxg-plan input:checked + .sxg-plan__body { box-shadow: 0 0 0 3px var(--sxg-brand), 0 20px 40px -20px rgba(14,35,255,.5); }
.sxg-plan input:focus-visible + .sxg-plan__body { outline: 3px solid var(--sxg-brand); outline-offset: 3px; }
.sxg-plan__badge { position: absolute; top: -11px; right: 14px; background: linear-gradient(135deg, #f7c948, #f59e0b); color: #3b2500; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.sxg-plan__name { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.sxg-plan__name::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, #cfd5de, #8b95a5); }
.sxg-plan--golden .sxg-plan__name::before { background: linear-gradient(135deg, #ffe08a, #e0a100); }
.sxg-plan--elite .sxg-plan__name::before { background: linear-gradient(135deg, #7a88ff, #0e23ff); }
.sxg-plan__tag { font-size: 13px; color: var(--sxg-muted); margin: 2px 0 10px; }
.sxg-plan__from { font-size: 13px; color: var(--sxg-muted); margin-bottom: 12px; }
.sxg-plan__from strong { color: var(--sxg-ink); font-size: 16px; }
.sxg-plan__features { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px dashed var(--sxg-line); font-size: 13px; color: var(--sxg-ink); }
.sxg-plan__features li { position: relative; padding-left: 20px; margin: 0 0 7px; line-height: 1.4; }
.sxg-plan__features li::before { content: "✓"; position: absolute; left: 0; color: var(--sxg-brand); font-weight: 700; }

.sxg-durations { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.sxg-duration { position: relative; cursor: pointer; flex: 1 1 140px; }
.sxg-duration > span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 10px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1.5px var(--sxg-line); font-size: 14px; font-weight: 600; text-align: center; transition: box-shadow .2s ease; }
.sxg-duration small { font-size: 13px; font-weight: 500; color: var(--sxg-muted); }
.sxg-duration small del { opacity: .6; margin-right: 4px; }
.sxg-duration small ins { text-decoration: none; }
.sxg-duration .screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.sxg-duration input:checked + span { box-shadow: 0 0 0 3px var(--sxg-brand); }
.sxg-duration input:focus-visible + span { outline: 3px solid var(--sxg-brand); outline-offset: 3px; }

/* Fields */
.sxg-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sxg-field { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; min-width: 0; }
.sxg-field--full { grid-column: 1 / -1; }
.sxg-field > span { display: flex; justify-content: space-between; gap: 10px; }
.sxg-count { font-style: normal; font-weight: 500; color: var(--sxg-muted); font-size: 12px; }
.sxg .sxg-field input, .sxg .sxg-field textarea { width: 100%; font: 400 16px/1.4 inherit; font-family: inherit; color: var(--sxg-ink); padding: 14px 16px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--sxg-line); transition: box-shadow .2s ease; -webkit-appearance: none; appearance: none; margin: 0; }
.sxg .sxg-field textarea { resize: vertical; min-height: 120px; font-family: var(--sxg-hand); font-size: 23px; line-height: 1.3; }
.sxg .sxg-field input:focus, .sxg .sxg-field textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--sxg-brand), 0 0 0 4px rgba(14,35,255,.1); }
.sxg .sxg-field.is-invalid input { box-shadow: inset 0 0 0 2px #e5484d; }

.sxg-inspire__label { display: block; font-size: 13px; color: var(--sxg-muted); margin-bottom: 8px; }
.sxg-chips { display: flex; flex-direction: column; gap: 8px; }
.sxg-chip { text-align: left; border: 0; cursor: pointer; font: 500 14px/1.45 inherit; font-family: inherit; color: var(--sxg-ink); background: #fff; padding: 11px 14px 11px 40px; border-radius: 12px; box-shadow: 0 0 0 1.5px var(--sxg-line); position: relative; transition: box-shadow .2s ease, transform .2s ease; }
.sxg-chip::before { content: "✦"; position: absolute; left: 15px; top: 11px; color: var(--sxg-accent); }
.sxg-chip:hover { transform: translateX(3px); box-shadow: 0 0 0 1.5px var(--sxg-accent); }

/* When */
.sxg-when { display: flex; flex-wrap: wrap; gap: 10px; }
.sxg-pill { position: relative; cursor: pointer; }
.sxg-pill > span { display: inline-block; padding: 12px 20px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1.5px var(--sxg-line); font-weight: 600; font-size: 15px; }
.sxg-pill input:checked + span { box-shadow: 0 0 0 3px var(--sxg-brand); }
.sxg-pill input:focus-visible + span { outline: 3px solid var(--sxg-brand); outline-offset: 3px; }
.sxg-date { flex-basis: 100%; margin-top: 6px; max-width: 360px; }
.sxg-date[hidden] { display: none; }

/* Summary */
.sxg-summary { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 14px 14px 22px; border-radius: 999px; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 18px 50px -18px rgba(11,16,51,.35), 0 0 0 1px var(--sxg-line); }
.sxg-summary__text { display: flex; flex-direction: column; min-width: 0; }
.sxg-summary__what { font-size: 13px; color: var(--sxg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sxg-summary__price { font-size: 20px; }
.sxg-summary__price del { font-size: 14px; font-weight: 500; opacity: .5; margin-right: 6px; }
.sxg-summary__price ins { text-decoration: none; }
.sxg-summary__price .screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.sxg-error { margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; background: #fff0f0; color: #b42318; font-weight: 600; font-size: 14px; }
.sxg-error[hidden] { display: none; }

/* Preview card */
.sxg-preview { min-width: 0; }
.sxg-preview__sticky { position: sticky; top: 110px; text-align: center; }
.sxg-preview__hint { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sxg-muted); margin-bottom: 14px; }
.sxg-preview__hint::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #12a15a; box-shadow: 0 0 0 4px rgba(18,161,90,.15); animation: sxg-pulse 2s ease-in-out infinite; }
.sxg-card { perspective: 1400px; outline: none; max-width: 420px; margin: 0 auto; }
.sxg-card__inner { position: relative; display: grid; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.sxg-card.is-flipped .sxg-card__inner { transform: rotateY(180deg); }
.sxg-card__face { grid-area: 1 / 1; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px -25px rgba(11,16,51,.45); -webkit-backface-visibility: hidden; backface-visibility: hidden; text-align: left; }
.sxg-card__back { transform: rotateY(180deg); padding: 34px 30px; display: flex; flex-direction: column; background: linear-gradient(160deg, var(--sxg-from), var(--sxg-to)); color: #fff; }
.sxg-card__art { position: relative; aspect-ratio: 1.6; }
.sxg-card__art .sxg-art { display: block; width: 100%; height: 100%; }
.sxg-card__banner { position: relative; margin-top: -58px; padding: 0 24px; height: 58px; display: flex; align-items: flex-end; }
.sxg .sxg-card__title { font-family: var(--sxg-hand); font-size: 44px; font-weight: 700; line-height: 1; color: #fff; text-shadow: 0 3px 16px rgba(0,0,0,.28); padding-bottom: 8px; }
.sxg-card__body { padding: 20px 26px 6px; font-family: var(--sxg-hand); font-size: 25px; line-height: 1.25; color: #262a3d; }
.sxg-card__body p { margin: 0 0 10px; }
.sxg-card__msg { white-space: pre-line; min-height: 3.75em; overflow-wrap: anywhere; }
.sxg-card__from { text-align: right; color: var(--sxg-accent); font-weight: 700; }
.sxg-card__foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 22px 18px; }
.sxg-card__chip { font-size: 12px; font-weight: 600; color: var(--sxg-accent); background: var(--sxg-soft); padding: 6px 12px; border-radius: 999px; }
.sxg-card__brand { font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--sxg-brand); }
.sxg-card__back-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.sxg-card__back-plan { font-size: 28px; margin: 6px 0 16px; }
.sxg-card__back-list { list-style: none; margin: 0 0 auto; padding: 0; font-size: 15px; }
.sxg-card__back-list li { padding: 7px 0 7px 26px; position: relative; border-bottom: 1px solid rgba(255,255,255,.2); }
.sxg-card__back-list li::before { content: "✓"; position: absolute; left: 2px; font-weight: 700; }
.sxg-card__back-note { margin-top: 18px; font-size: 13px; opacity: .9; }
.sxg-flip { margin-top: 16px; border: 0; background: none; cursor: pointer; font: 600 14px inherit; font-family: inherit; color: var(--sxg-muted); padding: 8px 12px; border-radius: 999px; }
.sxg-flip:hover { color: var(--sxg-ink); background: rgba(255,255,255,.7); }
.sxg-preview__note { max-width: 380px; margin: 12px auto 0; font-size: 14px; color: var(--sxg-muted); }
.sxg-card.is-pop .sxg-card__inner { animation: sxg-pop .5s ease; }

/* How it works */
.sxg-how { padding: 90px 0; background: #fff; scroll-margin-top: 80px; }
.sxg-how__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.sxg-how__steps li { position: relative; padding: 30px 26px; border-radius: var(--sxg-radius); background: var(--sxg-cream); }
.sxg-how__steps li::after { counter-increment: s; content: counter(s); position: absolute; top: 18px; right: 22px; font-weight: 800; font-size: 54px; line-height: 1; color: rgba(14,35,255,.08); }
.sxg-how__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #fff; font-size: 26px; margin-bottom: 18px; box-shadow: 0 8px 20px -10px rgba(0,0,0,.2); }
.sxg-how__steps strong { display: block; font-size: 18px; margin-bottom: 6px; }
.sxg-how__steps p { margin: 0; color: var(--sxg-muted); font-size: 15px; }

/* Quote band */
.sxg-quote { padding: 90px 0; text-align: center; color: #fff; background: radial-gradient(1200px 400px at 20% 0%, rgba(14,35,255,.5), transparent 60%), radial-gradient(900px 400px at 90% 100%, rgba(63,169,255,.25), transparent 60%), #0b1033; }
.sxg-quote blockquote { margin: 0 auto 34px; max-width: 820px; padding: 0; border: 0; }
.sxg-quote p { margin: 0; font-size: clamp(26px, 4vw, 44px); line-height: 1.2; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.sxg-quote em { font-style: normal; color: var(--sxg-blue-light); }

/* FAQ */
.sxg-faq { padding: 90px 0 100px; background: #fff; }
.sxg-faq details { border-bottom: 1px solid var(--sxg-line); padding: 4px 0; }
.sxg-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 17px; }
.sxg-faq summary::-webkit-details-marker { display: none; }
.sxg-faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sxg-cream); font-size: 20px; transition: transform .3s ease; }
.sxg-faq details[open] summary::after { transform: rotate(45deg); }
.sxg-faq details p { margin: 0 0 18px; color: var(--sxg-muted); }

/* Art animation */
.sxg-float { animation: sxg-float 6s ease-in-out infinite; animation-delay: var(--d, 0s); transform-box: fill-box; }
.sxg-twinkle { animation: sxg-twinkle 3s ease-in-out infinite; animation-delay: var(--d, 0s); }
.sxg-swing { animation: sxg-swing 5s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes sxg-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes sxg-twinkle { 0%,100% { opacity: .9; } 50% { opacity: .25; } }
@keyframes sxg-swing { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes sxg-bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes sxg-pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(18,161,90,.15); } 50% { box-shadow: 0 0 0 7px rgba(18,161,90,.05); } }
@keyframes sxg-pop { 0% { transform: scale(1); } 40% { transform: scale(1.025) rotate(-.6deg); } 100% { transform: scale(1); } }

/* ---------------- Product page entry ---------------- */
.sxg-product-gift { display: flex; align-items: center; gap: 14px; margin: 18px 0 8px; padding: 14px 18px; border-radius: 16px; text-decoration: none !important; color: #0b1033 !important; background: #f4f5fa; box-shadow: inset 0 0 0 1.5px rgba(14,35,255,.18); transition: transform .2s ease, box-shadow .2s ease; font-family: Poppins, "Segoe UI", sans-serif; }
.sxg-product-gift:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px rgba(14,35,255,.35), 0 12px 24px -14px rgba(14,35,255,.5); }
.sxg-product-gift__icon { font-size: 28px; flex: none; animation: sxg-bob 3s ease-in-out infinite; }
.sxg-product-gift strong { display: block; font-size: 15px; }
.sxg-product-gift small { display: block; font-size: 12.5px; color: #5b6275; }
.sxg-product-gift__arrow { margin-left: auto; font-size: 20px; color: #0e23ff; }

/* ---------------- Thank-you ---------------- */
.sxg-thanks { margin: 0 0 32px; padding: 28px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, var(--sxg-from), var(--sxg-to)); box-shadow: var(--sxg-shadow); position: relative; overflow: hidden; }
.sxg-thanks h2 { color: #fff; margin: 0 0 6px; font-size: 26px; }
.sxg-thanks p { margin: 0; opacity: .95; }
.sxg-thanks__list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.sxg-thanks__list li { background: rgba(255,255,255,.16); border-radius: 14px; padding: 12px 16px; font-size: 15px; }
.sxg-thanks__emoji { position: absolute; right: 22px; top: 12px; font-size: 64px; opacity: .9; animation: sxg-bob 4s ease-in-out infinite; }

/* ---------------- Account ---------------- */
.sxg-account h3 { margin: 26px 0 12px; }
.sxg-account__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sxg-account__item { display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; align-items: center; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px #e6e8f0; }
.sxg-account__art { border-radius: 12px; overflow: hidden; aspect-ratio: 1.6; }
.sxg-account__art .sxg-art { display: block; width: 100%; height: 100%; }
.sxg-account__meta { font-size: 13px; color: #5b6275; }
.sxg-status { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.sxg-status--scheduled { background: #eef0ff; color: #0e23ff; }
.sxg-status--delivered { background: #fff4e0; color: #9a5b00; }
.sxg-status--claimed { background: #e6f8ef; color: #0c7a43; }
.sxg-status--cancelled { background: #f1f1f4; color: #6b6f80; }

/* ---------------- Claim / unwrap page ---------------- */
.sxg-open { position: relative; min-height: calc(100vh - 80px); padding: 60px 0 90px; color: #fff; background: radial-gradient(900px 600px at 50% 30%, rgba(14,35,255,.55), transparent 70%), #0b1033; overflow: hidden; display: flex; align-items: center; }
.sxg-open__stars { position: absolute; inset: 0; background-image: radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.8), transparent 60%), radial-gradient(1.5px 1.5px at 70% 20%, rgba(255,255,255,.7), transparent 60%), radial-gradient(2px 2px at 85% 70%, rgba(255,255,255,.6), transparent 60%), radial-gradient(1.5px 1.5px at 35% 80%, rgba(255,255,255,.6), transparent 60%), radial-gradient(1px 1px at 55% 50%, rgba(255,255,255,.8), transparent 60%); animation: sxg-twinkle 5s ease-in-out infinite; pointer-events: none; }
.sxg-open .sxg-wrap { position: relative; text-align: center; }
.sxg-open__hello { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; opacity: .8; margin: 0 0 10px; }
.sxg-open__title { font-size: clamp(30px, 5vw, 52px); line-height: 1.1; letter-spacing: -.03em; margin: 0 auto 10px; max-width: 760px; color: #fff; }
.sxg-open__title em { font-style: normal; color: var(--sxg-blue-light); }
.sxg-open__sub { margin: 0 0 30px; opacity: .8; font-size: 17px; }
.sxg-open__loading { opacity: .7; }

.sxg-box { position: relative; width: 220px; height: 220px; margin: 40px auto 20px; cursor: pointer; border: 0; background: none; padding: 0; display: block; -webkit-tap-highlight-color: transparent; }
.sxg-box:focus-visible { outline: 3px solid #fff; outline-offset: 10px; border-radius: 20px; }
.sxg-box__base { position: absolute; left: 10px; right: 10px; bottom: 0; height: 150px; border-radius: 10px 10px 16px 16px; background: linear-gradient(160deg, #3a4bff, #0e23ff 55%, #0a19c4); box-shadow: inset 0 -20px 40px rgba(0,0,0,.18), 0 30px 60px -20px rgba(0,0,0,.6); }
.sxg-box__lid { position: absolute; left: 0; right: 0; top: 34px; height: 46px; border-radius: 10px; background: linear-gradient(160deg, #5a69ff, #1a2eff); box-shadow: 0 8px 18px rgba(0,0,0,.25); transform-origin: 20% 100%; transition: transform .9s cubic-bezier(.3,1.4,.4,1), opacity .9s ease; z-index: 2; }
.sxg-box__ribbon-v { position: absolute; left: 50%; top: 34px; bottom: 0; width: 26px; margin-left: -13px; background: linear-gradient(90deg, #e9ecff, #ffffff 50%, #e9ecff); z-index: 1; box-shadow: 0 0 10px rgba(0,0,0,.15); }
.sxg-box__lid::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 26px; margin-left: -13px; background: linear-gradient(90deg, #e9ecff, #ffffff 50%, #e9ecff); }
.sxg-box__bow { position: absolute; left: 50%; top: -30px; width: 100px; height: 44px; margin-left: -50px; }
.sxg-box__bow::before, .sxg-box__bow::after { content: ""; position: absolute; top: 4px; width: 50px; height: 38px; border: 10px solid #ffffff; border-radius: 50% 50% 10% 50%; }
.sxg-box__bow::before { left: 2px; transform: rotate(-20deg); }
.sxg-box__bow::after { right: 2px; transform: scaleX(-1) rotate(-20deg); }
.sxg-box:not(.is-open) { animation: sxg-wiggle 2.8s ease-in-out infinite; }
.sxg-box.is-open .sxg-box__lid { transform: translate(40px, -150px) rotate(38deg); opacity: 0; }
.sxg-box.is-open .sxg-box__base, .sxg-box.is-open .sxg-box__ribbon-v { transition: opacity .6s ease .5s, transform .6s ease .5s; opacity: 0; transform: translateY(30px) scale(.9); }
.sxg-box__glow { position: absolute; left: 50%; top: 60%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 80px 40px rgba(255,236,190,.9); opacity: 0; transition: opacity .4s ease; }
.sxg-box.is-open .sxg-box__glow { opacity: 1; animation: sxg-burst 1.2s ease forwards; }
.sxg-open__tap { font-size: 15px; font-weight: 600; opacity: .85; animation: sxg-pulse-text 2s ease-in-out infinite; }
@keyframes sxg-wiggle { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-4deg) scale(1.02); } 80% { transform: rotate(4deg) scale(1.03); } 85% { transform: rotate(-3deg); } 90% { transform: rotate(2deg); } }
@keyframes sxg-burst { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(6); opacity: 0; } }
@keyframes sxg-pulse-text { 0%,100% { opacity: .85; } 50% { opacity: .45; } }

.sxg-reveal { display: none; max-width: 460px; margin: 0 auto; }
.sxg-reveal.is-in { display: block; animation: sxg-rise 1s cubic-bezier(.2,.8,.2,1) both; }
.sxg-reveal .sxg-card__face { position: relative; }
.sxg-reveal .sxg-card__msg { min-height: 0; }
.sxg-reveal__plan { margin: 26px auto 0; padding: 22px 24px; border-radius: 20px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); text-align: left; }
.sxg-reveal__plan h3 { margin: 0 0 4px; font-size: 20px; color: #fff; }
.sxg-reveal__plan p { margin: 0 0 12px; opacity: .8; font-size: 14px; }
.sxg-reveal__plan ul { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.sxg-reveal__plan li { position: relative; padding: 5px 0 5px 24px; }
.sxg-reveal__plan li::before { content: "✓"; position: absolute; left: 2px; color: #7ee0c3; font-weight: 700; }
.sxg-claim-form { margin: 26px 0 0; }
.sxg-claim-form .sxg-btn { width: 100%; font-size: 17px; padding: 18px 28px; }
.sxg-reveal__fine { margin: 12px 0 0; font-size: 13px; opacity: .7; }
.sxg-open__state { max-width: 520px; margin: 0 auto; padding: 36px 30px; border-radius: 24px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.sxg-open__state .sxg-open__emoji { font-size: 54px; display: block; margin-bottom: 10px; }
.sxg-open__state h1 { color: #fff; font-size: 28px; margin: 0 0 10px; }
.sxg-open__state p { opacity: .85; margin: 0 0 22px; }
@keyframes sxg-rise { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }

.sxg-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 99999; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1000px) {
	.sxg-hero__grid { grid-template-columns: 1fr; }
	.sxg-hero__stack { height: 320px; order: -1; }
	.sxg-mini-card { width: 240px; }
	.sxg-studio__grid { grid-template-columns: 1fr; }
	.sxg-preview { order: -1; }
	.sxg-preview__sticky { position: static; }
	.sxg-card { max-width: 360px; }
}
@media (max-width: 720px) {
	.sxg-hero { padding: 36px 0 56px; }
	.sxg-hero__stack { height: 250px; }
	.sxg-mini-card { width: 190px; border-radius: 16px; }
	.sxg-mini-card__title { font-size: 24px; }
	.sxg-mini-card--0 { transform: translate(-50%, -50%) translate(-50px, -30px) rotate(-12deg); }
	.sxg-mini-card--1 { transform: translate(-50%, -50%) translate(50px, -10px) rotate(9deg); }
	.sxg-mini-card--2 { transform: translate(-50%, -50%) translate(-6px, 40px) rotate(-2deg); }
	.sxg-hero__ribbon { font-size: 19px; right: 2%; }
	.sxg-studio, .sxg-how, .sxg-quote, .sxg-faq { padding: 56px 0; }
	.sxg-occasions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sxg-plans { grid-template-columns: 1fr; }
	.sxg-plan__features { display: none; }
	.sxg-plan input:checked + .sxg-plan__body .sxg-plan__features { display: block; }
	.sxg-fields { grid-template-columns: 1fr; }
	.sxg-how__steps { grid-template-columns: 1fr; }
	.sxg-summary { border-radius: 20px; flex-direction: column; align-items: stretch; padding: 14px; bottom: 8px; }
	.sxg-summary__text { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 10px; }
	.sxg-summary .sxg-btn { width: 100%; }
	.sxg-card__title { font-size: 36px; }
	.sxg-card__body { font-size: 22px; }
	.sxg-box { width: 180px; height: 190px; }
	.sxg-box__base { height: 125px; }
	.sxg-account__item { grid-template-columns: 70px 1fr; }
	.sxg-account__item .sxg-status { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
	.sxg *, .sxg *::before, .sxg *::after, .sxg-product-gift__icon { animation: none !important; transition: none !important; }
}

/* ---------------- Brand layer (Sustain-X: royal blue / navy / white) ---------------- */
.sxg-hero .sxg-btn--ghost { color: #fff !important; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.sxg-hero .sxg-btn--ghost:hover { background: rgba(255,255,255,.12); }
.sxg-hero .sxg-btn--primary { box-shadow: 0 14px 34px -10px rgba(14,35,255,.9); }
.sxg-mini-card { box-shadow: 0 30px 70px -25px rgba(0,0,0,.7); }
.sxg-occasion:has(input:checked) { box-shadow: 0 0 0 3px var(--sxg-brand), 0 14px 30px -14px rgba(14,35,255,.6); }
.sxg-step__n { background: var(--sxg-brand); }
.sxg-card__back { background: radial-gradient(500px 300px at 100% 0%, rgba(63,169,255,.35), transparent 60%), linear-gradient(160deg, #0b1033, #0e23ff); }
.sxg-card__chip { color: var(--sxg-brand); background: #eef0ff; }
.sxg-card__from { color: var(--sxg-brand); }
.sxg-how__steps li { background: var(--sxg-cream); }
.sxg-how__icon { background: #fff; }
.sxg-reveal__plan li::before { color: var(--sxg-blue-light); }
.sxg-claim-form .sxg-btn { color: #fff !important; background: var(--sxg-brand); box-shadow: 0 14px 34px -10px rgba(14,35,255,.9); }
.sxg-thanks { background: radial-gradient(600px 300px at 100% 0%, rgba(63,169,255,.35), transparent 60%), linear-gradient(135deg, #0b1033, #0e23ff); }

/* Recipient WhatsApp number (intl-tel-input) */
.sxg-field--phone .iti { width: 100%; display: block; }
.sxg-field--phone .iti__country-container { z-index: 2; }
.sxg-field--phone .iti__dropdown-content { z-index: 1000; border-radius: 12px; }
.sxg-hint { font-weight: 400; font-size: 13px; color: #5b6275; }
