/* Green Growers Farmer App — colours and type from the website and banner. */
@font-face{font-family:"Hind Siliguri";font-weight:400;font-display:swap;src:url(fonts/hind-siliguri-bengali-400-normal.woff2) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0980-09FE,U+1CD0-1CF9,U+200C-200D,U+20B9,U+25CC,U+A8F1}
@font-face{font-family:"Hind Siliguri";font-weight:600;font-display:swap;src:url(fonts/hind-siliguri-bengali-600-normal.woff2) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0980-09FE,U+1CD0-1CF9,U+200C-200D,U+20B9,U+25CC,U+A8F1}
@font-face{font-family:"Hind Siliguri";font-weight:700;font-display:swap;src:url(fonts/hind-siliguri-bengali-700-normal.woff2) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0980-09FE,U+1CD0-1CF9,U+200C-200D,U+20B9,U+25CC,U+A8F1}
@font-face{font-family:"Hind Siliguri";font-weight:400;font-display:swap;src:url(fonts/hind-siliguri-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Hind Siliguri";font-weight:600;font-display:swap;src:url(fonts/hind-siliguri-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Hind Siliguri";font-weight:700;font-display:swap;src:url(fonts/hind-siliguri-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
  --green:#185428; --green-dark:#0F3A1B; --gold:#D4AF37; --gold-soft:#F6ECC8; --gold-ink:#6A5100;
  --tomato:#C8361E; --tomato-dark:#9E2A17; --tomato-soft:#FBE4DF;
  --cream:#FCF4DE; --bg:#F5F8F4; --soft:#E9F0EA; --line:#D3DED5; --field:#C9D6CC;
  --ink:#1A252C; --muted:#4E5D5C; --white:#FFFFFF;
  --font:"Hind Siliguri","Noto Sans Bengali","Nirmala UI","Kalpurush",system-ui,sans-serif;
  color-scheme:light;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{background:var(--bg);color:var(--ink);font-family:var(--font);font-size:17px;line-height:1.6;-webkit-tap-highlight-color:transparent}
#app{max-width:520px;margin:0 auto;min-height:100%;display:flex;flex-direction:column;background:var(--bg);position:relative}
img{max-width:100%}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
[hidden]{display:none!important}
.boot{flex:1;display:flex;align-items:center;justify-content:center;min-height:100vh}

/* Welcome — banner style */
.welcome{flex:1;display:flex;flex-direction:column;background:var(--green);padding:calc(10px + env(safe-area-inset-top,0px)) 10px calc(10px + env(safe-area-inset-bottom,0px));min-height:100vh}
.welcome .f1{flex:1;display:flex;border:2px solid var(--cream);padding:4px}
.welcome .f2{flex:1;display:flex;border:1px solid var(--tomato);padding:7px}
.welcome .panel{flex:1;background:var(--cream);border-radius:26px;padding:10px 20px 16px;display:flex;flex-direction:column;align-items:center;gap:10px;position:relative}
.welcome .art{width:auto;max-width:100%;height:min(52vh,440px);object-fit:contain;margin-bottom:14px}
.welcome .lead{margin:0;font-size:18px;font-weight:600;text-align:center;max-width:320px;line-height:1.55}
.welcome .free{margin:0;font-size:14px;font-weight:600;color:var(--green);text-align:center}
.welcome .rule{width:120px;height:1px;background:var(--tomato)}
.welcome .url{font-size:14px;font-weight:700;color:var(--green)}
.lang-toggle{display:flex;border:1px solid var(--green);border-radius:999px;overflow:hidden;font-size:13px;font-weight:600}
.lang-toggle button{border:0;padding:4px 14px;min-height:36px;background:transparent;color:var(--green)}
.lang-toggle button[aria-pressed="true"]{background:var(--green);color:var(--white)}
.welcome .lang-toggle{position:absolute;top:12px;right:14px}

/* Buttons */
.btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:58px;border:0;border-radius:16px;font-size:20px;font-weight:700;text-decoration:none;text-align:center;padding:8px 16px}
.btn-green{background:var(--green);color:var(--white);box-shadow:0 5px 0 var(--green-dark)}
.btn-red{background:var(--tomato);color:var(--white);box-shadow:0 5px 0 var(--tomato-dark)}
.btn-outline{background:var(--white);color:var(--green);border:2px solid var(--green);min-height:52px;font-size:17px}
.btn:active{transform:translateY(3px);box-shadow:none}
.btn[disabled]{opacity:.55;cursor:not-allowed}
.link-btn{border:0;background:transparent;color:var(--green);font-weight:600;min-height:44px;display:inline-flex;align-items:center;gap:8px;padding:0 10px}

/* Header bars */
.logo-bar{background:var(--cream);padding:calc(8px + env(safe-area-inset-top,0px)) 14px 8px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.logo-bar img{width:190px;height:auto}
.logo-bar .lang-toggle{font-size:12px}
.title-bar{background:var(--green);color:var(--white);padding:6px 10px;border-top:2px solid var(--tomato);border-bottom:3px solid var(--gold);display:flex;align-items:center;gap:6px;position:sticky;top:0;z-index:5}
.title-bar h1{margin:0;font-size:19px;font-weight:700;line-height:1.3}
.back{width:44px;height:44px;border:0;background:transparent;display:flex;align-items:center;justify-content:center;color:var(--white)}
.hello{background:var(--green);color:var(--white);padding:12px 20px 16px;border-top:2px solid var(--tomato);border-bottom:3px solid var(--gold)}
.hello .small{margin:0;font-size:14px;color:#CFE3D8}
.hello .name{margin:0;font-size:23px;font-weight:700;line-height:1.3}

/* Layout */
.page{flex:1;padding:18px 18px calc(96px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:16px}
.page.no-nav{padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}
.card{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
.note{font-size:14px;color:var(--muted);line-height:1.55;margin:0}
.center{text-align:center}
h2{margin:0;font-size:19px;color:var(--green);line-height:1.35}
h3{margin:0;font-size:17px;line-height:1.35}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.spacer{flex:1}

/* Forms */
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field label,.label{font-size:15px;font-weight:600}
.input,select.input,textarea.input{width:100%;min-height:52px;padding:0 14px;border:1px solid var(--field);border-radius:12px;background:var(--white);font-size:17px}
textarea.input{padding:10px 14px;min-height:84px;resize:vertical}
.phone{display:flex;gap:8px}
.phone .cc{min-height:52px;padding:0 12px;display:flex;align-items:center;border:1px solid var(--field);border-radius:12px;background:var(--soft);font-weight:700}
.otp{letter-spacing:.5em;text-align:center;font-size:26px;font-weight:700}
.check{display:flex;gap:12px;align-items:flex-start;font-size:15px;line-height:1.55;background:var(--white);border:1px solid var(--line);border-radius:12px;padding:12px}
.check input{width:22px;height:22px;margin:2px 0 0;accent-color:var(--green);flex-shrink:0}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{border:2px solid var(--field);background:var(--white);color:var(--ink);border-radius:999px;padding:5px 15px;min-height:44px;font-size:16px;font-weight:600}
.chip[aria-pressed="true"]{border-color:var(--green);background:var(--green);color:var(--white)}
.seg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}

/* Home */
.scan-cta{border:0;border-radius:20px;background:var(--tomato);color:var(--white);padding:20px;display:flex;align-items:center;gap:16px;text-align:left;box-shadow:0 6px 0 var(--tomato-dark);width:100%}
.scan-cta .ic{width:64px;height:64px;border-radius:16px;background:rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.scan-cta .t1{display:block;font-size:22px;font-weight:700;line-height:1.3}
.scan-cta .t2{display:block;font-size:14px;color:#FFE3DC}
.left-pill{display:flex;align-items:center;justify-content:space-between;background:var(--white);border:1px solid var(--line);border-radius:12px;padding:10px 14px;font-size:15px}
.pill{font-weight:700;color:var(--green);background:var(--gold-soft);border-radius:999px;padding:2px 12px;font-size:14px}
.tile{border:1px solid var(--line);border-radius:16px;background:var(--white);color:var(--ink);padding:14px;display:flex;flex-direction:column;gap:8px;min-height:100px;text-align:left;font-size:16px;font-weight:600;line-height:1.35}
.tip{background:var(--gold-soft);border-radius:14px;padding:12px 14px;display:flex;gap:10px;align-items:flex-start;font-size:15px;line-height:1.55}

/* Bottom nav */
.nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:520px;background:var(--white);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:6px 4px calc(8px + env(safe-area-inset-bottom,0px));z-index:10}
.nav button{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:1px;font-size:13px;color:var(--muted);min-height:48px}
.nav button[aria-current="page"]{color:var(--green);font-weight:700}

/* Scan */
.photo-box{position:relative;height:230px;border-radius:18px;background:var(--soft);border:2px dashed #9DB5A6;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:var(--green);overflow:hidden}
.photo-box img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.photo-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.warn{background:var(--tomato-soft);color:#5A1A0E;border-radius:12px;padding:12px 14px;font-size:15px;line-height:1.55}
.ok-box{background:var(--soft);border-radius:12px;padding:12px 14px;font-size:15px}
.loading{display:flex;flex-direction:column;align-items:center;gap:16px;padding:40px 10px;text-align:center}
.spinner{width:56px;height:56px;border-radius:50%;border:6px solid var(--soft);border-top-color:var(--green);animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spinner{animation-duration:3s}}

/* Result */
.res-head{display:flex;gap:14px;align-items:center}
.thumb{width:76px;height:76px;border-radius:12px;object-fit:cover;background:var(--soft);flex-shrink:0}
.res-name{font-size:22px;font-weight:700;line-height:1.3;color:var(--green)}
.conf{font-size:13px;font-weight:700;border-radius:999px;padding:3px 12px;background:var(--gold-soft);color:var(--gold-ink)}
.conf.low{background:var(--tomato-soft);color:var(--tomato-dark)}
.list{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:6px}
.side{display:flex;gap:12px;align-items:flex-start}
.gg-box{background:var(--gold-soft);border-radius:14px;padding:14px;display:flex;gap:12px;align-items:flex-start}
.gg-box img{width:52px;background:var(--white);border-radius:10px;padding:4px 6px;flex-shrink:0}
.brand{border-top:1px solid var(--line);padding-top:8px}
.brand:first-of-type{border-top:0;padding-top:0}
.course{background:var(--soft);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:6px}
.disclaimer{font-size:12px;color:var(--muted);text-align:center;line-height:1.6;margin:0}
.callnum{user-select:all;font-weight:700}

/* Board & lists */
.tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;background:var(--soft);border-radius:14px;padding:4px}
.tabs button{border:0;border-radius:10px;min-height:44px;background:transparent;font-weight:600;font-size:15px;color:var(--muted)}
.tabs button[aria-selected="true"]{background:var(--white);color:var(--green);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.item{background:var(--white);border:1px solid var(--line);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:6px}
.item .top{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.item .big{font-size:18px;font-weight:700}
.meta{font-size:14px;color:var(--muted)}
.bar{height:12px;border-radius:6px;background:var(--soft)}
.bar > span{display:block;height:12px;border-radius:6px;background:var(--green)}
.bar.hot > span{background:var(--tomato)}
.empty{color:var(--muted);text-align:center;padding:24px 8px}

#toast{position:fixed;left:50%;bottom:calc(92px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--ink);color:var(--white);padding:10px 18px;border-radius:12px;font-size:15px;max-width:min(92vw,480px);z-index:50;box-shadow:0 6px 20px rgba(0,0,0,.2)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
