/* Self-serve ads (MAKERS-50): dark Radio Eshgh glass, green #64edaa, Unbounded headings, phone first.
   Motion: springy entrances, the live preview, a burst after paying. Reduce Motion: fades only. */
.ads-page { --ads-green: #64edaa; --ads-ink: #002312; --ads-card: rgba(255,255,255,.055); --ads-line: rgba(255,255,255,.1); --ads-soft: var(--ink-2, #a1a1a6); --ads-spring: cubic-bezier(.34,1.56,.64,1); --ads-ease: cubic-bezier(.16,1,.3,1); padding-bottom: 56px; color: var(--ink, #f5f5f7); }
.ads-masthead { padding-top: clamp(96px, 11vw, 150px); padding-bottom: 10px; }
.ads-masthead .eyebrow { justify-content: flex-start; }
.ads-masthead h1 { font-family: Unbounded, system-ui, sans-serif; font-weight: 500; font-size: clamp(34px, 6vw, 70px); letter-spacing: -.03em; line-height: 1.05; margin: 0; }
.ads-lead { max-width: 660px; margin: 16px 0 0; color: var(--ads-soft); font-size: 18px; line-height: 1.5; }
.ads-body { margin-top: 24px; }
.ads-skeleton { display: grid; gap: 14px; }
.ads-page [hidden] { display: none !important; }
.ads-skel { display: block; border-radius: 18px; background: linear-gradient(100deg, rgba(255,255,255,.05) 30%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.05) 70%); background-size: 300% 100%; animation: ads-shimmer 1.4s ease-in-out infinite; }
.ads-skel-stage { height: 200px; border-radius: 28px; }
.ads-skel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ads-skel-row .ads-skel { height: 140px; }
.ads-skel-line { height: 52px; }
@keyframes ads-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

.ads-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 28px; align-items: start; }
.ads-aside { position: sticky; top: 96px; order: 2; }
.ads-form { order: 1; display: grid; gap: 18px; min-width: 0; }
.ads-step, .ads-stage-card, .ads-pay, .ads-done, .ads-soon { padding: 20px 18px; border-radius: 28px; background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.03)); box-shadow: inset 0 0 0 1px var(--ads-line), 0 20px 50px rgba(0,0,0,.25); backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3); }
.ads-step { animation: ads-rise .7s var(--ads-spring) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes ads-rise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.ads-step-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: Unbounded, system-ui, sans-serif; font-weight: 500; font-size: 18px; }
.ads-step-number { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(100,237,170,.16); color: var(--ads-green); font: 700 13px/1 -apple-system, system-ui, sans-serif; }

.ads-stage-card { animation: ads-rise .8s var(--ads-spring) both; }
.ads-stage-label { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ads-green); }
.ads-stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 22px; background: radial-gradient(110% 90% at 80% 0%, rgba(244,238,229,.14), transparent 55%), radial-gradient(90% 80% at 10% 100%, rgba(100,237,170,.2), transparent 60%), #08110d; box-shadow: inset 0 0 0 1px var(--ads-line); }
.ads-stage-glow { position: absolute; inset: 18% 30% auto; height: 34%; border-radius: 50%; background: radial-gradient(closest-side, rgba(100,237,170,.35), transparent); filter: blur(8px); animation: ads-breathe 5s ease-in-out infinite; }
@keyframes ads-breathe { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.12); opacity: 1; } }
.ads-stage-note { margin: 10px 0 0; font-size: 13px; color: var(--ads-soft); }

