/* A more joyful version of the approved layout. */
.store-pay:disabled{opacity:.58;box-shadow:none;cursor:default;transform:none}
html{color:#3a3158;background:#fff5e9}
body{background:radial-gradient(ellipse at 100% 0,#ffd17d38,transparent 45%),radial-gradient(ellipse at 0 50%,#d8c6ff40,transparent 60%),#fff7ef}
.preview-note{background:#f5e0dd;color:#9b7786}.brand strong{font-size:21px;color:#53366c}.brand small{font-size:10px;color:#a47993}
.brand-mark{background:linear-gradient(140deg,#e89de1,#8d60c9 60%,#62449b);box-shadow:inset 0 2px 1px #ffedff,0 5px 0 #754494,0 10px 15px #b77fb833}
.plus{background:#fff0c3;border-color:#efcf7d;color:#9e7135}.hero{border-color:#eeb99e;box-shadow:0 7px 0 #efc6b34d,0 15px 30px #c18fa21a}
.feature{background:linear-gradient(125deg,#fff8ff,#f4e9ff);border-color:#decaef;box-shadow:0 5px 0 #d9c0e84d}.feature.coral{background:linear-gradient(125deg,#fff6dc,#ffe6dd);border-color:#f0c8b8;box-shadow:0 5px 0 #efc7b64d}
.feature h3{color:#684286}.feature.coral h3{color:#a35f53}.feature .tile{background:linear-gradient(140deg,#f4dcff,#d9a6ee 55%,#a87bd7);box-shadow:inset 0 2px 2px white,0 5px 0 #b18bd0;color:#7b4c9d}.feature.coral .tile{background:linear-gradient(140deg,#fff6b0,#ffc8a0 60%,#f0a49a);box-shadow:inset 0 2px 2px white,0 5px 0 #e8ac98;color:#a76852}
.primary{background:linear-gradient(125deg,#c77bc9,#8a59bd 55%,#6652a4);border-color:#cfa8e5;box-shadow:inset 0 1px #fce6ff77,0 5px 0 #79509c,0 12px 20px #bd7bd025}.primary svg{color:#ffe4a3}
.privacy{background:#f5eafa;border-color:#e9d6ef}.privacy svg{color:#ba85c4}.card{background:linear-gradient(145deg,#fffaf6,#fff3f7);border-color:#e8cfe3}.plan-price{color:#9860ab}
.photo-slot{background:linear-gradient(140deg,#fff2de,#f2ddfb);border-color:#d4abdf}.hint{background:#ffebdb;color:#a17b66}.style.selected{border-color:#bc7ac8;background:#f6e1fc;color:#985ea5}.style svg{color:#c587c5}
nav{background:#fff8f1f5;border-color:#ead3df}nav button.active{background:linear-gradient(140deg,#f6ddea,#ecdcff);color:#9d5ba8}nav button{color:#b291a8}.hero-label{background:#fff3d8e5;color:#a67b60}
@media(max-width:360px){.brand strong{font-size:18px}.brand small{font-size:9px}.brand{gap:8px}.plus{padding:5px 9px}}
html,body{min-height:100%;overflow-x:hidden}html{overflow-y:auto;scroll-behavior:smooth}body{overscroll-behavior-y:contain}main{padding-bottom:120px}.result-frame{border:1px solid #e2cbe6;background:#fffaf7;border-radius:27px;padding:9px;box-shadow:0 5px 0 #dbc1df66;margin:20px 0}.result-frame img{width:100%;max-height:58dvh;object-fit:contain;border-radius:20px;display:block}.result-frame~button{margin:17px 0}.text-action{background:transparent;width:100%;font-size:13px;color:#886397;margin:15px 0}.results-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.saved-result{background:#fff9f2;border:1px solid #e7cfdf;border-radius:20px;padding:7px;overflow:hidden;text-align:right}.saved-result img{width:100%;height:190px;object-fit:cover;border-radius:14px}.saved-result span{font-size:11px;display:block;margin:9px 4px}.store-pay img{width:28px;height:28px;object-fit:contain}.billing-status{font-size:12px;text-align:center;margin:16px 0}.making-orb{margin:8px auto 25px;height:100px;width:100px;border-radius:35%;display:grid;place-items:center;background:linear-gradient(140deg,#ffe9b6,#d3a4e5 55%,#9560bc);box-shadow:inset 0 3px 4px #fff9,0 8px 20px #9a6bba44;animation:creating 2.8s ease-in-out infinite}.making-orb svg{width:48px;height:48px;color:#fff8ea;filter:drop-shadow(0 2px 2px #8961ae)}#gift-input{width:100%;padding:14px;border:1px solid #d3b4de;border-radius:14px;background:#fff;margin:0 0 18px}dialog small{display:block;margin-bottom:18px}@keyframes creating{0%,100%{transform:rotate(-8deg) scale(.95);border-radius:35% 45% 42% 40%}50%{transform:rotate(12deg) scale(1.04);border-radius:45% 36% 46% 35%}}@media(max-width:360px){main{padding-left:15px;padding-right:15px}.hero-copy h1{font-size:23px}.feature{padding:15px 11px;gap:10px}.feature .tile{width:55px;height:60px}.section-head{flex-wrap:wrap}.brand strong{font-size:18px}.brand-mark{width:41px;height:41px}.plus{font-size:11px;padding:5px 8px}}@media(prefers-reduced-motion:reduce){.making-orb{animation:none}}

.brand-mark{overflow:hidden;border-radius:50%;transform:none;padding:0;background:#d69fd6;box-shadow:0 4px 9px #b681bd3d}.brand-mark img{width:100%;height:100%;object-fit:cover}

/* Keep one scroll container and avoid repeatedly repainting a blurred fixed bar. */
html{min-height:100%;overflow-x:clip;overflow-y:auto;scroll-behavior:auto}
body{min-height:100%;overflow:visible;overscroll-behavior-y:auto}
nav{background:#fff8f1;-webkit-backdrop-filter:none;backdrop-filter:none;;;}
.hero-label,.photo-slot:has(img) span,dialog::backdrop{-webkit-backdrop-filter:none;backdrop-filter:none;;;}
main{animation:none}
.hero>img{aspect-ratio:1122/1402;object-fit:cover}
.saved-result img{background:#f5eafa;content-visibility:auto;contain-intrinsic-size:280px 190px}
.account-summary{margin:18px 0;padding:12px;border-radius:16px;background:#f4eaf6}
.account-summary p{font-size:12px}.account-summary .text-action{margin:3px 0;min-height:40px}
#phone-form,#code-form{display:grid;gap:12px}#phone-form label,#code-form label{font-size:13px}
#account-phone,#account-code{width:100%;min-height:52px;padding:12px 14px;border:1px solid #d3b4de;border-radius:14px;background:white;color:#392d45;font-size:18px}
.form-status{min-height:24px;font-size:12px;margin:0!important}
button:disabled{cursor:default;opacity:.6;transform:none}
#app:empty{min-height:70vh}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.orders-card{margin-top:22px}.order-row{padding:16px 0;border-bottom:1px solid #ead3df}.order-row:last-of-type{border-bottom:0}.order-row small{display:block;margin:6px 0 12px}.order-row .secondary{margin-top:10px}#payment-review-form{display:grid;gap:12px}#payment-reference{width:100%;min-height:52px;padding:12px 14px;border:1px solid #d3b4de;border-radius:14px;background:white}

/* Consistent touch targets and space for Persian labels on small phones. */
button{min-height:48px;line-height:1.7;white-space:normal;overflow-wrap:anywhere}
.primary,.secondary{min-height:54px;padding:12px 16px;font-size:14px}
.wide+.wide,#dialog-body+.wide{margin-top:16px}
#dialog-body>.wide+.wide{margin-top:16px}
.text-action{min-height:48px;padding:10px 6px}
.sample-compare{min-height:48px;font-size:12px;margin:6px 0}
.preset-card>.secondary{min-height:50px;font-size:12px;padding:10px 6px}
.preset-card h3{font-size:13px;min-height:44px;display:flex;align-items:center}
.try-example,.credit-link{font-size:11px;margin:6px 0 0;min-height:48px}
.credit-link{color:#675574}
.studio-feature .tile{width:76px;height:90px;transform:none;overflow:hidden;border-radius:17px;background:#eee0f5;box-shadow:none}
.studio-feature .tile img{width:100%;height:100%;object-fit:cover}
.chosen-effect{display:flex;flex-wrap:wrap;gap:8px 16px;justify-content:space-between;padding:14px 16px;margin-bottom:18px;background:#f2e2f7;border-radius:16px;font-size:13px}
.chosen-effect span{color:#735b83}.selected-preset{border:2px solid #a572bc;background:#f5e8fb}
dialog p{overflow-wrap:anywhere}dialog #close-dialog{margin-top:16px}
.brand{min-width:0;gap:8px}.brand>div:last-child{min-width:0}.brand strong{font-size:clamp(16px,4.7vw,21px)}
header{gap:9px}.brand-mark{flex-shrink:0}.plus{flex-shrink:0;min-height:48px}
@media(max-width:360px){.primary,.secondary{padding:12px 10px;font-size:13px}.preset-grid{gap:10px}.preset-card{padding:7px}.preset-card h3{font-size:12px}.brand small{font-size:8px}.studio-feature .tile{width:64px;height:80px}.brand-mark{width:38px;height:38px}}
