/* ShopMarg Seller Hub — standard navy + white, brand orange only for main buttons/accents */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');
:root { --o: #F07D10; --od: #C45F05; --o2: #F59A2B; --y: #FABE0A; --p: #E61446;
  --navy: #14213D; --navy2: #1F3A6E; --blue: #2563EB;
  --ink: #1C2333; --mut: #6B7280; --bg: #F4F6FA; --line: #E5E8EF; --soft: #FFF4E8; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Bengali", sans-serif; background: var(--bg); color: var(--ink); font-size: 15px; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, .brand span { font-family: Poppins, Inter, sans-serif; }
a { color: var(--blue); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }

/* header */
header { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: space-between; padding: 10px 22px; position: sticky; top: 0; z-index: 10; box-shadow: 0 1px 0 var(--line); }
header:after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--o); opacity: .85; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand img { height: 36px; }
.brand span { font-weight: 600; font-size: 13px; color: var(--navy); background: #EEF2F8; border: 1px solid var(--line); padding: 4px 11px; border-radius: 20px; letter-spacing: .3px; }
.who { font-size: 13px; color: var(--mut); text-align: right; }

main { width: 100%; max-width: 820px; margin: 0 auto; padding: 26px 16px 40px; flex: 1; }
footer { text-align: center; color: var(--mut); font-size: 12px; padding: 18px; }

/* login / register: two columns */
main.auth { max-width: 1120px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; align-items: center; padding-top: 34px; }
.hero { background: linear-gradient(150deg, #14213D 0%, #1F3A6E 60%, #24508F 100%); color: #fff; border-radius: 22px; padding: 38px 34px; position: relative; overflow: hidden; box-shadow: 0 20px 50px -24px rgba(20,33,61,.7); }
.hero:before { content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.06); }
.hero:after { content: ""; position: absolute; right: 30px; bottom: -90px; width: 200px; height: 200px; border-radius: 50%; background: rgba(240,125,16,.18); }
.hero > * { position: relative; z-index: 1; }
.pill { display: inline-block; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: .3px; }
.hero h2 { font-size: 30px; line-height: 1.2; margin: 14px 0 10px; }
.hero h2 em { font-style: normal; color: #FDBA5C; }
.hero p { opacity: .92; margin: 0 0 22px; line-height: 1.5; }
.perks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.perks li { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 11px 14px; }
.perks i { font-style: normal; font-size: 21px; width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; flex: none; }
.perks b { display: block; font-size: 14px; }
.perks div { font-size: 13px; opacity: .8; }
.perks b { opacity: 1; }
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; font-size: 12px; text-align: center; }
.how span { background: rgba(255,255,255,.06); border-radius: 10px; padding: 8px 4px; }
.how b { display: block; width: 22px; height: 22px; line-height: 22px; border-radius: 50%; background: var(--o); color: #fff; margin: 0 auto 4px; font-size: 12px; }
.side .card.narrow { margin: 0 auto; }

/* cards & forms */
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px; box-shadow: 0 10px 30px -20px rgba(20,33,61,.25); }
.card.narrow { max-width: 440px; margin: 10px auto; }
.center { text-align: center; }
h1 { font-size: 24px; margin: 0 0 4px; letter-spacing: -.2px; }
.sub { color: var(--mut); margin: 0 0 18px; font-size: 14px; }
label { display: block; font-size: 13px; font-weight: 600; color: #4a4f57; margin: 14px 0 0; }
input, select { display: block; width: 100%; margin-top: 6px; height: 50px; border: 1.5px solid #D9DEE7; border-radius: 12px; padding: 0 14px; font-size: 16px; background: #FAFBFD; color: var(--ink); font-family: inherit; transition: border-color .15s, box-shadow .15s, background .15s; }
input:focus, select:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
input::placeholder { color: #b5b0a8; }
.hint { font-size: 12px; color: var(--mut); margin-top: 6px; }
button, .btn { display: inline-block; width: 100%; margin-top: 20px; height: 52px; border: 0; border-radius: 12px; background: var(--o); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; text-align: center; line-height: 52px; text-decoration: none !important; font-family: Poppins, Inter, sans-serif; letter-spacing: .2px; box-shadow: 0 6px 14px -8px rgba(240,125,16,.8); transition: transform .1s, box-shadow .15s, filter .15s; }
button:hover, .btn:hover { background: var(--od); }
button:active { transform: translateY(1px); }
button.wait { opacity: .7; cursor: progress; }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid #D9DEE7; box-shadow: none; }
.btn.ghost:hover { background: #F4F6FA; }
button.link { background: none; color: var(--blue); height: auto; line-height: 1.4; margin-top: 10px; font-weight: 600; font-size: 14px; width: auto; padding: 0; box-shadow: none; font-family: Inter, sans-serif; }
button.eye { position: absolute; right: 8px; bottom: 9px; width: auto; height: 32px; line-height: 32px; margin: 0; padding: 0 10px; font-size: 12px; background: #EEF2F8; color: #555; box-shadow: none; border-radius: 8px; font-family: Inter, sans-serif; }
form.inline { text-align: center; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.alt { text-align: center; font-size: 14px; margin: 16px 0 0; color: var(--mut); }
.msg { padding: 12px 16px; border-radius: 12px; margin: 0 auto 16px; font-size: 14px; max-width: 820px; font-weight: 500; }
.msg.err { background: #fdeef0; color: #a3182f; border: 1px solid #f7c6cf; }
.msg.ok { background: #ECFDF3; color: #166534; border: 1px solid #BBF7D0; }

/* onboarding stepper */
.steps { list-style: none; display: flex; justify-content: space-between; padding: 0; margin: 6px 0 0; position: relative; }
.steps li { flex: 1; text-align: center; font-size: 12px; color: var(--mut); position: relative; z-index: 1; }
.steps li b { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid #D9DEE7; margin: 0 auto 6px; font-size: 14px; color: var(--mut); }
.steps li.done b { background: #16A34A; border-color: #16A34A; color: #fff; }
.steps li.now b { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 0 0 5px rgba(20,33,61,.12); }
.steps li.now { color: var(--navy); font-weight: 700; }
.bar { height: 4px; background: #E5E8EF; border-radius: 4px; margin: 4px 0 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: #16A34A; border-radius: 4px; }
form.grid { margin-top: 6px; }

/* review page */
.review .rv-head { display: flex; gap: 16px; align-items: center; }
.big { font-size: 46px; line-height: 1; }
.tl { list-style: none; padding: 0; margin: 18px 0 4px; }
.tl li { display: flex; gap: 12px; align-items: flex-start; padding: 0 0 16px; position: relative; color: var(--mut); }
.tl li:not(:last-child):before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 2px; width: 2px; background: #E5E8EF; }
.tl b { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid #D9DEE7; display: flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.tl li.done { color: var(--ink); }
.tl li.done b { background: #2e9e57; border-color: #2e9e57; color: #fff; }
.tl li.now { color: var(--navy); font-weight: 600; }
.tl li.now b { background: #EEF2F8; border-color: var(--navy); color: var(--navy); animation: pulse 1.6s infinite; }
.tl small { display: block; font-size: 12px; color: var(--mut); font-weight: 400; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(20,33,61,.25); } 50% { box-shadow: 0 0 0 7px rgba(20,33,61,0); } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; text-align: left; background: var(--bg); border-radius: 12px; padding: 14px 16px; margin-top: 8px; font-size: 14px; }
.kv span { color: var(--mut); }

/* dashboard */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.tiles div { background: var(--bg); border-radius: 14px; padding: 16px 10px; text-align: center; font-size: 12px; color: var(--mut); border: 1px solid var(--line); }
.tiles b { display: block; font-size: 24px; color: var(--ink); font-family: Poppins, sans-serif; }

@media (max-width: 900px) {
  main.auth { grid-template-columns: 1fr; gap: 18px; padding-top: 16px; }
  .side { order: -1; }
  .hero { padding: 24px 20px; border-radius: 18px; }
  .hero h2 { font-size: 22px; }
  .perks { grid-template-columns: 1fr 1fr; gap: 8px; }
  .perks li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px; }
}
@media (max-width: 560px) {
  header { padding: 8px 12px; }
  .brand img { height: 30px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 22px 16px; border-radius: 16px; }
  .steps li span { font-size: 11px; }
  .perks { grid-template-columns: 1fr; }
  .perks li { flex-direction: row; align-items: center; }
  .how { grid-template-columns: repeat(2, 1fr); }
}

/* ===== v4: seller nav, products ===== */
nav.tabs { background: #fff; border-bottom: 1px solid var(--line); display: flex; gap: 4px; padding: 0 14px; overflow-x: auto; position: sticky; top: 58px; z-index: 9; }
nav.tabs a { display: flex; align-items: center; gap: 6px; padding: 12px 14px; color: var(--mut); font-weight: 600; font-size: 14px; border-bottom: 3px solid transparent; white-space: nowrap; text-decoration: none !important; }
nav.tabs a i { font-style: normal; }
nav.tabs a.on { color: var(--navy); border-bottom-color: var(--o); }
.ph { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.ph h1 { margin: 0; }
.btn.sm { width: auto; height: 40px; line-height: 40px; padding: 0 16px; margin: 0; font-size: 14px; }
a.btn { color: #fff; }
.tiles a { display: block; background: var(--bg); border-radius: 14px; padding: 16px 10px; text-align: center; font-size: 12px; color: var(--mut); border: 1px solid var(--line); text-decoration: none !important; font-weight: 500; }
.tiles a:hover { border-color: var(--o); }
.tiles a b { display: block; font-size: 24px; color: var(--ink); font-family: Poppins, sans-serif; }
.empty-cta { text-align: center; padding: 26px 10px; }
.empty-cta h3 { margin: 6px 0; font-family: Poppins, sans-serif; }
.empty-cta p { color: var(--mut); margin: 0 0 6px; }
.empty-cta .btn { width: auto; padding: 0 26px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; }
.chips a { white-space: nowrap; padding: 7px 12px; border-radius: 18px; border: 1px solid var(--line); background: #fff; color: var(--mut); font-size: 13px; text-decoration: none !important; }
.chips a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips a b { margin-left: 3px; }
.srch input { height: 42px; margin: 0 0 10px; }
.prod { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.pimg { width: 62px; height: 80px; border-radius: 8px; border: 1px solid var(--line); background: #f6f7f9 center/contain no-repeat; flex: none; }
.pm { flex: 1; min-width: 0; }
.pn { color: var(--ink); font-weight: 600; display: block; line-height: 1.35; }
.pmeta { font-size: 12px; color: var(--mut); margin: 4px 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bdg { padding: 2px 9px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.bdg.live { background: #DCFCE7; color: #166534; } .bdg.qc { background: #FEF3C7; color: #92400E; } .bdg.fix { background: #FEE2E2; color: #B91C1C; }
.bdg.off { background: #F1F5F9; color: #64748B; } .bdg.out { background: #FFE4E6; color: #9F1239; }
.qcnote { font-size: 12px; color: #B91C1C; background: #FEF2F2; border-radius: 6px; padding: 4px 8px; margin-bottom: 4px; }
form.quick { display: flex; gap: 6px; align-items: flex-end; flex-wrap: wrap; }
form.quick label { margin: 0; font-size: 11px; color: var(--mut); display: flex; align-items: center; gap: 4px; }
form.quick input { width: 84px; height: 36px; margin: 0; font-size: 14px; padding: 0 8px; border-radius: 8px; }
form.quick button { width: auto; height: 36px; line-height: 36px; margin: 0; padding: 0 14px; font-size: 13px; border-radius: 8px; box-shadow: none; }
form.tg button.link { margin: 0; font-size: 13px; }
h3.sec { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--mut); margin: 18px 0 4px; font-family: Inter, sans-serif; }
.photos { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.ph-main { width: 130px; height: 170px; border: 2px dashed #cfd6e2; border-radius: 12px; background: #fafbfd center/contain no-repeat; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--mut); cursor: pointer; margin: 0; font-weight: 600; font-size: 13px; position: relative; }
.ph-main.has span, .ph-main[style*="url"] span { background: rgba(255,255,255,.85); border-radius: 8px; padding: 3px 7px; font-size: 11px; position: absolute; bottom: 6px; }
.ph-main input, .ph-add input { display: none; }
.ph-extra { display: flex; gap: 8px; flex-wrap: wrap; }
.ph-x, .ph-add { width: 74px; height: 96px; border-radius: 10px; border: 1px solid var(--line); background: #fafbfd center/contain no-repeat; position: relative; margin: 0; cursor: pointer; }
.ph-add { border: 2px dashed #cfd6e2; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; color: var(--mut); }
.ph-x em { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 10px; text-align: center; font-style: normal; border-radius: 0 0 9px 9px; padding: 2px; }
.ph-x input[type=checkbox] { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; margin: 0; }
.ph-x input[type=checkbox]:checked + em { background: #B91C1C; }
.row2, .row3 { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.row3 { grid-template-columns: 1fr 1fr 0.7fr; }
textarea { display: block; width: 100%; margin-top: 6px; border: 1.5px solid #D9DEE7; border-radius: 12px; padding: 12px 14px; font-size: 15px; background: #FAFBFD; font-family: inherit; color: var(--ink); resize: vertical; }
textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.cat-list { border: 1px solid var(--line); border-radius: 10px; margin-top: 4px; max-height: 240px; overflow-y: auto; background: #fff; }
.cat-list:empty { display: none; }
.cat-list div { padding: 9px 12px; font-size: 13px; cursor: pointer; border-bottom: 1px solid #f1f3f6; }
.cat-list div:hover { background: #F4F6FA; }
.cat-list .none { color: var(--mut); cursor: default; }
details.more { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px 14px; background: #fcfcfd; }
details.more summary { cursor: pointer; font-weight: 600; padding: 10px 0 4px; color: var(--navy); }
@media (max-width: 560px) {
  nav.tabs { top: 50px; padding: 0 6px; }
  nav.tabs a { padding: 11px 10px; font-size: 13px; }
  .row3 { grid-template-columns: 1fr 1fr; }
  .row3 > :last-child { grid-column: span 2; }
  .row2 { grid-template-columns: 1fr; }
  form.quick input { width: 74px; }
}

/* ===== v5: orders ===== */
a.ord { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 13px 4px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none !important; font-weight: 400; }
a.ord:hover { background: #fafbfd; }
.ord .oi { font-size: 14px; margin: 4px 0 2px; color: #333; }
.oamt { font-family: Poppins, sans-serif; font-weight: 700; font-size: 17px; white-space: nowrap; }
.oamt small { color: var(--mut); margin-left: 8px; font-size: 18px; }
a.alert-new { display: block; background: #FFF7ED; border: 1px solid #FED7AA; color: #9A3412; border-radius: 12px; padding: 13px 16px; margin: 0 0 14px; text-decoration: none !important; font-weight: 500; }
.row form button { width: 100%; }

/* ===== v6: payments, profile ===== */
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.tbl th { background: #F4F6FA; color: var(--mut); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; text-align: left; padding: 10px 12px; }
.tbl td { border-top: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }
.tbl td small { display: block; color: var(--mut); font-size: 11px; }
.tiles div { background: var(--bg); border-radius: 14px; padding: 16px 10px; text-align: center; font-size: 12px; color: var(--mut); border: 1px solid var(--line); }
.tiles div b { display: block; font-size: 20px; color: var(--ink); font-family: Poppins, sans-serif; }

/* ===== v7: store page, import, bulk, performance ===== */
.store-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.av-lg { width: 64px; height: 64px; border-radius: 16px; background: var(--navy); color: #fff; font-family: Poppins, sans-serif; font-size: 28px; display: flex; align-items: center; justify-content: center; flex: none; }
.store-head .sub { margin: 0; }
.grid-p { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
a.gp { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none !important; font-weight: 400; }
a.gp:hover { box-shadow: 0 8px 20px -12px rgba(20,33,61,.35); }
.gi { display: block; height: 180px; background: #f7f8fa center/contain no-repeat; border-radius: 8px; }
.gn { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gpr { font-size: 14px; } .gpr s { color: var(--mut); font-size: 12px; } .gpr em { color: #16A34A; font-style: normal; font-size: 12px; font-weight: 700; }
form.import { background: #F4F6FA; border: 1px dashed #c9d2e0; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
form.import label { margin-top: 0; }
.ghost-btn { background: var(--navy) !important; box-shadow: none !important; height: 44px !important; line-height: 44px !important; margin-top: 10px !important; }
ol.howto { padding-left: 20px; line-height: 1.7; font-size: 14px; }
.tiles.perf div.good b { color: #16A34A; } .tiles.perf div.bad b { color: #DC2626; }
.ph > div { display: flex; gap: 6px; }