.ads-products { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ads-product { position: relative; display: grid; gap: 6px; padding: 14px; border-radius: 22px; background: var(--ads-card); box-shadow: inset 0 0 0 1px var(--ads-line); cursor: pointer; transition: transform .35s var(--ads-spring), box-shadow .2s, background .2s; }
.ads-product.is-on { background: rgba(100,237,170,.1); box-shadow: inset 0 0 0 2px var(--ads-green); transform: translateY(-2px); }
.ads-product:active { transform: scale(.97); }
.ads-product:focus-within, .ads-look:focus-within, .ads-chip:focus-within, .ads-week:focus-within, .ads-seg:focus-within, .ads-toggle:focus-within, .ads-logo-button:focus-within { outline: 3px solid var(--ads-green); outline-offset: 2px; }
.ads-product input, .ads-look input, .ads-chip input, .ads-week input, .ads-seg input, .ads-toggle input, .ads-logo-button input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.ads-product-art svg { width: 100%; height: auto; display: block; border-radius: 14px; }
.ads-art-slide { animation: ads-slide 3.2s var(--ads-spring) infinite; }
.ads-art-beam { transform-origin: 60px 8px; animation: ads-sweep 4s ease-in-out infinite; }
@keyframes ads-slide { 0%, 15% { transform: translateY(26px); opacity: 0; } 30%, 85% { transform: none; opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
@keyframes ads-sweep { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
.ads-product-title { font-size: 16px; }
.ads-product-summary { font-size: 13px; color: var(--ads-soft); line-height: 1.4; }

.ads-where.is-new { animation: ads-rise .5s var(--ads-spring) both; }
.ads-segment { display: inline-flex; padding: 4px; border-radius: 99px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--ads-line); margin-bottom: 14px; }
.ads-seg { position: relative; padding: 10px 18px; border-radius: 99px; font-weight: 600; font-size: 15px; cursor: pointer; transition: background .3s var(--ads-ease), color .3s; }
.ads-seg.is-on { background: var(--ads-green); color: var(--ads-ink); }
.ads-start { max-width: 260px; margin-bottom: 14px; }
.ads-toggle { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; margin-bottom: 12px; }
.ads-switch { position: relative; width: 50px; height: 30px; border-radius: 99px; background: rgba(255,255,255,.16); transition: background .25s; }
.ads-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .4s var(--ads-spring); }
.ads-toggle input:checked + .ads-switch { background: var(--ads-green); }
.ads-toggle input:checked + .ads-switch::after { transform: translateX(20px); }
.ads-areas { display: grid; gap: 12px; }
.ads-areas[hidden] { display: none; }
.ads-area-country { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ads-soft); }
.ads-area-group { display: flex; flex-wrap: wrap; gap: 8px; }
.ads-area-group .ads-area-country { flex-basis: 100%; }
.ads-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 99px; background: rgba(255,255,255,.08); font-size: 14px; cursor: pointer; transition: background .2s, transform .3s var(--ads-spring); }
.ads-chip:active { transform: scale(.95); }
.ads-chip.is-on { background: var(--ads-green); color: var(--ads-ink); font-weight: 600; }
.ads-chip-price { font-size: 12px; opacity: .7; }
.ads-weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
.ads-week { position: relative; display: grid; gap: 2px; min-height: 58px; padding: 10px 12px; border-radius: 16px; background: var(--ads-card); box-shadow: inset 0 0 0 1px var(--ads-line); cursor: pointer; animation: ads-rise .45s var(--ads-spring) both; animation-delay: calc(var(--i, 0) * 30ms); transition: background .2s; }
.ads-week.is-on { background: rgba(100,237,170,.14); box-shadow: inset 0 0 0 2px var(--ads-green); }
.ads-week.is-taken { opacity: .45; cursor: not-allowed; }
.ads-week-label { font-weight: 600; font-size: 14px; }
.ads-week-state { font-size: 12px; color: var(--ads-soft); }
.ads-week.is-on .ads-week-state { color: var(--ads-green); }

