:root{--primary-gradient:linear-gradient(135deg, #a855f7 0%, #ec4899 100%);--magic-color:#8b5cf6;--secondary-color:#ec4899;--gold-color:#fbbf24;--text-main:#1e293b;--text-muted:#64748b;--bg-gradient:linear-gradient(135deg, #fdf2f8 0%, #e0f2fe 100%);--white-glass:#ffffffa6;--border-glass:#fffc;--shadow-main:0 20px 40px -10px #0f172a14}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;margin:0;padding:0}body{color:var(--text-main);background:var(--bg-gradient);min-height:100vh;min-height:-webkit-fill-available;font-family:Nunito,sans-serif;position:relative;overflow-x:hidden}#particle-container{z-index:0;pointer-events:none;width:100%;height:100%;position:fixed;top:0;left:0}.app-container{z-index:1;flex-direction:column;width:100%;min-height:100vh;display:flex;position:relative}.main-header{justify-content:space-between;align-items:center;width:100%;max-width:1200px;margin:0 auto;padding:20px 24px;display:flex}.logo-area{align-items:center;gap:10px;display:flex}.logo-icon{color:var(--gold-color);filter:drop-shadow(0 2px 8px #fbbf2466);font-size:26px}.brand-name{letter-spacing:.5px;font-family:Playfair Display,serif;font-size:22px;font-weight:700}.user-status{align-items:center;gap:10px;display:flex}.user-badge{background:var(--white-glass);border:1px solid var(--border-glass);border-radius:100px;align-items:center;gap:8px;padding:6px 14px;font-size:13px;font-weight:700;display:flex}.user-badge img{object-fit:cover;border-radius:50%;width:20px;height:20px}.btn-logout{color:var(--text-muted);cursor:pointer;background:0 0;border:none;padding:4px;font-size:14px;transition:color .2s}.btn-logout:hover{color:#ef4444}.wizard-box{background:var(--white-glass);-webkit-backdrop-filter:blur(16px);border:1.5px solid var(--border-glass);width:100%;max-width:600px;box-shadow:var(--shadow-main);z-index:10;border-radius:30px;flex-direction:column;flex:1;margin:10px auto 40px;padding:30px;display:flex}.progress-bar-container{background:#0000000d;border-radius:10px;width:100%;height:6px;margin-bottom:30px;overflow:hidden}.progress-bar-fill{background:var(--primary-gradient);border-radius:10px;width:15%;height:100%;transition:width .4s cubic-bezier(.4,0,.2,1)}.wizard-step{animation:.4s ease-out fadeIn;display:none}.wizard-step.active{flex-direction:column;display:flex}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.step-header{text-align:center;margin-bottom:30px;position:relative}.floating-sparkle{color:var(--magic-color);background:#8b5cf61a;border-radius:50%;margin-bottom:16px;padding:16px;font-size:24px;animation:3s ease-in-out infinite float;display:inline-flex}@keyframes float{0%{transform:translateY(0)}50%{transform:translateY(-8px)}to{transform:translateY(0)}}.step-header h1{color:var(--text-main);margin-bottom:10px;font-family:Playfair Display,serif;font-size:28px;font-weight:700;line-height:1.2}.step-header p{color:var(--text-muted);font-size:15px;line-height:1.5}.form-group{flex-direction:column;margin-bottom:24px;display:flex}.form-group label{color:var(--text-main);margin-bottom:8px;font-family:Outfit,sans-serif;font-size:14px;font-weight:700}.form-group input[type=text],.form-group input[type=number],.form-group input[type=email]{width:100%;color:var(--text-main);background:#fffc;border:1.5px solid #00000014;border-radius:16px;outline:none;padding:16px 20px;font-family:inherit;font-size:16px;transition:all .2s}.form-group input:focus{border-color:var(--magic-color);background:#fff;box-shadow:0 0 0 4px #8b5cf61f}.select-wrapper{width:100%;position:relative}.select-wrapper:after{content:"";color:var(--text-muted);pointer-events:none;font-family:"Font Awesome 6 Free";font-size:14px;font-weight:900;position:absolute;top:50%;right:20px;transform:translateY(-50%)}.form-group select{width:100%;color:var(--text-main);appearance:none;cursor:pointer;background:#fffc;border:1.5px solid #00000014;border-radius:16px;outline:none;padding:16px 40px 16px 20px;font-family:inherit;font-size:16px;transition:all .2s}.form-group select:focus{border-color:var(--magic-color);background:#fff;box-shadow:0 0 0 4px #8b5cf61f}.btn{cursor:pointer;border:none;border-radius:100px;justify-content:center;align-items:center;gap:12px;width:100%;height:56px;font-family:Outfit,sans-serif;font-size:16px;font-weight:800;text-decoration:none;transition:all .25s cubic-bezier(.4,0,.2,1);display:inline-flex}.btn-primary{background:var(--primary-gradient);color:#fff;box-shadow:0 10px 20px -5px #ec48994d}.btn-primary:active{transform:scale(.98);box-shadow:0 5px 10px -3px #ec48994d}.btn-secondary{color:var(--text-main);background:#0000000d}.btn-secondary:active{transform:scale(.98)}.gender-selector{grid-template-columns:repeat(3,1fr);gap:12px;width:100%;display:grid}.gender-btn{cursor:pointer;background:#fff9;border:1.5px solid #00000014;border-radius:18px;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:16px;transition:all .25s;display:flex}.gender-btn i{color:var(--text-muted);font-size:22px;transition:color .2s}.gender-btn span{color:var(--text-muted);font-size:13px;font-weight:700}.gender-btn.active{border-color:var(--magic-color);background:#8b5cf60f;box-shadow:0 0 0 3px #8b5cf61a}.gender-btn.active i,.gender-btn.active span{color:var(--magic-color)}.upload-area{cursor:pointer;background:#8b5cf605;border:2px dashed #8b5cf64d;border-radius:20px;flex-direction:column;justify-content:center;align-items:center;padding:40px 20px;transition:all .25s;display:flex}.upload-area:hover,.upload-area:active{border-color:var(--magic-color);background:#8b5cf60d}.upload-icon{color:var(--magic-color);opacity:.8;margin-bottom:16px;font-size:40px}.upload-text{margin-bottom:6px;font-size:16px;font-weight:700}.upload-subtext{color:var(--text-muted);text-align:center;font-size:12px;line-height:1.4}.crop-container-wrapper{width:100%}.crop-box{background:#000;border-radius:16px;width:100%;height:280px;margin-bottom:16px;overflow:hidden}.crop-tip{color:var(--text-muted);text-align:center;justify-content:center;align-items:center;gap:6px;margin-bottom:20px;font-size:12px;display:flex}.crop-actions{grid-template-columns:1fr 1.2fr;gap:12px;width:100%;display:grid}.cropped-preview-wrapper{flex-direction:column;align-items:center;width:100%;display:flex}.avatar-preview-circle{border:4px solid #fff;border-radius:50%;width:160px;height:160px;margin-bottom:30px;overflow:hidden;box-shadow:0 10px 24px -5px #00000026}.avatar-preview-circle img{object-fit:cover;width:100%;height:100%}.classics-catalog-wrapper{box-sizing:border-box;flex-direction:column;width:100%;display:flex}.template-search-wrapper{box-sizing:border-box;align-items:center;width:100%;margin-bottom:12px;display:flex;position:relative}.template-search-wrapper .search-icon{color:var(--magic-color);pointer-events:none;opacity:.85;font-size:15px;position:absolute;left:16px}#template-search-input{width:100%;height:48px;color:var(--text-main);box-sizing:border-box;touch-action:manipulation;background:#fffffff2;border:1.5px solid #8b5cf633;border-radius:14px;outline:none;padding:0 42px 0 44px;font-family:Nunito,sans-serif;font-size:14px;transition:all .2s cubic-bezier(.4,0,.2,1);box-shadow:0 2px 8px #00000005}#template-search-input:focus{border-color:var(--magic-color);background:#fff;box-shadow:0 0 0 3.5px #8b5cf62e}.btn-clear-search{width:28px;height:28px;color:var(--text-muted);cursor:pointer;touch-action:manipulation;background:#00000012;border:none;border-radius:50%;justify-content:center;align-items:center;font-size:12px;transition:all .15s;display:flex;position:absolute;right:10px}.btn-clear-search:hover,.btn-clear-search:active{color:#ef4444;background:#ef44442e}.category-pills-container{scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x mandatory;box-sizing:border-box;gap:8px;margin-bottom:8px;padding:2px 2px 12px;display:flex;overflow-x:auto}.category-pills-container::-webkit-scrollbar{display:none}.category-pill{height:36px;color:var(--text-muted);cursor:pointer;scroll-snap-align:start;-webkit-user-select:none;user-select:none;touch-action:manipulation;background:#ffffffd9;border:1px solid #00000014;border-radius:100px;flex-shrink:0;justify-content:center;align-items:center;padding:0 16px;font-family:Outfit,sans-serif;font-size:12.5px;font-weight:700;transition:all .2s cubic-bezier(.4,0,.2,1);display:inline-flex}.category-pill:active{transform:scale(.95)}.category-pill.active{background:var(--magic-color);color:#fff;border-color:var(--magic-color);transform:translateY(-1px);box-shadow:0 3px 10px #8b5cf659}.template-card.surprise-card{cursor:pointer;-webkit-user-select:none;user-select:none;box-sizing:border-box;background:linear-gradient(135deg,#8b5cf61f 0%,#ec48991f 100%);border:1.5px dashed #8b5cf673;border-radius:18px;align-items:center;gap:14px;margin-bottom:12px;padding:14px 16px;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex;position:relative}.template-card.surprise-card:active{transform:scale(.985)}.template-card.surprise-card.selected{border-style:solid;border-color:var(--magic-color);box-shadow:0 0 0 2px var(--magic-color), 0 6px 18px #8b5cf62e;background:linear-gradient(135deg,#8b5cf62e 0%,#ec48992e 100%)}.surprise-badge{color:#fff;letter-spacing:.3px;text-transform:uppercase;background:linear-gradient(135deg,#a855f7 0%,#ec4899 100%);border-radius:100px;padding:3px 10px;font-size:10px;font-weight:800;position:absolute;top:-10px;right:16px;box-shadow:0 2px 8px #a855f759}.surprise-content{flex:1;align-items:center;gap:12px;min-width:0;display:flex}.surprise-icon{color:#fff;background:linear-gradient(135deg,#8b5cf6 0%,#ec4899 100%);border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;font-size:20px;display:flex;box-shadow:0 4px 12px #8b5cf64d}.surprise-text{flex:1;min-width:0}.surprise-text h3{color:var(--text-main);margin-bottom:2px;font-family:Outfit,sans-serif;font-size:15px;font-weight:800;line-height:1.25}.surprise-text p{color:var(--text-muted);margin:0;font-size:11.5px;line-height:1.35}.templates-scroll-container{scrollbar-width:thin;scrollbar-color:#8b5cf64d transparent;-webkit-overflow-scrolling:touch;box-sizing:border-box;border-radius:16px;max-height:380px;margin-bottom:8px;padding-bottom:8px;padding-right:4px;overflow-y:auto}.templates-scroll-container::-webkit-scrollbar{width:5px}.templates-scroll-container::-webkit-scrollbar-thumb{background:#8b5cf64d;border-radius:10px}.templates-grid{flex-direction:column;gap:8px;display:flex}.template-card{cursor:pointer;-webkit-user-select:none;user-select:none;box-sizing:border-box;touch-action:manipulation;background:#ffffffe6;border:1.5px solid #0000000f;border-radius:16px;align-items:center;gap:12px;padding:10px 12px;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex;position:relative;box-shadow:0 2px 8px #00000005}.template-card:hover{border-color:#8b5cf659;transform:translateY(-1px);box-shadow:0 4px 14px #8b5cf614}.template-card:active{background:#fff;transform:scale(.985)}.template-card.selected{border-color:var(--magic-color);box-shadow:0 0 0 2px var(--magic-color), 0 6px 18px #8b5cf624;background:#8b5cf60f}.card-thumb{background:#f1f5f9;border-radius:10px;flex-shrink:0;width:52px;height:70px;overflow:hidden;box-shadow:0 2px 8px #00000014}.card-thumb img{object-fit:cover;width:100%;height:100%}.card-info{flex:1;min-width:0}.card-meta{align-items:center;gap:6px;margin-bottom:2px;display:flex}.card-badge{color:var(--magic-color);text-transform:uppercase;letter-spacing:.3px;background:#8b5cf61a;border-radius:6px;padding:2px 7px;font-size:9.5px;font-weight:800}.card-author{color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.card-title{color:var(--text-main);margin-bottom:3px;font-family:Outfit,sans-serif;font-size:14.5px;font-weight:800;line-height:1.25}.card-moral{color:var(--text-muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:11.5px;line-height:1.35;display:-webkit-box;overflow:hidden}.card-radio{color:#00000026;flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;margin-left:auto;font-size:19px;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex}.card-radio.active{color:var(--magic-color);transform:scale(1.1)}.templates-loading-state,.templates-empty-state{text-align:center;color:var(--text-muted);flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:30px 16px;font-size:13px;display:flex}.templates-empty-state i{color:var(--text-muted);opacity:.5;font-size:28px}.magic-mini-spinner{border:2.5px solid #8b5cf633;border-top-color:var(--magic-color);border-radius:50%;width:22px;height:22px;animation:.8s linear infinite spin}.theme-sticky-dock{z-index:25;-webkit-backdrop-filter:blur(16px);box-sizing:border-box;background:#fffffff2;border-top:1px solid #8b5cf62e;border-radius:0 0 24px 24px;flex-direction:column;gap:10px;margin:10px -14px -14px;padding:12px 14px;display:flex;position:sticky;bottom:-15px;box-shadow:0 -8px 24px #0000000d}.dock-selected-info{align-items:center;gap:8px;min-width:0;display:flex}.dock-sparkle{width:26px;height:26px;color:var(--magic-color);background:#8b5cf61f;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;font-size:12px;display:flex}.dock-text{white-space:nowrap;align-items:baseline;gap:6px;display:flex;overflow:hidden}.dock-label{color:var(--text-muted);text-transform:uppercase;letter-spacing:.3px;font-size:11px;font-weight:600}.dock-title{color:var(--text-main);text-overflow:ellipsis;font-family:Outfit,sans-serif;font-size:13.5px;font-weight:800;overflow:hidden}.btn-dock-action{touch-action:manipulation;border-radius:14px;justify-content:center;align-items:center;gap:10px;width:100%;height:50px;font-size:16px;font-weight:800;display:flex;box-shadow:0 4px 16px #d946ef59}.step-avatar-preview-badge{border:3px solid #fff;border-radius:50%;width:80px;height:80px;margin:0 auto 16px;overflow:hidden;box-shadow:0 8px 16px #0000001a}.step-avatar-preview-badge img{object-fit:cover;width:100%;height:100%}.auth-buttons{flex-direction:column;gap:16px;width:100%;display:flex}.btn-google{color:#1f2937;background:#fff;border:1.5px solid #00000014;box-shadow:0 4px 10px #00000005}.btn-google i{color:#ea4335;font-size:18px}.btn-google:active{background:#f9fafb;transform:scale(.98)}.separator-line{text-align:center;color:var(--text-muted);align-items:center;margin:10px 0;font-size:12px;display:flex}.separator-line:before,.separator-line:after{content:"";border-bottom:1.5px solid #0000000f;flex:1}.separator-line:not(:empty):before{margin-right:12px}.separator-line:not(:empty):after{margin-left:12px}.auth-subtext{color:var(--text-muted);text-align:center;margin-top:10px;font-size:11px}.processing-loader-wrapper{text-align:center;flex-direction:column;align-items:center;padding:40px 0;display:flex}.magic-spinner{width:80px;height:80px;margin-bottom:30px;position:relative}.circle-spark{border:4px solid #0000;border-top-color:var(--magic-color);border-radius:50%;width:100%;height:100%;animation:1.5s cubic-bezier(.5,0,.5,1) infinite spin;position:absolute}.circle-spark:first-child{border-top-color:var(--magic-color);animation-delay:-.4s}.circle-spark:nth-child(2){border-top-color:var(--secondary-color);animation-delay:-.2s}.circle-spark:nth-child(3){border-top-color:var(--gold-color)}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.processing-loader-wrapper h2{margin-bottom:8px;font-family:Playfair Display,serif;font-size:26px}.processing-loader-wrapper p{color:var(--text-muted);margin-bottom:30px;font-size:15px}.processing-status-list{text-align:left;flex-direction:column;gap:12px;width:100%;max-width:280px;display:flex}.status-item{color:var(--text-muted);align-items:center;gap:10px;font-size:14px;display:flex}.status-item i{font-size:16px}.status-item i.fa-circle-notch{color:var(--magic-color)}.status-item.complete{color:var(--text-main);font-weight:700}.status-item.complete i{color:#10b981;font-weight:900}.avatar-variations-grid{grid-template-columns:repeat(2,1fr);gap:16px;width:100%;margin-bottom:30px;display:grid}.variation-item{aspect-ratio:1;cursor:pointer;background:#fff;border:3px solid #0000;border-radius:20px;transition:all .25s;position:relative;overflow:hidden;box-shadow:0 4px 10px #0000000d}.variation-item img{object-fit:cover;width:100%;height:100%;transition:transform .3s}.variation-item.selected{border-color:var(--magic-color);transform:scale(1.02);box-shadow:0 10px 20px -5px #8b5cf640}.variation-item.selected img{transform:scale(1.05)}.variation-item.selected:after{content:"";color:var(--magic-color);background:#fff;border-radius:50%;justify-content:center;align-items:center;width:20px;height:20px;font-family:"Font Awesome 6 Free";font-size:20px;font-weight:900;display:flex;position:absolute;top:10px;right:10px}.book-loader{border:3px solid var(--text-main);background:#fff;border-radius:3px;width:60px;height:45px;margin-bottom:30px;position:relative}.book-loader .page{border-left:2px solid var(--text-main);transform-origin:0%;background:#fff;width:50%;height:100%;animation:1.5s infinite flip;position:absolute;left:50%}.book-loader .page:first-child{animation-delay:.15s}.book-loader .page:nth-child(2){animation-delay:.3s}@keyframes flip{0%{transform:perspective(200px)rotateY(0)}50%{transform:perspective(200px)rotateY(-180deg)}to{transform:perspective(200px)rotateY(-180deg)}}.story-preview-header{text-align:center;margin-bottom:24px}.preview-badge{color:#10b981;text-transform:uppercase;letter-spacing:.5px;background:#10b9811a;border-radius:100px;align-items:center;gap:6px;margin-bottom:12px;padding:6px 14px;font-size:12px;font-weight:800;display:inline-flex}.preview-layout{flex-direction:column;gap:20px;margin-bottom:35px;display:flex}.preview-card-image{aspect-ratio:1;background:#eee;border-radius:20px;width:100%;overflow:hidden;box-shadow:0 10px 24px -5px #0000001a}.preview-card-image img{object-fit:cover;width:100%;height:100%}.preview-card-text{background:#fff;border:1px solid #0000000a;border-radius:20px;padding:24px}.preview-card-text p{color:var(--text-main);white-space:pre-line;font-size:16px;line-height:1.6}.conversion-cta-box{text-align:center;background:#8b5cf60d;border:1.5px solid #8b5cf61f;border-radius:24px;padding:30px}.conversion-cta-box h2{color:var(--text-main);margin-bottom:12px;font-family:Playfair Display,serif;font-size:20px}.conversion-cta-box p{color:var(--text-muted);margin-bottom:24px;font-size:14px;line-height:1.6}.store-buttons-grid{grid-template-columns:repeat(2,1fr);gap:12px;width:100%;display:grid}.store-badge-btn{color:#fff;background:#0f172a;border-radius:12px;justify-content:center;align-items:center;gap:8px;height:52px;padding:0 16px;text-decoration:none;transition:opacity .2s;display:flex}.store-badge-btn:active{opacity:.85}.store-badge-btn i{font-size:22px}.store-badge-btn .btn-text{flex-direction:column;align-items:flex-start;display:flex}.store-badge-btn .btn-text .sub{text-transform:uppercase;opacity:.6;letter-spacing:.2px;font-size:9px;font-weight:500}.store-badge-btn .btn-text .main{font-family:Outfit,sans-serif;font-size:14px;font-weight:700}.main-footer{text-align:center;color:var(--text-muted);padding:20px;font-size:12px}@media (width<=480px){.main-header{padding:16px 20px}.wizard-box{border-bottom:none;border-left:none;border-right:none;border-top:1px solid var(--border-glass);box-shadow:none;background:0 0;border-radius:0;margin:0 auto;padding:20px}.step-header h1{font-size:24px}.crop-box{height:220px}.store-buttons-grid,.crop-actions{grid-template-columns:1fr}.templates-scroll-container{min-height:270px;max-height:calc(100vh - 380px);padding-right:2px}.theme-sticky-dock{padding:12px 18px calc(14px + env(safe-area-inset-bottom,0px));border-radius:0;margin:8px -20px -20px;box-shadow:0 -8px 25px #00000014}.template-card{gap:10px;padding:10px 12px}}.companions-list{flex-direction:column;gap:16px;margin-bottom:24px;display:flex}.companion-card{background:#fff;border:2px solid #0000;border-radius:16px;justify-content:space-between;align-items:center;padding:16px;transition:all .3s;display:flex;box-shadow:0 4px 12px #0000000d}.companion-card.customized{border-color:var(--primary-color);background:var(--primary-light)}.companion-info{flex-direction:column;flex:1;gap:4px;display:flex}.companion-info h4{color:var(--text-dark);margin:0;font-size:1.1rem}.companion-info p{color:var(--text-muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:.85rem;display:-webkit-box;overflow:hidden}.companion-status{color:var(--primary-color);margin-top:4px;font-size:.8rem;font-weight:700}.companion-actions{margin-left:12px}.companion-actions .btn-customize{background:var(--bg-light);width:40px;height:40px;color:var(--primary-color);cursor:pointer;border:none;border-radius:50%;justify-content:center;align-items:center;font-size:1.2rem;display:flex;box-shadow:0 2px 8px #0000000d}.bottom-sheet-overlay{z-index:1000;opacity:0;pointer-events:none;background:#00000080;transition:opacity .3s;position:fixed;inset:0}.bottom-sheet-overlay.active{opacity:1;pointer-events:all}.bottom-sheet{z-index:1001;background:#fff;border-radius:24px 24px 0 0;max-height:90vh;padding:24px;transition:bottom .3s cubic-bezier(.175,.885,.32,1.275);position:fixed;bottom:-100%;left:0;right:0;overflow-y:auto}.bottom-sheet.active{bottom:0}.sheet-header{justify-content:space-between;align-items:center;margin-bottom:16px;display:flex}.sheet-header h3{font-size:1.3rem;font-family:var(--font-heading);margin:0}.btn-close-sheet{color:var(--text-muted);cursor:pointer;background:0 0;border:none;font-size:1.5rem}.role-desc{color:var(--text-muted);margin-bottom:20px;font-size:.9rem}.upload-area.small{min-height:100px;padding:16px}.companion-photo-preview{border-radius:50%;width:100px;height:100px;margin:0 auto;position:relative}.companion-photo-preview img{object-fit:cover;border:3px solid var(--primary-color);border-radius:50%;width:100%;height:100%}.btn-remove-photo{color:#fff;cursor:pointer;background:#ff4757;border:none;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;display:flex;position:absolute;bottom:0;right:0;box-shadow:0 2px 5px #0003}.btn-back{color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;padding:8px;font-size:20px;transition:all .2s;display:flex;position:absolute;top:0;left:0}.btn-back:hover{background:var(--bg-light);color:var(--primary-color)}.aha-content{text-align:center;background:#fff;border-radius:20px;margin-bottom:24px;padding:24px;box-shadow:0 10px 30px #00000014}.aha-avatars-box{justify-content:center;align-items:center;gap:-15px;margin-bottom:20px;display:flex}.aha-book-title{font-family:var(--font-heading);color:var(--text-dark);margin-bottom:20px;font-size:1.4rem;line-height:1.3}.aha-audio-player{background:#8b5cf61a;border-radius:50px;align-items:center;gap:16px;margin-bottom:30px;padding:8px 24px 8px 8px;display:inline-flex}.btn-play-audio{background:var(--magic-color);color:#fff;cursor:pointer;border:none;border-radius:50%;justify-content:center;align-items:center;width:44px;height:44px;display:flex;box-shadow:0 4px 10px #8b5cf64d}.audio-waves{align-items:center;gap:4px;height:24px;display:flex}.audio-waves .wave{background:var(--magic-color);opacity:.5;border-radius:2px;width:4px}.audio-waves .wave:first-child{height:40%}.audio-waves .wave:nth-child(2){height:70%}.audio-waves .wave:nth-child(3){height:100%}.audio-waves .wave:nth-child(4){height:60%}.audio-waves .wave:nth-child(5){height:30%}.audio-waves.playing .wave{opacity:1;animation:1s ease-in-out infinite alternate equalize}@keyframes equalize{0%{height:20%}to{height:100%}}.aha-locked-scenes h3{color:var(--text-muted);margin-bottom:12px;font-size:.9rem}.locked-grid{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.locked-thumb{aspect-ratio:1;color:#9ca3af;filter:blur(1px);background:linear-gradient(135deg,#f3f4f6,#e5e7eb);border-radius:8px;justify-content:center;align-items:center;font-size:1.5rem;display:flex}.btn.glow{animation:2s infinite pulse-glow;box-shadow:0 0 20px #8b5cf680}@keyframes pulse-glow{0%{box-shadow:0 0 20px #8b5cf64d}50%{box-shadow:0 0 30px #8b5cf699}to{box-shadow:0 0 20px #8b5cf64d}}.avatar-preview-circle{margin:0 auto 30px!important}#step-aha-moment .step-header{margin-top:10px;margin-bottom:20px}.hero-poster{aspect-ratio:3/4;background:#f1f5f9;border-radius:20px;width:100%;max-height:55vh;margin-bottom:24px;position:relative;overflow:hidden;box-shadow:0 16px 40px #0003}.hero-poster img{object-fit:cover;width:100%;height:100%;display:block}.poster-overlay{background:linear-gradient(#0000 0%,#0006 40%,#000000e6 100%);flex-direction:column;justify-content:flex-end;align-items:center;height:60%;padding:24px 20px;display:flex;position:absolute;bottom:0;left:0;right:0}.poster-overlay .aha-book-title{color:#fff;text-shadow:0 2px 8px #0009;margin-bottom:20px;font-size:24px;line-height:1.2}.aha-audio-pill{-webkit-backdrop-filter:blur(12px);cursor:pointer;background:#fff3;border:1px solid #fff6;border-radius:50px;align-items:center;gap:12px;padding:6px 20px 6px 6px;transition:transform .2s;display:inline-flex;box-shadow:0 8px 24px #0000004d}.aha-audio-pill:active{transform:scale(.96)}.btn-play-icon{color:var(--magic-color);pointer-events:none;background:#fff;border:none;border-radius:50%;justify-content:center;align-items:center;width:36px;height:36px;font-size:14px;display:flex}.audio-text{color:#fff;pointer-events:none;font-size:13px;font-weight:600}.aha-audio-pill .audio-waves{align-items:center;gap:3px;height:16px;display:flex}.aha-audio-pill .audio-waves .wave{opacity:.6;background:#fff;border-radius:2px;width:3px}.aha-locked-scenes{text-align:left;margin-bottom:24px}.aha-locked-scenes h3{color:var(--text-main);margin-bottom:12px;padding-left:4px;font-size:15px}.chapters-scroll-container{flex-direction:column;gap:10px;display:flex}.chapter-card{-webkit-backdrop-filter:blur(8px);background:#fff9;border:1px solid #fffc;border-radius:12px;align-items:center;gap:16px;padding:16px;display:flex;box-shadow:0 4px 12px #00000008}.chapter-card.unlocked .chapter-icon{background:var(--magic-color);color:#fff}.chapter-card.locked{opacity:.8}.chapter-icon{color:#94a3b8;background:#e2e8f0;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;font-size:14px;display:flex}.chapter-info h4{color:var(--text-main);margin-bottom:2px;font-size:14px}.chapter-info p{color:var(--text-muted);font-size:12px}.deliverables-badges{justify-content:center;gap:16px;margin-top:12px;display:flex}.deliverables-badges span{color:var(--text-muted);align-items:center;gap:6px;font-size:11px;font-weight:500;display:flex}.aha-avatars-box{z-index:10;justify-content:center;align-items:center;gap:-15px;display:flex;position:absolute;top:30px;left:0;right:0}.aha-avatar-circle{z-index:1;background:#f1f5f9;border:4px solid #fff;border-radius:50%;width:100px;height:100px;position:relative;overflow:hidden;box-shadow:0 8px 24px #0000004d}.aha-avatar-circle:nth-child(2){z-index:2;margin-left:-20px}.aha-avatar-circle img{object-fit:cover;width:100%;height:100%}.story-audio-box{background:linear-gradient(135deg,#8b5cf614 0%,#6366f114 100%);border:1px solid #8b5cf633;border-radius:16px;justify-content:space-between;align-items:center;gap:12px;margin-bottom:24px;padding:12px 18px;display:flex}.story-audio-info{align-items:center;gap:12px;display:flex}.story-audio-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#8b5cf6,#6366f1);border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:42px;height:42px;font-size:16px;transition:transform .2s,box-shadow .2s;display:flex;box-shadow:0 4px 12px #8b5cf64d}.story-audio-btn:hover{transform:scale(1.05);box-shadow:0 6px 16px #8b5cf666}.story-audio-btn:active{transform:scale(.95)}.story-audio-text{flex-direction:column;display:flex}.story-audio-title{color:var(--text-main);font-size:13px;font-weight:700}.story-audio-sub{color:var(--text-muted);font-size:11px}.scene-nav-controls{justify-content:space-between;align-items:center;gap:12px;margin-top:16px;display:flex}.scene-nav-btn{color:var(--magic-color);cursor:pointer;background:#fff;border:1.5px solid #8b5cf633;border-radius:100px;align-items:center;gap:8px;padding:8px 16px;font-size:13px;font-weight:600;transition:all .2s;display:inline-flex}.scene-nav-btn:hover:not(:disabled){border-color:var(--magic-color);background:#8b5cf614}.scene-nav-btn:disabled{opacity:.35;cursor:not-allowed}.scene-dots{flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;display:flex}.scene-dot{cursor:pointer;background:#cbd5e1;border-radius:50%;width:8px;height:8px;transition:all .2s}.scene-dot.active{background:var(--magic-color);border-radius:10px;width:20px}
