/* ENTEBHOOMI — Brand Portal: header, bottom tabs, Delivery + Logo/GST/Bank screens.
   Sizing/spacing follows the Account page "Refer & Earn" rows (compact: 40px icon tiles, 14px radius, ~1.05rem titles,
   .84rem helper text, 12-14px gaps) so both pages feel like one app. Colours stay green. */
body{--bg:#fff;background:#fff!important;font-family:'Inter','Work Sans',system-ui,sans-serif}
/* ---- header ---- */
body header{background:#fff!important;color:#14231a!important;border-bottom:1px solid #e8efe6!important;box-shadow:none!important}
body header .bar{padding:10px 14px;gap:10px;min-height:0}
body header .back{flex:none;width:42px;height:42px;min-height:0;padding:0;justify-content:center;border-radius:14px;background:#f1f3f2;color:#14231a}
body header .back svg{width:20px;height:20px}
body header h1{flex:1;min-width:0;display:flex;flex-direction:column-reverse;font:800 1.15rem/1.15 'Inter',sans-serif!important;color:#0e1a12!important;letter-spacing:-.01em}
body header h1 small{display:block!important;margin:0 0 2px;font:700 .62rem/1.2 'Inter',sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#4b5a50!important}
body header #who{display:none}
body header button{flex:none;gap:6px;width:auto;min-height:40px;padding:0 14px;border:1.4px solid #3f9a4a!important;border-radius:999px;background:#fff!important;color:#0f6b1b!important;font:700 .85rem 'Inter',sans-serif;box-shadow:none}
body header button svg{width:18px;height:18px}
/* ---- page + cards ---- */
main{padding-bottom:96px}
body .card.bp-card{border:1.2px solid #e3ece1;border-radius:16px;padding:14px;margin:0 0 12px;background:#fff;box-shadow:0 6px 18px -14px rgba(16,60,24,.35)}
.bp-page-head{display:flex;align-items:center;gap:12px;padding:4px 2px 12px;position:relative}
.bp-page-head h2{margin:0;font:800 1.25rem/1.15 'Inter',sans-serif;letter-spacing:-.02em;color:#0e1a12}
.bp-page-head p{margin:3px 0 0;color:#4b5a50;font-size:.84rem;line-height:1.35}
.bp-pic{flex:none;width:48px;height:48px;border-radius:14px;background:#e4f4df;color:#17761f;display:grid;place-items:center}
.bp-pic svg{width:26px;height:26px}
.bp-brandcard{display:flex;align-items:center;gap:12px;padding:10px 12px;margin:0 0 12px;border:1.2px solid #e3ece1;border-radius:14px;background:#fff}
.bp-brandcard b{flex:1;min-width:0;font-size:1.05rem;font-weight:800;color:#0e1a12;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bp-bic{flex:none;width:40px;height:40px;border-radius:12px;background:#e4f4df;color:#17761f;display:grid;place-items:center}.bp-bic svg{width:22px;height:22px}
.bp-chip{display:inline-block;flex:none;padding:5px 12px;border-radius:999px;background:#d8efd1;color:#0f6b1b;font-weight:700;font-size:.8rem}.bp-chip.warn{background:#fdf1d6;color:#8a5a00}
.bp-ch{display:flex;align-items:center;gap:10px;margin:0 0 12px}
.bp-ch h3{flex:1;min-width:0;margin:0!important;font:800 1.05rem/1.2 'Inter',sans-serif!important;color:#0e1a12!important}
.bp-ch.bp-chtop{align-items:flex-start}.bp-ch.bp-chtop h3{font-size:1.05rem!important}.bp-ch.bp-chtop p{margin:3px 0 0;color:#4b5a50;font-size:.84rem;line-height:1.4}
.bp-h{flex:none;color:#17761f;display:grid;place-items:center}.bp-h svg{width:22px;height:22px}
.bp-h.big{width:40px;height:40px;border-radius:12px;background:#e4f4df}.bp-h.big svg{width:22px;height:22px}
.bp-i{flex:none;color:#4b5a50;display:grid;place-items:center}.bp-i svg{width:20px;height:20px}
/* scope options */
body .opts{gap:10px;margin:0}
body .opt{align-items:center;gap:10px;padding:10px 12px;border:1.4px solid #dfe8dc;border-radius:14px;background:#fff}
body .opt.on{border-color:#2e9a3b;background:linear-gradient(180deg,#eef9ea,#e6f5e1);box-shadow:none}
body .opt input{flex:none;width:20px;height:20px;min-height:0;margin:0;accent-color:#0f6b1b}
.bp-optic{flex:none!important;width:40px;height:40px;border-radius:12px;background:#d8efd1;color:#17761f;display:grid;place-items:center}.bp-optic svg{width:21px;height:21px}
.bp-opttx{flex:1;min-width:0}.bp-opttx b{font-size:.98rem;font-weight:800;color:#0e1a12;margin-bottom:2px}.bp-opttx .muted{font-size:.8rem;line-height:1.4;color:#4b5a50}
/* inputs */
.bp-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
body main label{display:block;margin:0 0 5px;font:700 .8rem 'Inter',sans-serif;color:#1d2c22}
.bp-inp{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;border:1.4px solid #dbe5d8;border-radius:12px;background:#f7faf6}
.bp-inp span{flex:none;color:#6c7a70;display:grid}.bp-inp svg{width:20px;height:20px}
body main .bp-inp input{flex:1;min-width:0;border:0!important;background:transparent!important;box-shadow:none!important;outline:0;padding:0!important;min-height:0!important;font:600 .95rem 'Inter',sans-serif;color:#0e1a12}
.bp-lead{display:flex;gap:10px;align-items:flex-start;margin-top:12px;padding-top:12px;border-top:1px solid #e8efe6}
.bp-lead .bp-h svg{width:22px;height:22px}.bp-leadf{flex:1;min-width:0}
.bp-step{display:flex;align-items:center;gap:6px;min-height:44px;padding:0 6px 0 12px;border:1.4px solid #dbe5d8;border-radius:12px;background:#fff}
body main .bp-step input{flex:1;min-width:0;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;min-height:0!important;font:700 1rem 'Inter',sans-serif;width:auto}
.bp-sb{flex:none;width:36px;height:32px;min-height:0!important;padding:0;border:0!important;border-radius:10px;background:#eef1ed!important;color:#14231a!important;box-shadow:0 1px 2px rgba(0,0,0,.12)}.bp-sb svg{width:18px;height:18px}
/* collapsible */
.bp-acc{border:1.2px solid #e3ece1;border-radius:14px;background:#fff;padding:0 14px;margin:0 0 12px;box-shadow:0 6px 18px -16px rgba(16,60,24,.35)}
.bp-acc summary{list-style:none;display:flex;align-items:center;gap:10px;padding:12px 0;cursor:pointer}.bp-acc summary::-webkit-details-marker{display:none}
.bp-acc summary b{font-weight:800;font-size:.98rem;color:#0e1a12}.bp-acc summary .muted{font-size:.8rem}.bp-chv{margin-left:auto;display:grid}.bp-chv svg{width:20px;height:20px;transition:transform .2s}.bp-acc[open] .bp-chv svg{transform:rotate(180deg)}
.bp-acc>.frbox,.bp-acc>p{margin-bottom:12px}
/* buttons */
.bp-save,.bp-pillbtn{display:flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:999px;background:linear-gradient(180deg,#12761f,#0d5f19);color:#fff;font:700 1rem 'Inter',sans-serif;box-shadow:0 8px 16px -10px rgba(13,95,25,.85)}
.bp-save{width:100%;min-height:48px;margin:12px 0 6px}.bp-save svg{width:22px;height:22px}
.bp-pillbtn{width:auto;min-height:42px;padding:0 18px;font-size:.92rem}.bp-pillbtn svg{width:20px;height:20px}
.bp-outbtn{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;margin-top:10px;padding:0 14px;border:1.4px solid #3f9a4a!important;border-radius:999px;background:#fff!important;color:#0f6b1b!important;font:700 .95rem 'Inter',sans-serif;box-shadow:none}
.bp-outbtn b{flex:1;text-align:left;font-weight:800}.bp-obi svg{width:22px;height:22px}.bp-obr svg{width:18px;height:18px}
.bp-opt,.bp-bsum{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:#eaf6e6}
.bp-opt b{display:block;color:#0f6b1b;font-size:.98rem}.bp-opt span:not(.bp-optic),.bp-bsum span{color:#44564a;font-size:.84rem;line-height:1.4}.bp-opt .bp-optic{background:transparent;width:32px;height:32px}
.bp-bsum div{flex:1;min-width:0}.bp-bsum b{display:block;font-weight:800;color:#0e1a12}.bp-bsum span:not(.bp-chip):not(.bp-bsic){display:block}
.bp-bsic{width:38px;height:38px;border-radius:12px;background:#fff;color:#17761f;display:grid;place-items:center}.bp-bsic svg{width:22px;height:22px}
/* logo row + file input */
.bp-logorow{display:flex;gap:12px;align-items:center}
body .logo-box{flex:none;width:72px;height:72px;border-radius:16px;border:1.4px solid #dfe8dc;font-size:2rem;color:#0f6b1b}
body .logo-box img{padding:6px}
.bp-logoact{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px;align-items:stretch}
.bp-logoact input[type=file]{width:100%;max-width:100%;min-height:0;font-size:.8rem;color:#4b5a50;border:1.4px solid #dbe5d8;border-radius:12px;background:#f7faf6;padding:4px;box-sizing:border-box}
.bp-logoact input[type=file]::file-selector-button{margin-right:8px;padding:7px 12px;border:1.4px solid #cfdccb;border-radius:9px;background:#fff;color:#14231a;font:700 .8rem 'Inter',sans-serif;cursor:pointer}
.bp-logoact .bp-pillbtn{align-self:flex-start}
/* GST fields */
#t-profile .grid{grid-template-columns:1fr 1fr;gap:10px;margin:10px 0 0}
#t-profile select,#t-profile .grid input{width:100%;min-height:44px;padding:0 12px;border:1.4px solid #dbe5d8;border-radius:12px;background:#f7faf6;font:600 .92rem 'Inter',sans-serif;color:#0e1a12;box-sizing:border-box}
#t-profile .grid label .muted{display:block;font-weight:500;font-size:.74rem;color:#5b695f}
/* bank page: green */
.bf-page.bf-green,.bf-page.bf-green .bf{--bf-a:#12701f;--bf-a2:#0b4f14;--bf-tint:#f3faf1;--bf-tint2:#e0f2dc;--bf-line:#cfe6c9}
.bf-page.bf-green{background:linear-gradient(180deg,#eef8ea,#fff 40%)!important;z-index:3000}
.bf-page.bf-green .bf-page-head:before{background:radial-gradient(circle at 40% 40%,rgba(120,200,110,.45),transparent 70%)}
.bf-page.bf-green .bf-page-art{background:linear-gradient(135deg,#17761f,#0b4f14)}
.bf-page.bf-green .bf-btn{box-shadow:0 12px 22px -10px rgba(13,95,25,.7)}
/* quantity-tier rows (Delivery): inputs share the width, the remove button stays small */
#t-delivery .frbox .row>button.bad{flex:none;width:38px;min-height:42px;padding:0;border-radius:10px}
#t-delivery .frbox .row>input{flex:1 1 0;min-width:0}
#t-delivery .frbox .row>button.ghost{flex:1 1 auto;width:auto}
/* ---- bottom tab bar (phones) ---- */
@media(max-width:640px){
  body .tabs{position:fixed!important;left:0;right:0;bottom:0;top:auto!important;z-index:40;margin:0!important;padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px))!important;display:grid;grid-template-columns:repeat(6,1fr);gap:2px;overflow:visible;background:#fff!important;border:0;border-top:1px solid #e3ece1;box-shadow:0 -6px 16px -14px rgba(16,60,24,.35)}
  body .tab{position:relative;flex-direction:column;justify-content:center;gap:3px;padding:6px 2px!important;min-height:52px!important;margin:0!important;border:0!important;border-radius:14px;font:600 .64rem 'Inter',sans-serif!important;color:#4b5a50!important;text-align:center}
  body .tab svg{width:22px;height:22px}
  body .tab.on{background:#e4f4df!important;color:#0f6b1b!important;font-weight:700!important}
  body .tab.on:before{content:"";position:absolute;left:50%;top:-6px;width:28px;height:3px;margin-left:-14px;border-radius:3px;background:#17761f}
  body .tab #pend{position:absolute;top:2px;right:12px}
  body header .bar{padding:8px 12px}
  .bp-page-head h2{font-size:1.2rem}
}
/* narrow phones: stack side-by-side fields so inputs are not squeezed */
@media(max-width:420px){
  .bp-two{grid-template-columns:1fr}
  #t-profile .grid{grid-template-columns:1fr}
  main{padding-left:10px;padding-right:10px}
  body .opt{padding:10px}
}

/* ---- Payments tab ---- */
#t-payments .pay-hint{margin:2px 2px 10px;font-size:.88rem}
#t-payments .pay-card h3{margin:0 0 10px}
#t-payments .pay-card h4{margin:16px 0 6px;font-size:.82rem;letter-spacing:.04em;text-transform:uppercase;color:#4b5a50}
#t-payments .pay-sum{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
#t-payments .pay-sum>div{background:#f3faf5;border-radius:14px;padding:10px 8px;text-align:center}
#t-payments .pay-sum span{display:block;font-size:.7rem;color:#4b5a50;line-height:1.25}
#t-payments .pay-sum b{display:block;margin-top:4px;font-size:.98rem;color:#0f6b1b}
#t-payments .pay-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-top:1px solid #e3ece1}
#t-payments .pay-row:first-of-type{border-top:0}
#t-payments .pay-row>div:first-child{min-width:0}
#t-payments .pay-row b{display:block;font-size:.95rem}
#t-payments .pay-row span{display:block;font-size:.78rem;color:#5b6b60;margin-top:2px}
#t-payments .pay-r{text-align:right;flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:4px}
#t-payments .pay-r .od-badge{height:auto;padding:4px 10px;font-size:.72rem;display:inline-flex}
#t-payments .pay-r button{padding:8px 12px;font-size:.8rem;white-space:nowrap}