.ads-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ads-field { display: grid; gap: 6px; min-width: 0; }
.ads-wide { grid-column: 1 / -1; }
.ads-label { font-size: 13px; font-weight: 600; color: var(--ads-soft); }
.ads-input { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 0; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--ads-line); color: var(--ink, #f5f5f7); font: inherit; font-size: 16px; color-scheme: dark; }
.ads-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ads-green); }
.ads-hint { font-size: 13px; color: var(--ink-3, #8e8e93); }
.ads-logo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ads-logo-preview { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #0b1410; box-shadow: inset 0 0 0 1px var(--ads-line); overflow: hidden; }
.ads-logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.ads-logo-preview.is-new { animation: ads-pop .5s var(--ads-spring); }
@keyframes ads-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ads-logo-button { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 99px; background: rgba(255,255,255,.1); font-weight: 600; cursor: pointer; }
.ads-looks-label { display: block; margin: 16px 0 8px; }
.ads-looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.ads-look { position: relative; display: grid; gap: 6px; padding: 8px; border-radius: 16px; background: var(--ads-card); cursor: pointer; animation: ads-rise .45s var(--ads-spring) both; animation-delay: calc(var(--i, 0) * 25ms); transition: transform .3s var(--ads-spring), box-shadow .2s; }
.ads-look.is-on { box-shadow: inset 0 0 0 2px var(--ads-green); transform: translateY(-2px); }
.ads-look-swatch { display: grid; gap: 4px; padding: 8px; border-radius: 10px; background: var(--look-bg); border-left: 4px solid var(--look-accent); min-height: 46px; }
.ads-look-badge { font-size: 8px; font-weight: 800; letter-spacing: .06em; color: var(--look-accent); min-height: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ads-look-line { height: 4px; border-radius: 2px; background: var(--look-text); opacity: .85; }
.ads-look-line.short { width: 60%; opacity: .5; }
.ads-look-name { font-size: 12px; text-align: center; }

.ads-pay { display: grid; gap: 10px; animation: ads-rise .7s var(--ads-spring) both; animation-delay: 300ms; }
.ads-total-line { display: flex; justify-content: space-between; align-items: baseline; margin: 0; color: var(--ads-soft); }
.ads-total { font-family: Unbounded, system-ui, sans-serif; font-weight: 500; font-size: 28px; color: var(--ink, #f5f5f7); }
.ads-pay-button { min-height: 56px; border-radius: 18px; border: 0; font-size: 18px; font-weight: 700; background: var(--ads-green); color: var(--ads-ink); cursor: pointer; transition: transform .2s var(--ads-spring), opacity .2s; }
.ads-pay-button:active { transform: scale(.97); }
.ads-pay-button:disabled { opacity: .6; }
.ads-error { margin: 0; color: #ff8a8a; font-size: 14px; }
.ads-error:empty { display: none; }
.ads-note { margin: 0 0 16px; padding: 12px 16px; border-radius: 16px; background: rgba(100,237,170,.12); box-shadow: inset 0 0 0 1px rgba(100,237,170,.35); color: var(--ads-green, #64edaa); font-size: 14px; font-weight: 600; }
.ads-fine { margin: 0; font-size: 13px; color: var(--ink-3, #8e8e93); }
.ads-done { position: relative; margin-bottom: 20px; text-align: center; animation: ads-rise .8s var(--ads-spring) both; }
.ads-done h2, .ads-soon h2 { font-family: Unbounded, system-ui, sans-serif; font-weight: 500; font-size: clamp(20px, 3vw, 28px); margin: 10px 0 8px; }
.ads-done-heart, .ads-soon-heart { display: inline-block; width: 64px; height: 56px; color: var(--ads-green); animation: ads-beat 1.4s ease-in-out infinite; }
.ads-done-heart svg, .ads-soon-heart svg { width: 100%; height: 100%; }
@keyframes ads-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.14); } 30% { transform: scale(1); } 45% { transform: scale(1.08); } }
.ads-burst { position: absolute; left: 50%; top: 40px; width: 0; height: 0; pointer-events: none; }
.ads-bit { position: absolute; width: 9px; height: 9px; border-radius: 2px; opacity: 0; animation: ads-fly 1.4s var(--ads-ease) forwards; }
@keyframes ads-fly { 0% { opacity: 1; transform: translate(0, 0) scale(.4); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 60px)) rotate(var(--r)) scale(1); } }
.ads-soon { text-align: center; animation: ads-rise .7s var(--ads-spring) both; }
.ads-soon .re-form-wrap { text-align: left; margin-top: 18px; }

@media (max-width: 860px) {
	.ads-layout { grid-template-columns: 1fr; }
	.ads-aside { position: relative; top: 0; order: 0; }
}
@media (max-width: 560px) {
	.ads-grid, .ads-products { grid-template-columns: 1fr; }
	.ads-step, .ads-stage-card, .ads-pay { padding: 16px 14px; border-radius: 24px; }
	.ads-segment { display: flex; }
	.ads-seg { flex: 1; text-align: center; padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) {
	.ads-page *, .ads-page *::before, .ads-page *::after { animation-duration: .2s !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .15s !important; }
	.ads-step, .ads-pay, .ads-stage-card, .ads-done, .ads-soon, .ads-week, .ads-look, .ads-where.is-new { animation-name: ads-fade !important; }
	.ads-stage-glow, .ads-art-slide, .ads-art-beam, .ads-done-heart, .ads-soon-heart, .ads-skel { animation: none !important; }
	.ads-product.is-on, .ads-look.is-on { transform: none; }
}
@keyframes ads-fade { from { opacity: 0; } to { opacity: 1; } }
