@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');
:root{--primary:#ffbd00;--secondary:#fff6cf;--bg:#faf9f5;--text:#211f19;--card:#fff;--muted:#8c887e;--line:#ede9df;--danger:#ec564a;--green:#1ca66a;--shadow:0 12px 36px rgba(59,45,10,.08);--shadow-lg:0 24px 70px rgba(42,32,9,.14);--r:20px;--app-safe-top:max(env(safe-area-inset-top,0px),var(--tg-safe-area-inset-top,0px),var(--tg-content-safe-area-inset-top,0px));--app-safe-bottom:max(env(safe-area-inset-bottom,0px),var(--tg-safe-area-inset-bottom,0px),var(--tg-content-safe-area-inset-bottom,0px))}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Vazirmatn,sans-serif;color:var(--text);background:#efede7;-webkit-tap-highlight-color:transparent}button,input,textarea,select{font:inherit}button{cursor:pointer;-webkit-appearance:none;appearance:none;color:inherit}button:disabled{cursor:not-allowed;opacity:.5}input,textarea,select{width:100%;border:1px solid var(--line);background:#fbfaf7;border-radius:13px;padding:12px;outline:none;color:var(--text);transition:.2s}input:focus,textarea:focus,select:focus{border-color:var(--primary);background:#fff;box-shadow:0 0 0 4px color-mix(in srgb,var(--primary),transparent 82%)}textarea{min-height:90px;resize:vertical}label{display:flex;flex-direction:column;gap:6px;margin:11px 0;font-size:11px;color:#625e54}.two,.colors{display:grid;grid-template-columns:1fr 1fr;gap:10px}.primary{width:100%;min-height:50px;border:0;border-radius:15px;padding:12px 17px;background:linear-gradient(135deg,color-mix(in srgb,var(--primary),white 18%),var(--primary));color:#29230f;font-weight:800;box-shadow:0 10px 28px color-mix(in srgb,var(--primary),transparent 65%);transition:.2s}.primary:active{transform:scale(.98)}
/* Mini app */
#app{width:min(520px,100%);min-height:100dvh;margin:auto;background:var(--bg);padding-bottom:90px;box-shadow:0 0 80px rgba(31,25,11,.13);overflow:hidden}.splash,.error-screen{min-height:100dvh;display:grid;place-content:center;text-align:center;padding:24px}.splash b,.logo{width:74px;height:74px;margin:auto;display:grid;place-items:center;border-radius:23px;background:var(--primary);font-size:27px;font-weight:900;box-shadow:0 18px 45px color-mix(in srgb,var(--primary),transparent 62%)}.splash span{margin-top:13px;color:var(--muted);font-size:11px}.hero{position:relative;min-height:290px;padding:31px 23px 65px;display:flex;justify-content:space-between;overflow:hidden;border-radius:0 0 38px 38px;background:radial-gradient(circle at 12% 10%,rgba(255,255,255,.62),transparent 31%),linear-gradient(145deg,color-mix(in srgb,var(--primary),white 24%),var(--primary));box-shadow:0 20px 48px color-mix(in srgb,var(--primary),transparent 72%)}.hero:after{content:'';position:absolute;width:210px;height:210px;left:-105px;bottom:-145px;border-radius:50%;background:#fff5}.hero>div:first-child{position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-start}.hero>div>span{background:#fff;color:#27794b;border-radius:99px;padding:5px 9px;font-size:9px;font-weight:700;box-shadow:0 6px 18px #75550012}.hero small{margin-top:17px;color:#695411}.hero h1{font-size:34px;line-height:1.24;letter-spacing:-1.4px;margin:7px 0;font-weight:800}.hero em{font-style:normal;color:#fff;text-shadow:0 5px 18px #7958002b}.hero p{margin:0;color:#695411;font-size:10px}.hero-logo{position:relative;z-index:1;width:64px;height:64px;display:grid;place-items:center;border-radius:21px;background:#fff;font-weight:900;font-size:22px;box-shadow:0 15px 36px #6e510025;transform:rotate(-4deg)}.hero-logo img,.logo img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.search{position:relative;z-index:2;height:58px;margin:-29px 18px 16px;display:flex;align-items:center;gap:10px;padding:0 16px;border:1px solid #fff;background:#fff;border-radius:18px;box-shadow:var(--shadow-lg)}.search svg{width:22px;color:#837d71}.search input{padding:0;border:0;background:transparent;box-shadow:none}.cats{display:flex;gap:7px;overflow:auto;padding:2px 18px 17px;scrollbar-width:none}.cats::-webkit-scrollbar{display:none}.cats button{border:1px solid var(--line);background:#fff;border-radius:99px;padding:8px 16px;color:#746e62;white-space:nowrap;font-size:10px;transition:.2s}.cats button.active{background:var(--primary);border-color:var(--primary);color:#32290e;font-weight:700;box-shadow:0 7px 18px color-mix(in srgb,var(--primary),transparent 65%)}.products,.page{padding:0 18px}.products h2,.page h1{font-size:22px;letter-spacing:-.7px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.product{overflow:hidden;background:var(--card);border:1px solid #f1ede5;border-radius:21px;padding-bottom:11px;box-shadow:0 8px 28px rgba(48,38,12,.055);transition:.2s}.product:active{transform:scale(.98)}.product>div{height:145px;background-position:center;background-size:cover}.product>small,.product>h3,.product>p,.product>footer{margin-right:11px;margin-left:11px}.product>small{display:inline-block;margin-top:9px;padding:3px 7px;border-radius:99px;background:var(--secondary);color:#966c00;font-size:8px}.product h3{margin-top:6px;margin-bottom:2px;font-size:14px}.product p{height:27px;overflow:hidden;margin-top:3px;color:var(--muted);font-size:9px}.product footer{display:flex;align-items:center;justify-content:space-between}.product footer b{font-size:10px}.product footer button{width:31px;height:31px;border:0;border-radius:50%;background:var(--primary);font-size:19px;box-shadow:0 7px 17px color-mix(in srgb,var(--primary),transparent 62%)}nav{position:fixed;z-index:50;bottom:9px;left:50%;width:min(492px,calc(100% - 20px));height:70px;transform:translateX(-50%);display:flex;align-items:center;justify-content:space-around;padding:6px;border:1px solid #ffffffd1;background:#fffffff0;border-radius:22px;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 18px 52px rgba(40,31,8,.23)}nav button{position:relative;width:24%;height:55px;border:0;border-radius:15px;background:transparent;color:#9b968d;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;transition:.23s}nav button.active{background:var(--secondary);color:#9b7000;transform:translateY(-3px)}nav svg,nav img{width:21px;height:21px;object-fit:contain}nav span{font-size:8px;font-weight:600}nav button.active span{font-weight:800}nav i{position:absolute;top:0;right:15px;padding:1px 5px;border-radius:99px;background:var(--danger);color:#fff;font-size:8px;font-style:normal}.closed{position:sticky;z-index:30;top:7px;margin:7px 13px -1px;display:flex;gap:8px;padding:10px 12px;background:#fff1e5;border:1px solid #ffd3ab;border-radius:15px;color:#8c4b10;box-shadow:0 8px 25px #743b0810}.closed span{display:flex;flex-direction:column}.closed small{font-size:8px}.page{padding-top:22px}.page-head{display:flex;align-items:center;justify-content:space-between}.page-head small{color:#a17600}.page-head h1{margin:1px 0 17px}.page-head>span{padding:6px 10px;background:var(--secondary);border-radius:99px;font-size:9px}.cart-list{display:grid;gap:10px}.cart-row{position:relative;display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;background:#fff;border-radius:18px;box-shadow:var(--shadow)}.cart-row img{width:72px;height:72px;object-fit:cover;border-radius:14px}.cart-copy b{font-size:13px}.cart-copy small{display:block;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:8px}.cart-copy strong{display:block;margin-top:6px;font-size:10px}.cart-row .remove{position:absolute;top:-5px;right:-5px;width:23px;height:23px;padding:0;border:0;border-radius:50%;background:#fff0ee;color:#b83930}.summary,.panel,.order{margin-top:14px;padding:18px;border:1px solid var(--line);background:#fff;border-radius:21px;box-shadow:var(--shadow)}.summary p{display:flex;justify-content:space-between;font-size:11px}.summary .grand{margin-top:12px;padding-top:12px;border-top:1px dashed #d9d2c3}.summary .grand strong{font-size:16px}.empty-state,.empty{min-height:400px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.empty-state>span{font-size:55px}.empty-state h2{margin:5px 0}.empty-state p{margin-top:0;color:var(--muted);font-size:11px}.empty-state button{border:0;background:var(--primary);border-radius:13px;padding:10px 17px}.order header{display:flex;justify-content:space-between}.order header span{padding:4px 8px;background:var(--secondary);border-radius:99px;font-size:9px}.order p{color:var(--muted);font-size:10px}
/* Sheets, counters, checkout */
.modal{position:fixed;z-index:100;inset:0;display:grid;place-items:end center;background:rgba(18,15,9,.52);animation:fade .18s ease}.modal>div,.modal>form{position:relative;width:min(520px,100%);max-height:94dvh;overflow:auto;padding:20px;background:#fff;border-radius:28px 28px 0 0;animation:up .3s cubic-bezier(.2,.8,.2,1)}@keyframes fade{from{background:transparent}}@keyframes up{from{opacity:.2;transform:translateY(45px)}}.close{position:absolute;z-index:4;top:14px;left:15px;width:36px;height:36px;border:0;border-radius:50%;display:grid;place-items:center;background:#fff;box-shadow:0 6px 20px #0002;font-size:22px}.product-sheet>div{overflow:hidden;padding-top:0}.modal-image{height:280px;margin:0 -20px;background-position:center;background-size:cover}.sheet-title{padding:16px 1px 5px}.sheet-title>small{padding:4px 8px;background:var(--secondary);border-radius:99px;color:#976c00;font-size:9px}.sheet-title h2{margin:8px 0 3px;font-size:25px}.sheet-title p{margin-top:3px;color:var(--muted);font-size:11px}.product-sheet h3,.checkout-section h3{font-size:13px}.addon-list{overflow:hidden;border:1px solid var(--line);border-radius:17px}.counter-row,.product-quantity{display:flex;align-items:center;justify-content:space-between;padding:13px;background:#fff;border-bottom:1px solid var(--line)}.counter-row:last-child{border:0}.counter-row>span,.product-quantity>span{display:flex;flex-direction:column}.counter-row small,.product-quantity small{color:var(--muted);font-size:9px}.product-quantity{margin:12px 0;border:1px solid var(--line);border-radius:17px}.counter{display:flex;align-items:center;gap:10px;padding:4px;background:#f6f3eb;border-radius:13px}.counter button{width:31px;height:31px;border:0;border-radius:10px;background:#fff;font-size:18px;box-shadow:0 3px 10px #3024000c}.counter button:last-child{background:var(--primary)}.counter>b{min-width:16px;text-align:center}.cart-row .counter{gap:4px}.cart-row .counter button{width:26px;height:26px}.sticky-action{display:flex;align-items:center;justify-content:space-between}.checkout>div{padding-top:20px}.checkout-head small{color:#a47700}.checkout-head h2{margin:2px 0 13px;font-size:24px}.checkout-section{margin-top:10px;padding:13px;background:#fcfbf8;border:1px solid var(--line);border-radius:18px}.address{position:relative;display:flex;flex-direction:row;align-items:center;gap:10px;padding:12px;margin:7px 0;background:#fff;border:1px solid var(--line);border-radius:15px}.address input{width:auto}.address span{display:flex;flex:1;flex-direction:column}.address small{color:var(--muted);font-size:9px}.address>i{display:none;width:23px;height:23px;border-radius:50%;background:var(--primary);font-style:normal;place-items:center}.address.selected{background:var(--secondary);border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary),transparent 84%)}.address.selected>i{display:grid}.new-address-box{margin-top:8px;padding:10px;border:1px dashed #d8d0bf;border-radius:14px}.new-address-box summary{cursor:pointer;color:#936900;font-size:10px}.new-address-box button{border:0;border-radius:10px;padding:8px 11px;background:var(--secondary)}.payment-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.payment-options label{margin:0}.payment-options input{display:none}.payment-options span{height:82px;display:flex;flex-direction:column;justify-content:center;padding:11px;background:#fff;border:1px solid var(--line);border-radius:15px}.payment-options input:checked+span{background:var(--secondary);border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary),transparent 84%)}.payment-options b{font-size:11px}.payment-options small{color:var(--muted);font-size:8px}.bank{margin:12px 0;padding:20px;display:flex;flex-direction:column;color:#fff;border-radius:18px;background:radial-gradient(circle at 10% 0,#66562b,transparent 40%),linear-gradient(145deg,#1b1914,#332e23);box-shadow:0 17px 40px #17140d24}.bank>b{font-size:18px;letter-spacing:2px;direction:ltr;text-align:right}.receipt-upload{min-height:88px;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:11px;padding:12px;background:#fff;border:2px dashed #d8d0bf;border-radius:16px;cursor:pointer}.receipt-upload input{display:none}.upload-icon{width:38px;height:38px;display:grid;place-items:center;background:var(--secondary);border-radius:12px;color:#966c00;font-size:21px}.upload-copy{display:flex;flex-direction:column}.upload-copy b{font-size:10px}.upload-copy small{color:var(--muted);font-size:8px}.receipt-file{margin-top:7px;padding:9px;display:flex;align-items:center;gap:9px;background:#eaf8f0;border-radius:12px;color:#187c50}.receipt-file>span{width:25px;height:25px;display:grid;place-items:center;background:#ccefdc;border-radius:8px}.receipt-file>div{display:flex;flex-direction:column}.receipt-file small{font-size:8px}.no-address{color:var(--muted);font-size:10px}.toast{position:fixed;z-index:300;top:17px;left:50%;transform:translate(-50%,-25px);opacity:0;display:flex;align-items:center;gap:8px;padding:10px 14px;background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow-lg);font-size:10px;transition:.24s}.toast.show{opacity:1;transform:translate(-50%,0)}.toast>span{width:25px;height:25px;display:grid;place-items:center;background:#dff7e9;color:#168050;border-radius:8px}.toast.error>span{background:#fee8e6;color:#b23d34}
/* Onboarding and installer */
.onboarding{min-height:100dvh;display:grid;place-items:center;padding:23px;background:radial-gradient(circle at 5% 5%,#fff4,transparent 25%),linear-gradient(160deg,#fff 58%,var(--secondary))}.onboarding section{width:min(430px,100%)}.onboarding h1{font-size:32px;line-height:1.3;letter-spacing:-1px}.onboarding p{color:var(--muted);font-size:11px}.onboarding form,.install-card{padding:20px;background:#fff;border:1px solid var(--line);border-radius:25px;box-shadow:var(--shadow-lg)}.onboarding button,.install-card button,.admin-login button{width:100%;min-height:49px;border:0;border-radius:14px;background:var(--primary);font-weight:800}.installer,.admin-body{background:#f5f3ed}.installer main{min-height:100dvh;display:grid;place-items:center;padding:20px}.install-card{width:min(660px,100%)}.install-logo{width:64px;height:64px;display:grid;place-items:center;background:#ffbd00;border-radius:20px;font-size:23px;font-weight:900;box-shadow:0 13px 32px #a2760027}.install-card>small{color:#a07400}.install-card h1{margin:5px 0}.install-card h2{margin-top:23px;padding-bottom:8px;border-bottom:1px solid var(--line);font-size:14px}.install-card a{display:block;padding:12px;background:#ffbd00;border-radius:13px;text-align:center;color:#222;text-decoration:none}.error{padding:9px;background:#ffebe9;color:#a83a31;border-radius:10px}.webhook-result{padding:10px;background:#e5f8ed;color:#17774c;border-radius:11px}
/* Admin */
.admin-shell{min-height:100dvh;padding-bottom:88px;background:linear-gradient(145deg,#faf9f5,#f1eee7)}.admin-shell aside{position:fixed;z-index:60;right:8px;bottom:8px;left:8px;height:69px;display:flex;align-items:center;padding:5px;overflow:auto;background:#fffffff0;border:1px solid #fff;border-radius:22px;backdrop-filter:blur(18px);box-shadow:0 18px 52px #362a0a2a}.admin-brand{display:none}.admin-shell aside button{min-width:65px;height:56px;border:0;border-radius:15px;background:transparent;color:#99948a;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:2px;transition:.22s}.admin-shell aside button i{width:21px;height:21px;display:grid;place-items:center}.admin-shell aside svg{width:20px;height:20px}.admin-shell aside span{font-size:8px}.admin-shell aside button.active{background:#fff1b8;color:#805b00;transform:translateY(-3px);box-shadow:inset 0 0 0 1px #f4d25b}.admin-shell main{padding:14px 13px 95px;animation:pageIn .22s ease}@keyframes pageIn{from{opacity:0;transform:translateY(5px)}}.admin-head{margin-bottom:12px;padding:18px 20px;background:linear-gradient(135deg,#ffda4f,#ffb900);border-radius:23px;box-shadow:0 16px 42px #ad7f0020}.admin-head small{color:#765500}.admin-head h1{margin:2px 0 0;font-size:23px}.welcome-admin{min-height:150px;margin-bottom:12px;padding:22px;display:flex;align-items:center;justify-content:space-between;background:radial-gradient(circle at 10% 0,#fff8,transparent 34%),linear-gradient(135deg,#ffda4f,#ffb900);border-radius:24px;box-shadow:0 18px 46px #a77a0020}.welcome-admin small{color:#755500}.welcome-admin h2{margin:5px 0;font-size:18px}.welcome-admin p{color:#70520b;font-size:9px}.welcome-admin>b{font-size:43px;color:#fff9;transform:rotate(-8deg)}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.stat-grid article,.admin-card{padding:15px;background:#fff;border:1px solid #f0ece3;border-radius:19px;box-shadow:0 8px 28px #392d0d0a}.stat-grid article{min-height:108px;display:flex;flex-direction:column}.stat-grid article>i{width:35px;height:35px;display:grid;place-items:center;background:#fff5ce;color:#a67500;border-radius:11px}.stat-grid article svg{width:18px}.stat-grid article>span{margin-top:7px;color:var(--muted);font-size:9px}.stat-grid article>b{margin-top:auto;font-size:16px}.order-list,.product-list,.user-list{padding:8px 14px}.order-list article,.product-list article,.user-list article{min-height:70px;display:flex;align-items:center;justify-content:space-between;gap:9px;padding:10px 4px;border-bottom:1px solid #f0ece3}.order-list article:last-child,.product-list article:last-child,.user-list article:last-child{border:0}.order-list article>div,.product-list article>span,.user-list article>span{display:flex;flex-direction:column}.order-list small,.product-list small,.user-list small{color:var(--muted);font-size:8px}.order-list select{max-width:105px;padding:7px;font-size:8px}.product-list img{width:58px;height:58px;object-fit:cover;border-radius:13px}.product-list article>button,.new-btn{border:0;border-radius:11px;padding:8px 10px;background:#fff3c3;color:#876000}.new-btn{margin-bottom:10px;background:#ffbd00;color:#28200d;font-weight:700}.info{display:grid;grid-template-columns:1fr 1fr;gap:7px}.info p{margin:0;padding:10px;display:flex;flex-direction:column;background:#faf8f3;border-radius:12px}.info p:last-child{grid-column:1/-1}.info small{color:var(--muted)}.detail-row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line)}.detail-row span{display:flex;flex-direction:column}.detail-row small{color:var(--muted);font-size:8px}.totals{margin:10px 0;padding:10px;background:#faf8f3;border-radius:13px}.totals p{display:flex;justify-content:space-between}.settings-form{max-width:760px;margin:auto}.settings-form h2{margin-top:24px;padding-bottom:8px;border-bottom:1px solid var(--line);color:#795700;font-size:15px}.admin-login{min-height:100dvh;display:grid;place-items:center;padding:20px;background:linear-gradient(145deg,#ffdb55,#ffb900)}.admin-login form{width:min(390px,100%);padding:25px;background:#fff;border-radius:25px;box-shadow:0 30px 90px #76560028}.admin-login form>b{width:60px;height:60px;margin:auto;display:grid;place-items:center;background:#ffbd00;border-radius:18px}.loading{min-height:280px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:var(--muted)}.loading i{width:34px;height:34px;border:3px solid #ebe6db;border-top-color:#ffbd00;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:850px){.admin-shell{padding:12px 12px 12px 238px}.admin-shell aside{top:12px;right:12px;bottom:12px;left:auto;width:210px;height:auto;flex-direction:column;align-items:stretch;padding:18px;border-radius:24px}.admin-brand{display:flex;align-items:center;gap:10px;margin-bottom:28px}.admin-brand b{padding:10px;background:#ffbd00;border-radius:12px}.admin-shell aside button{width:100%;min-height:47px;flex:0 0 auto;flex-direction:row;justify-content:flex-start;gap:10px;padding:10px}.admin-shell aside span{font-size:11px}.admin-shell aside button.active{transform:none}.admin-shell main{max-width:1200px;padding:15px 24px 30px}.welcome-admin{min-height:175px}.welcome-admin h2{font-size:24px}.stat-grid{grid-template-columns:repeat(4,1fr)}.modal{place-items:center}.modal>div,.modal>form{max-width:650px;border-radius:26px}.product-sheet>div{max-width:520px}.checkout>div{max-width:540px}}
@media(max-width:390px){.grid{gap:9px}.product>div{height:128px}.cart-row{grid-template-columns:62px 1fr}.cart-row img{width:62px;height:62px}.cart-row .counter{grid-column:2}.payment-options,.two,.colors{grid-template-columns:1fr}.hero h1{font-size:30px}.admin-shell aside button{min-width:57px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Full-screen premium product and checkout */
.no-scroll{overflow:hidden}.product-page{position:fixed;z-index:90;inset:0;margin:auto;width:min(520px,100%);height:100dvh;overflow:auto;background:var(--bg);animation:productEnter .32s cubic-bezier(.2,.8,.2,1);padding-bottom:92px;box-shadow:0 0 80px #241b091c}@keyframes productEnter{from{opacity:.5;transform:translateX(-25px)}to{opacity:1;transform:none}}.product-cover{position:relative;height:42dvh;min-height:310px;max-height:430px;background-position:center;background-size:cover}.cover-shade{position:absolute;inset:auto 0 0;height:48%;background:linear-gradient(transparent,rgba(0,0,0,.28))}.product-back{position:absolute;z-index:3;top:max(16px,env(safe-area-inset-top));right:17px;width:43px;height:43px;border:0;border-radius:50%;background:#fffffff2;box-shadow:0 8px 25px #0002;font-size:22px;display:grid;place-items:center}.product-body{position:relative;margin-top:-26px;padding:24px 19px 20px;background:var(--bg);border-radius:28px 28px 0 0;min-height:52dvh}.product-heading>small{padding:4px 9px;background:var(--secondary);color:#946a00;border-radius:99px;font-size:9px}.product-heading h1{margin:8px 0 4px;font-size:27px;letter-spacing:-1px}.product-heading p{margin:0 0 20px;color:var(--muted);font-size:11px;line-height:2}.option-title{display:flex;align-items:end;justify-content:space-between;margin:4px 0 9px}.option-title small{color:#a17600;font-size:8px}.option-title h3{margin:1px 0;font-size:16px}.option-title>span{padding:4px 8px;background:#f1eee6;color:#898277;border-radius:99px;font-size:8px}.product-page .addon-list{background:#fff;border:0;box-shadow:0 8px 30px #3327000b}.product-page .counter-row{padding:15px 14px}.product-page .product-quantity{margin-top:13px;background:#fff;border:0;box-shadow:0 8px 30px #3327000b;padding:15px}.product-footer{position:fixed;z-index:4;bottom:0;left:50%;width:min(520px,100%);transform:translateX(-50%);padding:11px 18px calc(11px + env(safe-area-inset-bottom));background:#fffffff2;border-top:1px solid #eee9dc;backdrop-filter:blur(18px);box-shadow:0 -12px 40px #35290015}.product-footer .primary{display:flex;align-items:center;justify-content:space-between;padding-inline:18px}.product-footer .primary b{font-size:11px}
.checkout{place-items:stretch center;background:var(--bg)}.checkout>div{width:min(520px,100%);height:100dvh;max-height:none;border-radius:0;padding:20px 17px 105px;background:var(--bg)}.checkout .close{position:fixed;top:max(14px,env(safe-area-inset-top));left:max(16px,calc((100vw - 520px)/2 + 16px));z-index:5}.checkout-head{padding-top:8px}.checkout-head small{font-size:9px}.checkout-head h2{font-size:27px;letter-spacing:-1px;margin:2px 0 22px}.checkout-section{padding:16px;background:#fff;border:0;box-shadow:0 8px 30px #3327000b;border-radius:21px}.checkout-section+.checkout-section{margin-top:12px}.checkout-section>h3{margin-top:0;font-size:14px}.address{padding:14px 12px;border-radius:16px;background:#faf9f5}.address input{appearance:none;width:19px;height:19px;padding:0;border:2px solid #cfc8b8;border-radius:50%;background:#fff}.address input:checked{border:5px solid var(--primary)}.address.selected{background:#fff9df;box-shadow:inset 0 0 0 1px var(--primary)}.address>i{display:none!important}.new-address-box{background:#faf9f5;border-style:solid}.new-address-box summary{font-weight:700}.new-address-box textarea{background:#fff}.payment-options span{height:88px;border-radius:16px}.checkout .sticky-action{position:fixed;z-index:6;bottom:0;left:50%;width:min(484px,calc(100% - 36px));transform:translateX(-50%);margin:0 0 calc(12px + env(safe-area-inset-bottom));box-shadow:0 14px 38px color-mix(in srgb,var(--primary),transparent 55%)}.receipt-upload{border:1.5px dashed #cfc7b5;background:#faf9f5;transition:.2s}.receipt-upload:active{background:var(--secondary);border-color:var(--primary)}.receipt-file.uploading{background:#fff7dd;color:#8a6500}.receipt-file.uploading>span{background:#ffe49a}.receipt-file.success{background:#e9f8ef;color:#17784d}.receipt-file.failed{background:#ffebe9;color:#a93b32}.receipt-file.failed>span{background:#ffd4cf}.receipt-file small{max-width:310px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:700px){.checkout .close{left:calc(50% - 244px)}.product-page{border-radius:0}.product-cover{height:390px}}

/* Diagnostics and desktop admin correction */
.receipt-file.with-image{display:grid;grid-template-columns:52px 1fr 28px;background:#eaf8f0}.receipt-file.with-image>img{width:52px;height:52px;object-fit:cover;border-radius:10px}.receipt-file.with-image>div{min-width:0}.receipt-file.with-image>span{width:28px;height:28px}.diagnostic-link{display:block;margin:0 0 12px;padding:11px 14px;background:#fff7d7;color:#815c00;border:1px solid #f0d978;border-radius:13px;text-decoration:none;font-size:10px}.diagnostics{background:#f3f0e8}.diagnostics main{width:min(760px,100%);margin:auto;padding:25px 15px}.back-link{display:inline-block;margin-bottom:12px;color:#765500;text-decoration:none}.diagnostic-card{margin-bottom:13px;padding:20px;background:#fff;border-radius:23px;box-shadow:var(--shadow)}.diagnostic-card>span{color:#a27400;font-size:9px}.diagnostic-card h1{margin:3px 0}.diagnostic-card>p{color:var(--muted);font-size:10px}.diag-upload{min-height:90px;align-items:center;justify-content:center;border:2px dashed #d8d0be;border-radius:16px;background:#faf9f5;cursor:pointer}.diag-upload input{display:none}.diag-upload span{font-weight:700}.diag-success,.diag-error{padding:12px;border-radius:14px;margin:10px 0;display:flex;flex-direction:column;gap:5px}.diag-success{background:#e8f8ef;color:#17784d}.diag-error{background:#ffebe9;color:#a83c33}.diag-success img{width:100px;height:100px;object-fit:cover;border-radius:12px}.check-list{display:grid;grid-template-columns:1fr 1fr;gap:7px}.check-list>div{display:flex;justify-content:space-between;padding:10px;background:#faf9f5;border-radius:11px;font-size:10px}.check-list b{color:#19784e}.check-list b.bad{color:#b33b32}.diag-help{margin-top:12px;padding:12px;background:#fff7d8;border-radius:13px}.diag-help code{display:block;direction:ltr;text-align:left;margin:8px 0}.diag-help p{font-size:9px;color:#756d5e}
@media(min-width:850px){.admin-shell{padding:12px 238px 12px 12px}.admin-shell main{width:100%;max-width:1400px;margin:auto}.admin-shell aside{right:12px;left:auto}.order-list article{display:grid;grid-template-columns:minmax(180px,1fr) 150px 150px}.product-list article{display:grid;grid-template-columns:68px minmax(220px,1fr) 90px}.settings-form{max-width:900px}.diagnostic-link{max-width:900px;margin-inline:auto}}
@media(max-width:600px){.check-list{grid-template-columns:1fr}}

/* Checkout form and cart delete state */
.checkout>form{width:min(520px,100%);height:100dvh;max-height:none;overflow:auto;border-radius:0;padding:20px 17px 118px;background:var(--bg);animation:none}.counter .delete-mode{background:#fff0ee!important;color:#bc3f35!important}.counter .delete-mode svg{width:15px;height:15px}.checkout-status{position:fixed;z-index:8;right:50%;bottom:82px;width:min(484px,calc(100% - 36px));transform:translateX(50%);padding:10px 13px;border-radius:13px;text-align:center;font-size:9px;box-shadow:0 9px 25px #261c0820}.checkout-status.working{background:#fff7d8;color:#7d5a00}.checkout-status.success{background:#e6f8ed;color:#17784c}.checkout-status.failed{background:#ffebe9;color:#a73b32}.checkout form .checkout-section{position:relative}.checkout form .sticky-action{border:0}.receipt-file[hidden],.checkout-status[hidden]{display:none!important}
@media(min-width:850px){.checkout>form{max-width:540px;border-radius:0}}

/* Telegram contact onboarding and uploaded receipt state */
.contact-share{width:100%;display:flex;align-items:center;gap:12px;margin:4px 0 10px;padding:13px;border:1px solid color-mix(in srgb,var(--primary),#d6c99c 58%);border-radius:16px;background:linear-gradient(135deg,var(--secondary),#fff);color:var(--text);text-align:right;box-shadow:0 8px 22px color-mix(in srgb,var(--primary),transparent 88%)}
.contact-share>span{width:40px;height:40px;display:grid;place-items:center;flex:none;border-radius:13px;background:var(--primary);font-size:18px}
.contact-share>div{display:flex;min-width:0;flex-direction:column}.contact-share b{font-size:11px}.contact-share small{margin-top:2px;color:var(--muted);font-size:8px}.contact-share:disabled{opacity:.65}
.contact-status{margin:-2px 0 11px;padding:10px 12px;border-radius:12px;font-size:9px}.contact-status.waiting{background:#fff6d3;color:#7d5b00}.contact-status.success{background:#e5f8ed;color:#17784c}.contact-status.failed{background:#ffebe9;color:#a73b32}
.or{display:flex;align-items:center;gap:9px;margin:8px 0;color:var(--muted);font-size:8px}.or:before,.or:after{height:1px;flex:1;background:var(--line);content:""}
.receipt-upload[hidden]{display:none!important}.receipt-file.with-image{grid-template-columns:58px minmax(0,1fr) auto}.receipt-file.with-image>img{width:58px;height:58px}.receipt-file.with-image button{border:0;padding:7px 9px;border-radius:10px;background:#d6f1e1;color:#176c48;font:inherit;font-size:9px;cursor:pointer}

/* Telegram fullscreen safe areas */
.hero{padding-top:calc(59px + var(--app-safe-top))}.page{padding-top:calc(40px + var(--app-safe-top))}.onboarding{padding-top:calc(28px + var(--app-safe-top))}
.product-back{top:calc(42px + var(--app-safe-top))}.checkout>form{padding-top:calc(48px + var(--app-safe-top))}.checkout .close{top:calc(42px + var(--app-safe-top))}
.product-footer{padding-bottom:calc(11px + var(--app-safe-bottom))}.checkout .sticky-action{margin-bottom:calc(12px + var(--app-safe-bottom))}

/* Refined admin settings */
.settings-form{padding:10px;background:transparent;border:0;box-shadow:none}.setting-section{margin-bottom:12px;padding:16px;background:#fff;border:1px solid #eee8dc;border-radius:22px;box-shadow:0 10px 34px #392b0b0b}.setting-title{display:flex;align-items:center;gap:10px;margin-bottom:15px}.setting-title>span{width:38px;height:38px;display:grid;place-items:center;flex:none;border-radius:13px;background:linear-gradient(145deg,#ffe47c,var(--primary));color:#6f5000;font-size:10px;font-weight:800}.setting-title h2{margin:0;padding:0;border:0;color:var(--text);font-size:15px}.setting-title p{margin:2px 0 0;color:var(--muted);font-size:8px}.color-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.color-field{min-height:72px;margin:0;padding:10px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border:1px solid #eee9df;border-radius:16px;background:#faf9f5}.color-field>span{display:flex;min-width:0;flex-direction:column}.color-field b{font-size:10px}.color-field code{direction:ltr;color:var(--muted);font-size:8px}.color-field input[type=color]{width:42px;height:42px;flex:none;padding:3px;border:0;border-radius:13px;background:#fff;box-shadow:0 4px 14px #0001}.color-field input[type=color]::-webkit-color-swatch-wrapper{padding:0}.color-field input[type=color]::-webkit-color-swatch{border:0;border-radius:10px}.toggle-row{min-height:68px;margin:10px 0;padding:12px 13px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;border:1px solid #eee9df;border-radius:17px;background:#faf9f5;cursor:pointer}.toggle-row>span{display:flex;flex:1;flex-direction:column}.toggle-row b{color:var(--text);font-size:11px}.toggle-row small{margin-top:2px;color:var(--muted);font-size:8px}.toggle-row input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.toggle-row>i{position:relative;width:48px;height:28px;flex:none;border-radius:99px;background:#d9d5cb;box-shadow:inset 0 0 0 1px #cbc5b8;transition:.24s}.toggle-row>i:after{content:"";position:absolute;top:4px;right:4px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 3px 9px #0002;transition:.24s}.toggle-row input:checked+i{background:var(--primary);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--primary),#9a7000 25%)}.toggle-row input:checked+i:after{transform:translateX(-20px)}.toggle-row:has(input:focus-visible){box-shadow:0 0 0 4px color-mix(in srgb,var(--primary),transparent 78%)}.file-field{position:relative;padding:11px;border:1px dashed #d9d0bd;border-radius:15px;background:#fbfaf7}.file-field input{position:absolute;width:1px;height:1px;opacity:0}.file-field>span{min-height:38px;display:grid;place-items:center;border-radius:11px;background:#fff4c5;color:#805c00;font-size:9px;font-weight:700}.settings-note{margin:10px 0;padding:12px;border-radius:14px;background:#fff6d7;color:#755500;font-size:9px;line-height:1.9}.tab-setting{margin:10px 0;padding:11px;border:1px solid #eee9df;border-radius:16px;background:#faf9f5}.settings-save{position:sticky;z-index:3;bottom:82px;margin-top:8px}.receipt-file.uploading.with-image{background:#fff7d8}.receipt-file.uploading.with-image>span{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:#ffe499}.receipt-file.failed.with-image{grid-template-columns:58px minmax(0,1fr) auto}.receipt-file.failed.with-image>img{width:58px;height:58px;object-fit:cover;border-radius:12px}.receipt-file.failed.with-image button{border:0;padding:7px 9px;border-radius:10px;background:#ffd8d3;color:#9d342c;font-size:8px}
@media(max-width:390px){.color-grid{grid-template-columns:1fr}.setting-section{padding:13px}}

/* Mini App controls, upload progress, orders and profile */
.counter button,.product footer button,.new-address-box button{color:var(--text)!important;-webkit-text-fill-color:currentColor}.counter button:last-child,.product footer button{color:#332600!important}.counter button svg{stroke:currentColor}.receipt-loader{width:28px;height:28px;display:block;border:3px solid #efd77f;border-top-color:#8a6500;border-radius:50%;animation:spin .75s linear infinite}.user-orders{display:grid;gap:11px}.user-order{cursor:pointer}.user-order header{display:flex;align-items:center;justify-content:space-between}.user-order footer{display:flex;align-items:center;justify-content:space-between;margin-top:10px}.user-order footer button{border:0;padding:7px 10px;border-radius:10px;background:var(--secondary);color:#795700;font-size:8px}.status{display:inline-flex;align-items:center;justify-content:center;padding:5px 9px;border-radius:99px;background:#f1eee7;color:#6e685d;font-size:8px;font-weight:700}.status-confirmed,.status-delivered{background:#e4f7ec;color:#18764d}.status-preparing{background:#fff2c2;color:#805d00}.status-sent{background:#e6f1ff;color:#32689b}.status-rejected{background:#ffe6e2;color:#a63b31}.order-detail-modal>div{padding-top:25px;border-radius:28px 28px 0 0}.order-detail-head{padding:10px 0 18px}.order-detail-head small{color:var(--muted)}.order-detail-head h2{margin:3px 0 9px;font-size:27px}.order-detail-items{overflow:hidden;border:1px solid var(--line);border-radius:17px}.order-detail-items article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:13px;border-bottom:1px solid var(--line)}.order-detail-items article:last-child{border:0}.order-detail-items article>div{display:flex;min-width:0;flex-direction:column}.order-detail-items small{overflow:hidden;color:var(--muted);font-size:8px;text-overflow:ellipsis;white-space:nowrap}.order-detail-items article>span{font-size:9px}.order-detail-items strong{grid-column:1/-1;color:#8a6300;font-size:10px}.order-detail-info{margin-top:11px;padding:8px 13px;background:#faf8f3;border-radius:16px}.order-detail-info p{display:flex;justify-content:space-between;gap:15px;margin:0;padding:10px 0;border-bottom:1px solid #ece7dc}.order-detail-info p:last-child{border:0}.order-detail-info span{color:var(--muted);font-size:9px}.order-detail-info b{font-size:10px;text-align:left}.order-detail-info .total b{color:#8a6300;font-size:13px}.order-receipt{margin-top:11px;padding:9px;display:flex;align-items:center;gap:10px;border:1px solid #dfeee5;border-radius:15px;background:#f1fbf5;color:#19734d;text-decoration:none;font-size:9px}.order-receipt img{width:58px;height:58px;object-fit:cover;border-radius:11px}.profile-card{min-height:150px;padding:19px;display:flex;align-items:center;gap:15px;border-radius:25px;background:radial-gradient(circle at 10% 0,#fff9,transparent 35%),linear-gradient(145deg,color-mix(in srgb,var(--primary),white 24%),var(--primary));box-shadow:0 18px 45px color-mix(in srgb,var(--primary),transparent 70%)}.profile-avatar{width:78px;height:78px;display:grid;place-items:center;flex:none;overflow:hidden;border:4px solid #fff8;border-radius:26px;background:#fff;color:#8a6400;font-size:23px;font-weight:900;box-shadow:0 12px 28px #6d500025}.profile-avatar img{width:100%;height:100%;object-fit:cover}.profile-card small{color:#725500;font-size:8px}.profile-card h2{margin:3px 0;font-size:20px}.profile-card p{margin:0;color:#684f0d;font-size:10px}.profile-card em{display:block;margin-top:4px;color:#fff;font-size:9px;font-style:normal}.profile-info{margin-top:12px;padding:5px 14px;background:#fff;border-radius:19px;box-shadow:var(--shadow)}.profile-info article{padding:13px 0;display:flex;justify-content:space-between;border-bottom:1px solid var(--line)}.profile-info article:last-child{border:0}.profile-info span{color:var(--muted);font-size:9px}.profile-info b{font-size:10px}.toggle-row>i{width:54px;height:31px;padding:0;background:linear-gradient(145deg,#e6e2d9,#cec8ba);box-shadow:inset 0 1px 3px #746c5b20,0 5px 14px #33260012}.toggle-row>i:before{content:"×";position:absolute;left:9px;top:50%;transform:translateY(-52%);color:#8f887c;font-style:normal;font-size:11px;font-weight:800}.toggle-row>i:after{top:4px;right:4px;width:23px;height:23px}.toggle-row input:checked+i{background:linear-gradient(135deg,#ffdb52,var(--primary));box-shadow:inset 0 1px 2px #fff7,0 7px 18px color-mix(in srgb,var(--primary),transparent 62%)}.toggle-row input:checked+i:before{content:"✓";right:9px;left:auto;color:#6d5000}.toggle-row input:checked+i:after{transform:translateX(-23px)}
.admin-receipt{margin:14px 0;padding:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dcebe1;border-radius:17px;background:#f2fbf5}.admin-receipt>div{display:flex;flex-direction:column}.admin-receipt b{font-size:11px}.admin-receipt small{color:var(--muted);font-size:8px}.admin-receipt a{display:block;flex:none}.admin-receipt img{width:110px;height:110px;display:block;object-fit:cover;border:3px solid #fff;border-radius:15px;box-shadow:0 8px 22px #173d2520}@media(max-width:390px){.admin-receipt{align-items:flex-start;flex-direction:column}.admin-receipt a,.admin-receipt img{width:100%;height:auto;max-height:360px}}

/* Registration, store state, order state and addon editor */
.phone-confirmed{min-height:64px;margin:12px 0;padding:12px;display:flex;align-items:center;gap:11px;border:1px solid #cfe8da;border-radius:16px;background:#eef9f3;color:#176f4a}.phone-confirmed>span{width:36px;height:36px;display:grid;place-items:center;flex:none;border-radius:12px;background:#d1f0df;font-weight:900}.phone-confirmed>div{display:flex;flex-direction:column}.phone-confirmed b{font-size:10px}.phone-confirmed small{font-size:9px}.store-state.is-closed{background:#fff0ed!important;color:#a63b31!important}.user-order{border:1px solid #f0ece3;transition:.2s}.user-order:has(.status-confirmed),.user-order:has(.status-delivered){border-color:#bfe5cf;background:linear-gradient(135deg,#fff,#f1fbf5);box-shadow:0 9px 28px #176b4210}.user-order:has(.status-preparing){border-color:#f1d77b;background:linear-gradient(135deg,#fff,#fffaf0)}.user-order:has(.status-sent){border-color:#c9ddf2;background:linear-gradient(135deg,#fff,#f3f8ff)}.user-order:has(.status-rejected){border-color:#efc3bd;background:linear-gradient(135deg,#fff,#fff5f3)}.status{border:1px solid #e2ddd3}.status-confirmed,.status-delivered{border-color:#a9dcc0}.status-preparing{border-color:#efd16c}.status-sent{border-color:#bdd6ef}.status-rejected{border-color:#eab6af}.addon-editor{margin:16px 0;padding:12px;border:1px solid #ece6da;border-radius:18px;background:#faf9f5}.addon-editor-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.addon-editor-head h3{margin:0;font-size:13px}.addon-editor-head small{display:block;margin-top:2px;color:var(--muted);font-size:8px}.addon-editor-head button{flex:none;border:0;padding:8px 10px;border-radius:11px;background:var(--primary);color:#3b2d08;font-size:8px;font-weight:800}.addon-editor-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 120px 34px;align-items:end;gap:7px;margin-top:8px;padding:9px;border:1px solid #ece7dc;border-radius:15px;background:#fff}.addon-editor-row label{margin:0}.addon-editor-row input{padding:10px}.remove-addon{width:34px;height:39px;border:0;border-radius:11px;background:#ffebe8;color:#a83b32;font-size:18px}.store-open-toggle{border-color:#f0d56f;background:#fff9e6}@media(max-width:430px){.addon-editor-row{grid-template-columns:minmax(0,1fr) 95px 34px}.addon-editor-head{align-items:flex-start;flex-direction:column}.addon-editor-head button{width:100%}}
.profile-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.profile-actions button{min-height:45px;border:1px solid #eadfbd;border-radius:14px;background:#fff7d8;color:#765500;font-size:9px;font-weight:700}.profile-actions .logout-button{border-color:#f0ccc6;background:#fff0ed;color:#a43b32}.profile-addresses{margin-top:13px;padding:14px;background:#fff;border-radius:20px;box-shadow:var(--shadow)}.profile-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.profile-section-title h2{margin:0;font-size:15px}.profile-section-title small{color:var(--muted);font-size:8px}.profile-section-title button{border:0;padding:8px 10px;border-radius:11px;background:var(--primary);color:#3b2c08;font-size:8px;font-weight:800}.profile-addresses form{margin-top:12px;padding:11px;border:1px solid #eee8dc;border-radius:16px;background:#faf9f5}.profile-addresses form[hidden]{display:none}.profile-addresses form .two button:first-child{border:0;border-radius:13px;background:#eeeae1}.profile-address-list{display:grid;gap:8px;margin-top:11px}.profile-address-list article{padding:12px;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #eee9df;border-radius:15px;background:#faf9f6}.profile-address-list article>div{min-width:0}.profile-address-list b{font-size:10px}.profile-address-list p{margin:3px 0 0;color:var(--muted);font-size:8px;line-height:1.8}.delete-address{flex:none;border:0;padding:7px 9px;border-radius:10px;background:#ffebe8;color:#a63b32;font-size:8px}.empty-addresses{padding:18px;text-align:center;color:var(--muted);font-size:9px}.profile-edit-modal form>p{color:var(--muted);font-size:9px}.logged-out{min-height:100dvh;padding:calc(38px + var(--app-safe-top)) 20px 30px;display:grid;place-items:center;background:radial-gradient(circle at 50% 0,color-mix(in srgb,var(--primary),white 50%),transparent 42%),var(--bg)}.logged-out section{width:min(400px,100%);padding:25px;text-align:center;background:#fff;border-radius:27px;box-shadow:var(--shadow-lg)}.logged-out span{display:block;margin-top:16px;color:#8a6500;font-size:9px}.logged-out h1{font-size:25px;line-height:1.5}.logged-out p{color:var(--muted);font-size:10px;line-height:2}.logged-out .primary{margin-top:10px}@media(max-width:390px){.profile-actions{grid-template-columns:1fr}}

/* Product editor, multi-image gallery and no-image state */
.profile-actions.single{grid-template-columns:1fr}.product-editor-modal{place-items:stretch center}.product-editor-modal>form{width:min(760px,100%);height:100dvh;max-height:none;padding:calc(25px + var(--app-safe-top)) 16px 110px;border-radius:0;background:#f7f5ef}.product-editor-head{margin-bottom:13px;padding:18px;background:linear-gradient(135deg,#ffe477,var(--primary));border-radius:22px;box-shadow:0 15px 36px #9d720018}.product-editor-head>span{font-size:8px;color:#795800}.product-editor-head h2{margin:3px 0;font-size:22px}.product-editor-head p{margin:0;color:#70540d;font-size:9px}.product-editor-grid{display:grid;grid-template-columns:1fr;gap:11px}.product-fields,.product-media{padding:14px;background:#fff;border:1px solid #eee8dc;border-radius:20px;box-shadow:0 9px 28px #372a0a0a}.media-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:11px}.media-title h3{margin:0;font-size:14px}.media-title small{display:block;margin-top:2px;color:var(--muted);font-size:8px}.media-title>span{padding:5px 8px;border-radius:99px;background:#f3efe5;color:#837b6e;font-size:7px}.product-upload-zone{min-height:135px;margin:0;display:flex;align-items:center;justify-content:center;text-align:center;border:2px dashed #d8ceb7;border-radius:18px;background:linear-gradient(145deg,#fffdf8,#faf7ee);cursor:pointer;transition:.2s}.product-upload-zone:active{border-color:var(--primary);background:#fff8d9}.product-upload-zone input{position:absolute;width:1px;height:1px;opacity:0}.product-upload-zone i{width:45px;height:45px;display:grid;place-items:center;border-radius:15px;background:var(--primary);color:#44350d;font-size:25px;font-style:normal;box-shadow:0 8px 20px color-mix(in srgb,var(--primary),transparent 60%)}.product-upload-zone b{font-size:11px}.product-upload-zone small{color:var(--muted);font-size:8px}.product-image-previews{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.product-image-previews figure{position:relative;overflow:hidden;margin:0;aspect-ratio:1;border:2px solid #fff;border-radius:14px;background:#eee9de;box-shadow:0 5px 16px #2d220c15}.product-image-previews img{width:100%;height:100%;object-fit:cover}.product-image-previews figcaption{position:absolute;right:5px;bottom:5px;padding:3px 6px;border-radius:8px;background:#17140dbb;color:#fff;font-size:6px}.no-product-images{grid-column:1/-1;padding:20px;text-align:center;border-radius:14px;background:#f4f1e9;color:var(--muted);font-size:8px}.no-product-images.selected{background:#fff0ed;color:#a23a31}.no-image-toggle{margin-top:10px}.product-save{position:fixed;z-index:5;bottom:calc(12px + env(safe-area-inset-bottom));left:50%;width:min(728px,calc(100% - 32px));transform:translateX(-50%)}.product-no-image,.cart-no-image{display:grid;place-items:center;background:linear-gradient(145deg,#f3f0e8,#e9e4d9);color:#9b9385;font-size:8px}.product-no-image{width:58px;height:58px;border-radius:13px}.product.no-image>div{display:grid;place-items:center;background:linear-gradient(145deg,#f6f3eb,#e9e4d8);color:#9a9284;font-size:9px}.cart-no-image{width:72px;height:72px;border-radius:16px}.product-media-cover{position:relative;height:42dvh;min-height:310px;max-height:430px;background:#ece7dc}.product-gallery,.product-gallery-track,.product-gallery-slide{width:100%;height:100%}.product-gallery-track{position:relative}.product-gallery-slide{position:absolute;inset:0;opacity:0;background-position:center;background-size:cover;transition:.3s}.product-gallery-slide.active{opacity:1}.product-gallery-dots{position:absolute;z-index:4;right:50%;bottom:25px;display:flex;gap:5px;transform:translateX(50%)}.product-gallery-dots button{width:7px;height:7px;padding:0;border:0;border-radius:99px;background:#fff8;box-shadow:0 2px 8px #0002;transition:.2s}.product-gallery-dots button.active{width:22px;background:var(--primary)}.product-cover-empty{height:100%;display:grid;place-items:center;background:linear-gradient(145deg,#f4f1e9,#e4ded2);color:#978f80;font-size:12px}@media(min-width:700px){.product-editor-grid{grid-template-columns:1fr 1fr}.product-editor-modal>form{border-radius:0}}@media(max-width:390px){.product-image-previews{grid-template-columns:repeat(2,1fr)}}

/* Broadcast and Telegram bot settings */
.broadcast-form{width:min(680px,100%);margin:0 auto;padding:clamp(20px,5vw,38px);text-align:center;background:linear-gradient(155deg,#fff,#fffaf0);border:1px solid #f0e6cf;box-shadow:0 24px 60px #4d390d12}.broadcast-icon{width:76px;height:76px;margin:0 auto 15px;display:grid;place-items:center;border-radius:25px;background:linear-gradient(145deg,var(--primary),#ffe681);color:#4b3806;box-shadow:0 16px 35px color-mix(in srgb,var(--primary),transparent 58%)}.broadcast-icon svg{width:35px;height:35px}.broadcast-form h2{margin:0;font-size:23px}.broadcast-form>p{max-width:480px;margin:8px auto 22px;color:var(--muted);font-size:10px;line-height:2}.broadcast-form label{text-align:right}.broadcast-form textarea,.bot-copy-settings textarea{resize:vertical;min-height:86px;line-height:1.9}.broadcast-form .primary{margin-top:14px}.broadcast-result{margin-top:14px;padding:13px;border-radius:15px;font-size:10px;font-weight:800}.broadcast-result.success{background:#eaf9ef;color:#187641}.broadcast-result.failed{background:#fff0ee;color:#af352c}.bot-copy-settings{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px;border-radius:19px;background:#faf8f2;border:1px solid #eee7d8}.bot-copy-settings label:nth-child(5){grid-column:1/-1}@media(max-width:700px){.bot-copy-settings{grid-template-columns:1fr}.bot-copy-settings label:nth-child(5){grid-column:auto}.broadcast-form{border-radius:24px}}

/* Product row actions */
.product-row-actions{margin-inline-start:auto;display:flex;gap:7px}.product-list .product-row-actions button{min-width:62px;padding:9px 12px;border:0;border-radius:12px;font:inherit;font-size:8px;font-weight:900;cursor:pointer}.product-list .edit-product{background:#fff4bd;color:#6c5100}.product-list .delete-product{background:#fff0ee;color:#b4362c}.product-list .delete-product:disabled{opacity:.55}.empty-admin-list{padding:35px;text-align:center;color:var(--muted);font-size:10px}@media(max-width:520px){.product-list article{flex-wrap:wrap}.product-row-actions{width:100%;margin:4px 0 0}.product-list .product-row-actions button{flex:1}}

/* Daily order limits */
.daily-limit-box{padding:15px;border:1px solid #eadfca;border-radius:21px;background:linear-gradient(145deg,#fffdf8,#faf6ea)}.daily-limit-box>.toggle-row{margin:0 0 14px}.daily-limit-box>p{margin:8px 0 0;color:var(--muted);font-size:8px}.daily-limit-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}.daily-limit-grid label{position:relative;padding:9px;border:1px solid #eee5d3;border-radius:15px;background:#fff}.daily-limit-grid label>span{display:block;margin-bottom:6px;font-size:8px;font-weight:900}.daily-limit-grid input{padding-left:48px!important;text-align:center;font-size:13px!important;font-weight:900}.daily-limit-grid label>small{position:absolute;left:18px;bottom:22px;color:var(--muted);font-size:6px}@media(max-width:700px){.daily-limit-grid{grid-template-columns:repeat(2,1fr)}}

/* Premium admin status picker */
.admin-status{position:relative;min-width:145px;height:42px;display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid #e5dfd3;border-radius:15px;background:#f5f2eb;transition:.2s}.admin-status>i{width:9px;height:9px;flex:0 0 auto;border-radius:50%;background:#9a9285;box-shadow:0 0 0 4px #9a92851a}.admin-status select{position:absolute!important;inset:0!important;width:100%!important;max-width:none!important;height:100%!important;padding:0 31px 0 27px!important;border:0!important;background:transparent!important;appearance:none!important;font-size:8px!important;font-weight:900!important;cursor:pointer}.admin-status svg{width:16px;height:16px;margin-right:auto;fill:none;stroke:currentColor;stroke-width:1.8}.admin-status.status-pending{background:#fff9e8;border-color:#f0d98d;color:#765700}.admin-status.status-pending>i{background:#e3a900;box-shadow:0 0 0 4px #e3a9001c}.admin-status.status-confirmed,.admin-status.status-delivered{background:#edf9f1;border-color:#bce2ca;color:#176c42}.admin-status.status-confirmed>i,.admin-status.status-delivered>i{background:#2fa36a;box-shadow:0 0 0 4px #2fa36a1c}.admin-status.status-preparing{background:#fff4dc;border-color:#f0cf8b;color:#815500}.admin-status.status-preparing>i{background:#f29f21}.admin-status.status-sent{background:#eef6ff;border-color:#c3daf3;color:#2d669d}.admin-status.status-sent>i{background:#448ed3}.admin-status.status-rejected{background:#fff0ee;border-color:#efc1ba;color:#a53830}.admin-status.status-rejected>i{background:#dc554b}@media(max-width:700px){.order-list article{grid-template-columns:1fr auto!important}.order-list article>strong{grid-row:2}.order-list article>span{grid-row:1/3}.admin-status{min-width:128px}}

/* Customer orders */
.orders-page{padding-top:4px}.orders-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.orders-title small{display:block;color:#9a7a19;font-size:8px;font-weight:800}.orders-title h1{margin:2px 0 0;font-size:24px}.orders-title>span{width:48px;height:48px;display:grid;place-items:center;border-radius:17px;background:linear-gradient(145deg,var(--primary),#ffe57a);color:#4f3b00;box-shadow:0 12px 25px color-mix(in srgb,var(--primary),transparent 65%)}.orders-title svg{width:23px;height:23px}.user-orders{gap:14px}.user-order{position:relative;overflow:hidden;padding:16px;border-radius:22px!important;background:#fff;box-shadow:0 12px 32px #33280c0c}.user-order:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#d7d0c4}.user-order header{gap:12px}.order-code{display:flex;flex-direction:column}.order-code small{color:var(--muted);font-size:7px}.order-code b{margin-top:2px;font-size:12px}.user-order .status{gap:6px;padding:7px 10px;border:0;font-size:7px}.user-order .status i{width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 0 4px currentColor}.order-products{display:flex;flex-wrap:wrap;gap:6px;margin:15px 0 13px}.order-products>span{padding:6px 9px;border-radius:10px;background:#f7f4ed;color:#5e574c;font-size:7px}.order-products b{margin-right:5px;color:#322d24}.order-products .more-items{background:var(--secondary);color:#765700}.order-progress{display:flex;gap:5px;margin:0 0 14px}.order-progress i{height:4px;flex:1;border-radius:99px;background:#eeeae1}.order-progress i.active{background:var(--primary);box-shadow:0 2px 7px color-mix(in srgb,var(--primary),transparent 55%)}.user-order footer{padding-top:13px;border-top:1px solid #f1ede5}.user-order footer>div{display:flex;flex-direction:column}.user-order footer small{color:var(--muted);font-size:7px}.user-order footer strong{margin-top:2px;font-size:11px}.user-order footer button{display:flex;align-items:center;gap:6px;padding:9px 12px;background:#211f19;color:#fff}.user-order footer button b{font-size:16px;line-height:0}.order-state-confirmed:before,.order-state-delivered:before{background:#34a56f}.order-state-preparing:before{background:#eda41f}.order-state-sent:before{background:#468fd3}.order-state-rejected:before{background:#d85349}.orders-empty{padding:38px 20px;border-radius:24px;background:#fff;text-align:center}.orders-empty>span{font-size:34px}.orders-empty h2{margin:10px 0 3px;font-size:16px}.orders-empty p{margin:0;color:var(--muted);font-size:8px}

/* Premium onboarding and Telegram-first login */
.premium-login{min-height:100dvh;padding:calc(42px + var(--app-safe-top)) 16px 30px;display:grid;place-items:center;background:radial-gradient(circle at 80% 0,color-mix(in srgb,var(--primary),white 35%),transparent 38%),linear-gradient(180deg,#fffdf7,#f7f2e7)}.premium-login>section{position:relative;overflow:hidden;width:min(430px,100%);padding:20px;border:1px solid #eee4cf;border-radius:30px;background:#ffffffed;box-shadow:0 28px 75px #49360b18;backdrop-filter:blur(18px)}.login-glow{position:absolute;top:-90px;left:-70px;width:200px;height:200px;border-radius:50%;background:var(--primary);opacity:.13;filter:blur(10px)}.login-brand{position:relative;display:flex;align-items:center;gap:11px}.login-brand .logo{width:54px;height:54px;margin:0;display:grid;place-items:center;border-radius:18px;background:linear-gradient(145deg,var(--primary),#ffe788);box-shadow:0 12px 28px color-mix(in srgb,var(--primary),transparent 58%);font-size:20px;font-weight:950}.login-brand .logo img{width:100%;height:100%;object-fit:cover;border-radius:18px}.login-brand small{display:block;color:var(--muted);font-size:7px}.login-brand b{font-size:13px}.login-copy{position:relative;margin:23px 0 17px}.login-copy>span{display:inline-flex;padding:5px 9px;border-radius:99px;background:#fff5c8;color:#775700;font-size:7px;font-weight:900}.login-copy h1{margin:8px 0 4px;font-size:25px;line-height:1.5}.login-copy p{margin:0;color:var(--muted);font-size:9px;line-height:2}.login-names{gap:9px}.premium-login label{font-size:8px}.premium-login input{height:48px;border-color:#e9e2d5;background:#fbfaf6}.telegram-phone-priority{position:relative;margin-top:14px;padding-top:7px}.priority-badge{position:absolute;z-index:2;top:0;right:14px;padding:4px 9px;border-radius:99px;background:#191711;color:#fff;font-size:6px;font-weight:900}.premium-login .contact-share{width:100%;min-height:72px;margin:0;padding:13px;border:0;border-radius:20px;background:linear-gradient(135deg,var(--primary),#ffe57a);color:#3f3005;box-shadow:0 14px 30px color-mix(in srgb,var(--primary),transparent 65%)}.premium-login .contact-share>span{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:#fff9;font-size:18px}.premium-login .contact-share div{flex:1;text-align:right}.premium-login .contact-share b{font-size:11px}.premium-login .contact-share small{display:block;margin-top:2px;color:#6f550c;font-size:7px}.premium-login .contact-share>i{font-size:24px;font-style:normal}.manual-phone{margin-top:11px;border:1px solid #ece5d8;border-radius:17px;background:#faf8f3}.manual-phone summary{padding:13px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;font-size:8px;font-weight:900}.manual-phone summary::-webkit-details-marker{display:none}.manual-phone summary i{padding:4px 7px;border-radius:8px;background:#ede8df;color:#81796b;font-size:6px;font-style:normal}.manual-phone[open] summary{border-bottom:1px solid #eee7dc}.manual-phone>label{display:block;padding:11px}.login-submit{width:100%;height:52px;margin-top:14px;display:flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:17px;background:#201d16;color:#fff;font:inherit;font-size:10px;font-weight:900;box-shadow:0 12px 28px #201d1625}.login-submit b{font-size:20px}.login-trust{margin-top:12px;display:flex;justify-content:center;gap:14px;color:#858075;font-size:6px}.phone-confirmed{margin-top:13px}

/* Coupon management */
.coupon-list{padding:8px 14px}.coupon-list article{min-height:78px;display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:12px;padding:12px 4px;border-bottom:1px solid #eee9df}.coupon-list article:last-child{border:0}.coupon-list article>div:first-child{display:flex;flex-direction:column}.coupon-list article>div:first-child b{font-size:13px;letter-spacing:1px}.coupon-list small{color:var(--muted);font-size:8px}.coupon-state{padding:6px 10px;border-radius:99px;font-size:7px;font-weight:900}.coupon-state.active{background:#e7f7ed;color:#187144}.coupon-state.inactive{background:#f0ede7;color:#777064}.coupon-actions{display:flex;gap:6px}.coupon-actions button{padding:8px 10px;border:0;border-radius:10px;background:#fff2bd;color:#6b5000;font:inherit;font-size:7px;font-weight:900}.coupon-actions button:last-child{background:#fff0ee;color:#ad382f}.coupon-modal form{width:min(540px,calc(100% - 24px))}.coupon-form-head{display:flex;align-items:center;gap:12px;margin-bottom:16px;padding:15px;border-radius:20px;background:linear-gradient(135deg,var(--primary),#ffe886)}.coupon-form-head>span{width:48px;height:48px;display:grid;place-items:center;border-radius:16px;background:#fff9;font-size:22px;font-weight:950}.coupon-form-head small{font-size:7px}.coupon-form-head h2{margin:2px 0 0}.coupon-checkout{background:linear-gradient(145deg,#fffdf7,#fff8db)!important}.coupon-title{display:flex;align-items:center;justify-content:space-between}.coupon-title h3{margin:0}.coupon-title small{color:var(--muted);font-size:7px}.coupon-title>span{width:34px;height:34px;display:grid;place-items:center;border-radius:12px;background:var(--primary);font-weight:950}.coupon-input{display:flex;gap:8px;margin-top:12px}.coupon-input input{flex:1;text-transform:uppercase}.coupon-input button{padding:0 14px;border:0;border-radius:13px;background:#242119;color:#fff;font:inherit;font-size:8px;font-weight:900}.coupon-message{margin-top:8px;padding:9px;border-radius:11px;font-size:7px;font-weight:800}.coupon-message.success{background:#e9f8ee;color:#187344}.coupon-message.failed{background:#fff0ee;color:#a8372f}.checkout-price{margin-top:12px;padding-top:10px;border-top:1px dashed #dfd3b7}.checkout-price p{display:flex;justify-content:space-between;margin:7px 0;font-size:8px}.checkout-price .final{font-size:10px}.checkout-price #discount-row{color:#18804c}

/* Settings categories */
.settings-tabs{position:sticky;z-index:8;top:8px;display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:14px;padding:6px;border:1px solid #e9e2d5;border-radius:18px;background:#fffdf9e8;backdrop-filter:blur(16px)}.settings-tabs button{min-height:40px;padding:7px;border:0;border-radius:12px;background:transparent;color:#777064;font:inherit;font-size:7px;font-weight:900}.settings-tabs button.active{background:#211e17;color:#fff;box-shadow:0 8px 18px #211e1720}.setting-section[hidden]{display:none!important}@media(max-width:700px){.settings-tabs{grid-template-columns:repeat(2,1fr)}.coupon-list article{grid-template-columns:1fr auto}.coupon-actions{grid-column:1/-1}.coupon-actions button{flex:1}.coupon-modal form{width:100%;height:100dvh;max-height:none;border-radius:0;padding-top:calc(25px + var(--app-safe-top))}}

/* Simplified and safer Mini App order history */
.orders-page{padding-top:calc(58px + var(--app-safe-top))!important}.order-progress{display:none!important}.user-order{padding:17px!important}.user-order header{align-items:flex-start}.user-order .status{white-space:nowrap}.user-order footer{margin-top:15px!important}.user-order-modal{z-index:120;padding-top:calc(48px + var(--app-safe-top));align-items:flex-start}.user-order-modal>div{position:relative;width:min(520px,calc(100% - 24px));max-height:calc(100dvh - 70px - var(--app-safe-top));overflow:auto;padding:58px 20px 20px;border-radius:26px;background:#fff}.user-order-modal>div>.close{top:16px;right:16px;width:38px;height:38px;z-index:4}.user-order-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:4px 0 15px;border-bottom:1px solid #eee9df}.user-order-detail-head small{color:var(--muted);font-size:7px}.user-order-detail-head h2{margin:3px 0;font-size:20px}.user-order-address{margin:14px 0;padding:13px;border-radius:16px;background:#f8f5ef}.user-order-address small{color:var(--muted);font-size:7px}.user-order-address p{margin:5px 0 0;font-size:8px;line-height:2}.user-order-modal h3{font-size:12px}.user-order-items{display:grid;gap:7px}.user-order-items article{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px;border:1px solid #eee9df;border-radius:14px}.user-order-items article>div{display:flex;flex-direction:column}.user-order-items b{font-size:9px}.user-order-items small{margin-top:3px;color:var(--muted);font-size:7px}.user-order-items strong{font-size:8px}.user-order-totals{margin-top:12px;padding:13px;border-radius:16px;background:#25221b;color:#fff}.user-order-totals p{display:flex;justify-content:space-between;margin:7px 0;font-size:8px}.user-order-totals .discount{color:#85e8aa}.user-order-totals .final{margin-top:11px;padding-top:10px;border-top:1px solid #ffffff20;font-size:10px}@media(max-width:520px){.user-order-modal{padding-top:calc(58px + var(--app-safe-top))}.user-order-modal>div{width:100%;height:calc(100dvh - 58px - var(--app-safe-top));max-height:none;border-radius:24px 24px 0 0;padding:62px 16px 30px}.user-order-modal>div>.close{top:17px;right:16px}.orders-title{padding-top:8px}}
