
:root{--g:#0a8f3d;--g2:#057332;--og:#ff7a00;--ink:#1e231f;--muted:#6f786f;--line:#e7ece8;--shadow:0 12px 30px rgba(36,69,43,.10)}
*{box-sizing:border-box}
html,body{margin:0;background:#edf3ee;color:var(--ink);font-family:Arial,"Noto Sans Devanagari",sans-serif}
button,input,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}
.app{max-width:940px;margin:auto;min-height:100vh;background:#fff;box-shadow:0 20px 70px #27452d1a;position:relative}
.header{position:sticky;top:0;z-index:20;height:108px;background:#fffc;backdrop-filter:blur(14px);display:grid;grid-template-columns:52px 1fr 52px;align-items:center;padding:10px 24px;border-bottom:1px solid var(--line)}
.icon{width:44px;height:44px;border:0;border-radius:50%;background:#fff;box-shadow:0 4px 14px #0000000d;font-size:26px;position:relative}.bell b{position:absolute;right:-1px;top:-3px;background:#ef2c31;color:#fff;border-radius:50%;font-size:10px;width:18px;height:18px;display:grid;place-items:center}
.brand{text-align:center}.brand-title{font-size:42px;font-weight:800;color:var(--g)}.brand-title span{color:var(--og)}.brand small{color:#566058}
main{padding:18px 18px 115px}
.card{border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);padding:18px;background:#fff;margin-bottom:16px}
.pref-card{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;background:linear-gradient(90deg,#fbfff9,#fffaf3)}
.pref{text-align:center;padding:10px;border-right:1px solid #e5ebe5}.pref:last-child{border:0}.pref b{display:block}.pref small{color:var(--muted)}.pref button{border:1px solid #cee4d3;color:var(--g2);background:#eff9f1;padding:10px 15px;border-radius:14px;font-weight:700}
.searchbar{display:flex;gap:8px;border:1px solid #dfe6df;border-radius:999px;padding:7px 8px 7px 16px;margin:14px 0 18px;box-shadow:0 7px 20px #0000000a}.searchbar input{flex:1;border:0;outline:0;background:transparent;padding:10px}.searchbar button{width:46px;height:46px;border:0;border-radius:50%;background:var(--g);color:#fff;font-size:20px}
.section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.section-title h2{margin:0;font-size:24px}.section-title button{border:1px solid #d7eadb;background:#f2faf2;color:var(--g2);border-radius:14px;padding:10px 13px;font-weight:700}
.menu-scroll{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(190px,1fr);gap:12px;overflow:auto;scroll-snap-type:x mandatory}.menu-scroll::-webkit-scrollbar{display:none}
.recipe{border:1px solid var(--line);border-radius:18px;overflow:hidden;position:relative;background:#fff;scroll-snap-align:start}.recipe img{width:100%;height:155px;object-fit:cover;display:block}.recipe-body{padding:11px}.recipe h3{margin:0 0 5px;font-size:16px}.recipe p{margin:0;color:var(--muted);font-size:12px}.tag{position:absolute;top:8px;left:8px;background:#fffffff2;border-radius:10px;padding:5px 8px;font-size:12px;font-weight:700}.fav{position:absolute;right:8px;bottom:8px;width:34px;height:34px;border:0;border-radius:50%;background:#fff;box-shadow:0 4px 14px #0001}.fav.on{color:#e6294b}
.tip{margin-top:12px;background:#f5faef;border-radius:14px;padding:12px;color:#4d654f}
.ingredient-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.ing{border:1px solid var(--line);border-radius:16px;background:#fafdf9;padding:12px 8px;text-align:center;position:relative}.ing.on{background:#eef9ee;outline:2px solid #c5e2ca}.ing i{font-style:normal;font-size:30px;display:block}.ing b{font-size:13px}.tick{position:absolute;right:5px;top:5px;background:var(--g);color:#fff;width:18px;height:18px;border-radius:50%;font-size:10px;display:grid;place-items:center}
.quick-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.quick{padding:15px 10px;border-radius:18px;text-align:center;border:1px solid #eee}.quick:nth-child(1){background:#fff3d8}.quick:nth-child(2){background:#eef9e9}.quick:nth-child(3){background:#eaf5ff}.quick:nth-child(4){background:#f2edff}.quick:nth-child(5){background:#ffedf0}.quick i{display:block;font-style:normal;font-size:30px}.quick b{font-size:14px}.quick small{display:block;color:#626b63}
.recipe-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.hero{background:linear-gradient(135deg,#eff9ed,#fff5e7);border-radius:26px;padding:24px;display:grid;grid-template-columns:1.2fr .8fr;align-items:center;margin-bottom:16px}.hero h1{font-size:34px;margin:0 0 6px}.hero p{color:#566057}.hero .art{font-size:90px;text-align:center}
.chips{display:flex;gap:8px;overflow:auto}.chip{white-space:nowrap;border:1px solid #dfe7df;background:#fff;border-radius:999px;padding:9px 14px}.chip.on{background:var(--g);color:#fff}
.primary{border:0;border-radius:14px;background:var(--g);color:#fff;padding:12px 16px;font-weight:800}
.form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:flex;flex-direction:column;gap:6px}.field input,.field select{border:1px solid #dce5dd;border-radius:14px;padding:12px}
.plan-list{display:grid;gap:10px}.plan-row{display:grid;grid-template-columns:90px 1fr 40px;gap:10px;align-items:center;border:1px solid var(--line);border-radius:16px;padding:12px}.plan-row b{color:var(--g2)}.plan-row button{border:0;border-radius:10px;padding:8px}
.profile{text-align:center}.avatar{width:76px;height:76px;border-radius:50%;background:#eaf6ec;display:grid;place-items:center;margin:0 auto 10px;font-size:34px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.stat{background:#f7faf7;border-radius:16px;padding:14px;text-align:center}.stat b{display:block;color:var(--g);font-size:22px}
.bottom-nav{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(940px,100%);height:82px;background:#fffc;backdrop-filter:blur(10px);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);z-index:30}.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#626b64;font-size:12px}.bottom-nav i{font-style:normal;font-size:24px}.bottom-nav a.active{color:var(--g)}.bottom-nav .add i{width:50px;height:50px;border-radius:50%;background:var(--g);color:#fff;display:grid;place-items:center;margin-top:-24px;box-shadow:0 8px 20px #0a8f3d55}
.drawer{position:fixed;top:0;left:0;width:300px;height:100vh;background:#fff;z-index:60;padding:20px;transform:translateX(-105%);transition:.2s;box-shadow:10px 0 30px #0002}.drawer.open{transform:none}.drawer>div{display:flex;justify-content:space-between;align-items:center;font-size:20px;margin-bottom:20px}.drawer button{border:0;background:transparent}.drawer a{display:block;padding:13px 8px;border-bottom:1px solid var(--line)}
.scrim{position:fixed;inset:0;background:#0005;display:none;z-index:50}.scrim.show{display:block}.toast{position:fixed;left:50%;bottom:100px;transform:translateX(-50%);background:#16251a;color:#fff;padding:10px 15px;border-radius:12px;display:none;z-index:70}.toast.show{display:block}
@media(max-width:720px){
 .header{height:98px;padding:8px 12px;grid-template-columns:45px 1fr 45px}.brand-title{font-size:32px}.brand small{font-size:12px}
 main{padding:12px 10px 110px}.pref-card{grid-template-columns:repeat(2,1fr)}.menu-scroll{grid-auto-columns:44%}.recipe-grid{grid-template-columns:repeat(2,1fr)}.recipe img{height:130px}.ingredient-grid{grid-template-columns:repeat(3,1fr)}.quick-grid{grid-template-columns:repeat(2,1fr)}.quick:last-child{grid-column:1/-1}.hero{grid-template-columns:1fr}.hero .art{display:none}.hero h1{font-size:28px}.form{grid-template-columns:1fr}
}

/* Premium V3 — approved 9:16 reference fidelity */
@media(max-width:720px){
  .header{height:92px;padding:6px 16px;grid-template-columns:44px 1fr 44px}
  .icon{width:40px;height:40px;font-size:24px;box-shadow:none}
  .brand-title{font-size:29px;line-height:1.05}
  .brand small{font-size:11px;display:block;margin-top:6px}
  main{padding:10px 16px 108px}
  .card{padding:12px;border-radius:20px;margin-bottom:12px;box-shadow:0 7px 22px rgba(36,69,43,.07)}
  .pref-card{grid-template-columns:1fr 1fr 1fr .8fr;padding:6px 5px;gap:0;border-radius:18px}
  .pref{padding:8px 4px;border-right:1px solid #e5ebe5;border-bottom:0!important;min-width:0}
  .pref b{font-size:12px;white-space:nowrap}.pref small{font-size:10px;white-space:nowrap}
  .pref button{font-size:11px;padding:8px 7px;white-space:nowrap}
  .searchbar{margin:10px 0 13px;padding:4px 5px 4px 13px}.searchbar input{font-size:13px;padding:8px}.searchbar button{width:39px;height:39px}
  .section-title{margin-bottom:10px}.section-title h2{font-size:20px}.section-title button{font-size:11px;padding:8px 9px}
  .menu-scroll{grid-auto-columns:calc((100% - 21px)/4);gap:7px;overflow-x:auto}
  .recipe{border-radius:14px}.recipe img{height:112px}.recipe-body{padding:8px 7px 10px}.recipe h3{font-size:12px;line-height:1.28;min-height:31px}.recipe p{font-size:9px;white-space:nowrap}.tag{font-size:9px;padding:4px 6px;top:5px;left:5px}.fav{width:27px;height:27px;font-size:14px;right:5px;bottom:5px}
  .tip{font-size:11px;margin-top:9px;padding:9px 10px}
  .ingredient-grid{grid-template-columns:repeat(6,1fr);gap:6px}.ing{padding:8px 3px;border-radius:13px;min-width:0}.ing i{font-size:23px}.ing b{font-size:10px}.tick{width:15px;height:15px;font-size:8px;right:3px;top:3px}
  .quick-grid{grid-template-columns:repeat(5,1fr);gap:6px}.quick:last-child{grid-column:auto}.quick{padding:10px 3px;border-radius:14px;min-width:0}.quick i{font-size:22px}.quick b{display:block;font-size:10px;line-height:1.25}.quick small{font-size:8px;line-height:1.2}
  .recipe-grid{grid-template-columns:repeat(4,1fr);gap:7px}.recipe-grid .recipe img{height:92px}.recipe-grid .recipe h3{font-size:11px;min-height:auto}.recipe-grid .recipe p{font-size:8px}
  .bottom-nav{height:74px}.bottom-nav i{font-size:21px}.bottom-nav a{font-size:10px}.bottom-nav .add i{width:45px;height:45px;margin-top:-20px}
}
@media(max-width:430px){
  main{padding-left:9px;padding-right:9px}
  .menu-scroll{grid-auto-columns:calc((100% - 15px)/4);gap:5px}
  .recipe img{height:88px}.recipe h3{font-size:10px}.recipe p{font-size:8px}
  .pref b{font-size:10px}.pref small{font-size:8px}.pref button{font-size:9px;padding:7px 4px}
  .section-title h2{font-size:18px}.section-title button{font-size:9px}
  .ingredient-grid,.quick-grid{gap:4px}.ing b,.quick b{font-size:9px}.quick small{font-size:7px}
}
