@font-face{font-family:Vazir;src:url('assets/Vazirmatn.ttf')}@font-face{font-family:Nastaliq;src:url('assets/Irannastaliq.ttf')}@font-face{font-family:Maryam;src:url('assets/Pen-Maryam.ttf')}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html{background:#f7f1e9;color:#483632;font-family:Vazir,sans-serif}body{margin:0}button,input{font:inherit}button{min-height:48px;cursor:pointer;color:inherit;background:transparent;border:0;touch-action:manipulation}button:active{transform:translateY(2px)}button:focus-visible,input:focus-visible{outline:3px solid #b88c51;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:28px;line-height:1.8}h2{font-size:21px;line-height:1.8}p{font-size:14px;color:#8d7668;line-height:2}small{font-size:11px;line-height:1.9;color:#9e8878}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.preview-note{text-align:center;padding:5px 8px;font-size:10px;background:#eadfd3;color:#887365}main{padding:22px 22px 112px;max-width:660px;margin:auto;animation:enter .3s ease both}header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.brand{display:flex;align-items:center;gap:11px}.brand-mark{height:45px;width:45px;display:grid;place-items:center;border-radius:15px;color:#e7c88e;background:linear-gradient(145deg,#a15453,#66333f);box-shadow:inset 0 2px 1px #c68b77,0 4px 0 #5c3036;transform:rotate(-4deg)}.brand strong{display:block;font-size:22px}.brand small{font-size:10px}.icon-button{display:grid;place-items:center;width:45px;height:45px;border-radius:16px;background:#fffaf3;border:1px solid #e5d9c9}.welcome{margin-top:5px}.welcome .eyebrow{font-size:11px;color:#ab8c73}.welcome h1{font-size:28px}.welcome p{font-size:13px;max-width:290px}.book-scene{height:296px;perspective:1000px;display:flex;align-items:center;justify-content:center;position:relative}.cover-book{position:relative;transform:rotateY(18deg) rotateZ(-10deg);height:241px;width:178px;transform-style:preserve-3d;filter:drop-shadow(-18px 26px 17px #6b443d2c);transition:transform .6s ease}.cover-book:hover{transform:rotateY(7deg) rotateZ(-5deg)}.cover-book:before{position:absolute;content:'';inset:8px -8px -8px 7px;background:repeating-linear-gradient(0deg,#f0e0bc 0 2px,#d4bb94 2px 3px);border-radius:8px;transform:translateZ(-6px);box-shadow:-4px 4px 0 #9c624d}.cover-book:after{content:'';position:absolute;top:12px;bottom:-19px;left:30px;width:17px;background:#b9675a;transform:translateZ(-5px);clip-path:polygon(0 0,100% 0,100% 100%,50% 88%,0 100%)}.cover{position:absolute;inset:0;border:2px solid #bc8d62;border-radius:7px 15px 15px 7px;background:radial-gradient(ellipse at 70% 25%,#9a5058,#542b3c);box-shadow:inset 4px 0 7px #361b2899,inset -1px 1px 0 #f2bd93aa;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#e6bf7e}.cover:before{position:absolute;content:'';inset:13px;border:1px solid #cb9d6380;border-radius:3px 10px 10px 3px}.cover .medallion{width:124px;height:157px;border:1px solid #e1b97c99;border-radius:50%;position:absolute;box-shadow:0 0 0 5px #b787551a,0 0 0 9px #cb9d6333}.cover .medallion:before,.cover .medallion:after{position:absolute;content:'✦';font-size:15px;left:52px;color:#d1aa71}.cover .medallion:before{top:-11px}.cover .medallion:after{bottom:-11px}.cover .calligraphy{font-family:Nastaliq,serif;font-size:48px;line-height:1.9;transform:translateY(-1px);text-shadow:0 2px 1px #341b2a}.cover small{color:#d4ac7a;font-size:8px;margin-top:-5px;letter-spacing:1px}.book-shadow{position:absolute;bottom:10px;left:20%;right:20%;height:20px;border-radius:50%;background:#ac876922;filter:blur(10px)}.primary,.secondary{display:flex;align-items:center;justify-content:center;gap:9px;padding:12px 18px;border-radius:18px;min-height:54px;font-weight:650;line-height:1.7}.primary{background:linear-gradient(135deg,#ac6664,#783f4b);color:#fff9ee;border:1px solid #c58d7a;box-shadow:0 5px 0 #673541,0 12px 22px #94565b20}.secondary{background:#ece2d5;color:#8a674f;border:1px solid #dfcdb7}.wide{width:100%}.free-label{text-align:center;font-size:11px;color:#a58b72;margin-top:16px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:27px 0 14px}.section-head h2{font-size:18px}.section-head button{color:#9d685a;font-size:12px;min-height:40px}.couplet-card{position:relative;border:1px solid #e7d5bf;border-radius:22px;background:radial-gradient(ellipse at 0 0,#e9d5b438,transparent),#fff8e9;padding:17px 14px 19px;text-align:center;box-shadow:0 5px 0 #e8dccb}.couplet-card:before{content:'❧';display:block;color:#bc9c6b;font-size:25px;line-height:1.2;margin-bottom:5px}.couplet-card .verse{font-family:Nastaliq,serif;font-size:27px;line-height:2.25;color:#5c4a40}.couplet-card small{display:block;margin-top:11px}.collection-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px;margin:18px 0}.collection{display:flex;align-items:center;gap:13px;padding:17px 12px;border:1px solid #e5d7c6;border-radius:20px;background:#fffaf1;text-align:right;box-shadow:0 4px 0 #e9ddce}.mini-book{position:relative;width:40px;height:55px;background:linear-gradient(135deg,var(--book,#96525a),#663341);border:1px solid #b78769;border-radius:3px 8px 8px 3px;box-shadow:-3px 3px 0 #e0c8a4,-5px 5px 0 #9f7050;color:#e9bd79;display:grid;place-items:center;flex-shrink:0;transform:rotate(-6deg)}.mini-book:before{content:'';inset:5px;position:absolute;border:1px solid #d4ad7477;border-radius:2px 5px 5px 2px}.mini-book svg{width:22px;height:22px}.collection h3{font-size:13px}.collection small{font-size:9px}.collection:nth-child(2n) .mini-book{--book:#768285}.collection:nth-child(3n) .mini-book{--book:#ad8150}.title-copy{margin:8px 0 24px}.title-copy p{margin-top:5px}.title-copy small{display:block;margin-bottom:7px}.note{padding:15px;border-radius:17px;border:1px solid #e6d8c6;background:#f1e5d4;color:#977d66;font-size:12px;line-height:1.9}.reading-head{display:flex;align-items:center;gap:12px;margin-bottom:19px}.reading-head .grow{flex:1}.reading-head h2{font-size:18px}.reading-head small{font-size:10px}.book-frame{position:relative;max-width:420px;margin:0 auto 23px;padding:8px 8px 9px 4px;border-radius:8px 17px 17px 8px;border:1px solid #a97858;background:#845344;box-shadow:-3px 5px 0 #d7bb98,-6px 9px 0 #e8d4b5,-9px 12px 0 #b08362,0 22px 35px #70503f19}.book-frame:after{content:'';position:absolute;z-index:2;right:9px;top:9px;bottom:10px;width:7px;background:linear-gradient(90deg,transparent,#634a3529);pointer-events:none}.paper{position:relative;background:radial-gradient(ellipse at 30% 40%,#fffdf0,#f0e0c1);padding:21px 19px 25px;text-align:center;overflow:hidden;color:#55443a;box-shadow:inset 8px 0 14px #a0804b16}.paper:before{content:'';position:absolute;inset:13px;border:1px solid #bba07666;border-radius:3px;pointer-events:none}.paper .ornament{font-size:28px;color:#b38f53;margin:0 0 8px;line-height:1.2}.paper h3{font-family:Vazir;font-size:11px;font-weight:500;color:#a28a67;margin-bottom:18px}.paper .verse{font-family:Nastaliq,serif;font-size:27px;line-height:2.35;white-space:nowrap;padding:0 1px}.paper .page-footer{position:absolute;bottom:22px;left:20px;right:20px;display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#ab8f69}.locked-page{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;padding:20px}.locked-page svg{width:40px;height:40px;color:#aa8155}.locked-page p{font-size:13px}.book-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:24px 0 17px}.book-actions button{border:1px solid #e0cdb3;background:#fff7e8;border-radius:14px;padding:8px 13px;display:flex;align-items:center;gap:6px;font-size:12px}.book-actions svg{width:17px}.book-counter{font-size:11px;color:#ab8b6e}.reader-tools{display:flex;gap:11px;margin:17px 0}.reader-tools>button{flex:1;padding:10px;border:1px solid #e3d4c2;border-radius:17px;background:#fff8ed;display:flex;align-items:center;justify-content:center;gap:7px;font-size:13px}.interpretation{margin-top:22px;border:1px solid #e0c9b1;border-radius:19px;padding:19px 21px;background:repeating-linear-gradient(#fff9ed 0,#fff9ed 37px,#b7a0832b 38px,#fff9ed 39px);box-shadow:0 4px 0 #e6d6c0}.interpretation h2{font-size:16px;margin-bottom:8px}.interpretation p{font-family:Maryam,Vazir;font-size:25px;color:#835d58;line-height:1.62}.interpretation .interpretation-note{font-family:Vazir;font-size:10px;margin-top:15px;line-height:1.9;color:#a88b75}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0;padding:15px;background:#eee2d3;border-radius:16px}.switch-row span{font-size:12px;line-height:1.9}.switch-row input{width:20px;height:20px;accent-color:#9b5c61}.plan{padding:25px;background:#fff7ea;border:1px solid #e2ceb2;border-radius:23px}.price{font-size:32px;color:#8e4d58;margin:20px 0 10px;font-weight:750}.price small{font-size:13px}.benefits{display:grid;gap:13px;margin:20px 0}.benefits p{font-size:13px;display:flex;gap:10px;align-items:center}.benefits svg{color:#ad855c;width:18px}.settings-list{padding:6px 20px;background:#fff9ef;border:1px solid #e5d5c1;border-radius:20px}.settings-list button{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:right;gap:15px;border-bottom:1px solid #eadfce;padding:13px 0;font-size:13px}.settings-list button:last-child{border:0}.settings-list button span{display:flex;align-items:center;gap:12px}nav{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:space-around;gap:5px;padding:9px 13px calc(10px + env(safe-area-inset-bottom));background:#fff9f0f5;border-top:1px solid #e5d7c3;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);z-index:10}nav button{max-width:160px;flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;font-size:10px;min-height:57px;border-radius:16px;color:#ae9580}nav button.active{background:#eee0d3;color:#93565b}nav svg{width:23px;height:23px}dialog{padding:26px;width:min(430px,calc(100% - 30px));border:1px solid #d9bf9f;background:#fff8ed;color:#63473e;border-radius:26px;max-height:calc(100dvh - 50px);overflow:auto}dialog::backdrop{background:#4a302d90;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}dialog p{margin:13px 0 23px}.empty{text-align:center;padding:40px 20px}.empty svg{width:58px;height:58px;color:#b59a7a;margin-bottom:16px}.empty p{margin:12px 0 24px}.stf__parent{margin:auto}.reader main{padding-right:16px;padding-left:16px}.audio-status{font-size:11px;color:#a38873;margin:15px 0;text-align:center}@keyframes enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(max-width:360px){main{padding-left:16px;padding-right:16px}.collection{gap:9px;padding:14px 9px}.collection h3{font-size:12px}.paper{padding-left:14px;padding-right:14px}.paper .verse{font-size:23px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
