/* Little Podha — demo admin */
body.is-admin { background: #F4F3EE; font-size: 14.5px; }
.ad { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.ad-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--ink); color: #C8D3CC; display: flex; flex-direction: column; padding: 16px 12px; }
.ad-brand { display: flex; align-items: center; gap: 6px; padding: 4px 8px 18px; color: #fff; }
.ad-brand .lp-logo { font-size: 1.15rem; }
.ad-brand em { font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--sun); color: var(--ink); padding: 2px 7px; border-radius: 6px; }
.ad-side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.ad-side nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; font-size: .9rem; transition: background .2s, color .2s; }
.ad-side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.ad-side nav a.on { background: var(--g); color: #fff; font-weight: 600; }
.ad-side .cnt { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--sun); color: var(--ink); font-size: .72rem; display: grid; place-items: center; }
.ad-side-foot { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 14px; }
.ad-side-foot a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; font-size: .84rem; color: #A9B8AE; }
.ad-side-foot a:hover { color: #fff; background: rgba(255,255,255,.05); }
.ad-main { min-width: 0; }
.ad-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 12px 24px; background: rgba(244,243,238,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.ad-menu { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; place-items: center; }
.ad-search { flex: 1; max-width: 480px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.ad-search input { flex: 1; border: 0; outline: none; background: none; font-size: 15px; min-width: 0; }
.demo-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #FDF0D3; color: #8A5A00; font-size: .74rem; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.ad-ic { position: relative; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; margin-left: auto; }
.ad-ic i { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: #E0435A; border: 2px solid #fff; }
.ad-me { display: flex; align-items: center; gap: 10px; }
.ad-me span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.ad-me small { color: var(--muted); font-size: .76rem; }
.ad-view { padding: 22px 24px 60px; outline: none; }
.ad-view.enter { animation: viewIn .35s var(--ease); }
.ad-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.ad-h h1 { margin: 0; font-size: 1.6rem; }
.ad-h h1 small { color: var(--muted); font-size: 1rem; font-weight: 500; }
.ad-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ad .btn, .ad .btn-o, .drawer .btn, .drawer .btn-o { border-radius: 10px; padding: 9px 16px; font-size: .88rem; box-shadow: none; }
.ad .btn-s, .drawer .btn-s { padding: 6px 10px; font-size: .8rem; }
.btn-o.danger { color: var(--err); border-color: #F3C9C1; }
.mt { margin-top: 18px; } .mt-s { margin-top: 8px; }
.card { background: #fff; border-radius: 14px; border: 1px solid var(--line); padding: 18px; min-width: 0; }
.card h2 { font-size: 1.08rem; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-h h2 { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 14px; border: 1px solid var(--line); padding: 16px; color: var(--g); }
.kpi > svg { padding: 8px; width: 40px; height: 40px; border-radius: 10px; background: var(--g-soft); box-sizing: border-box; }
.kpi span { display: flex; flex-direction: column; color: var(--ink); min-width: 0; }
.kpi small { color: var(--muted); font-size: .8rem; }
.kpi b { font-family: var(--head); font-size: 1.45rem; line-height: 1.25; }
.kpi em { font-style: normal; font-size: .74rem; }
.up { color: var(--ok); } .down { color: var(--err); }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.span2 { grid-column: span 2; } .span3 { grid-column: span 3; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--cream); }
.seg button { border: 0; background: none; padding: 5px 12px; border-radius: 8px; font-size: .8rem; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; height: 220px; align-items: end; padding-top: 24px; }
.bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bar i { width: 100%; max-width: 46px; height: var(--h); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--leaf), var(--g)); transform-origin: bottom; animation: grow .8s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes grow { from { transform: scaleY(0); } }
.bar small { color: var(--muted); font-size: .74rem; }
.bar .tip { position: absolute; top: calc(100% - var(--h) - 46px); font-size: .72rem; font-weight: 600; background: var(--ink); color: #fff; padding: 3px 7px; border-radius: 6px; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.bar:hover .tip { opacity: 1; }
.donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut { width: 130px; height: 130px; border-radius: 50%; background: conic-gradient(#1F6F4A 0 46%, #F2B33D 46% 70%, #9BD67A 70% 88%, #E8836B 88% 100%); -webkit-mask: radial-gradient(circle, transparent 54%, #000 55%); mask: radial-gradient(circle, transparent 54%, #000 55%); animation: spinIn 1s var(--ease); }
@keyframes spinIn { from { transform: rotate(-90deg) scale(.7); opacity: 0; } }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .85rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.toplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.toplist li { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.toplist img { border-radius: 8px; }
.toplist span { flex: 1; display: flex; flex-direction: column; }
.toplist small { color: var(--muted); }
.alerts, .todo, .autos, .banners, .pay-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.alerts li, .autos li, .banners li, .pay-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.alerts li b, .autos li b { margin-left: auto; }
.autos li .sw, .banners li .sw, .pay-list li .sw { margin-left: auto; }
.pay-list span { display: flex; flex-direction: column; }
.pay-list small { color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.warn { background: #F59E0B; } .dot.bad { background: var(--err); }
.todo li { display: flex; gap: 10px; align-items: center; padding: 7px 0; font-size: .88rem; }
.todo input { width: 17px; height: 17px; accent-color: var(--g); }
.score { display: flex; align-items: center; gap: 18px; }
.ring { --p: 80; width: 96px; height: 96px; flex: none; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, #fff 78%, transparent 80% 100%), conic-gradient(var(--g) calc(var(--p) * 1%), var(--cream) 0); }
.ring b { font-family: var(--head); font-size: 1.6rem; line-height: 1; }
.ring small { color: var(--muted); font-size: .72rem; }
.score.big .ring { width: 120px; height: 120px; }
.checks { list-style: none; margin: 0; padding: 0; font-size: .84rem; display: grid; gap: 5px; }
.checks li::before, .tech.y b::before, .tech.n b::before { margin-right: 6px; font-weight: 700; }
.checks .y::before, .tech.y b::before { content: '✓'; color: var(--ok); }
.checks .n::before, .tech.n b::before { content: '!'; color: #D97706; }

.tbl-wrap { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
.card .tbl-wrap { border: 0; border-radius: 0; margin: 0 -18px -18px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
.tbl th { text-align: left; padding: 11px 14px; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: #FAF9F5; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #FBFAF6; }
.tbl tr.click { cursor: pointer; }
.tbl td small { display: block; color: var(--muted); font-size: .76rem; }
.tbl td.empty { text-align: center; color: var(--muted); padding: 30px; }
.tbl .prod { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.tbl .prod img { border-radius: 8px; background: var(--cream); }
.tbl .prod span { display: flex; flex-direction: column; }
.tbl.perm td:not(:first-child), .tbl.perm th:not(:first-child) { text-align: center; }
.tbl.perm input { width: 17px; height: 17px; accent-color: var(--g); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; }
.warn-t { color: #C2410C; font-weight: 700; } .bad-t { color: var(--err); font-weight: 700; } .up-t { color: var(--ok); font-weight: 600; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: #EEF0EC; color: var(--ink-2); white-space: nowrap; }
.p-new, .p-pending, .p-scheduled { background: #FEF3C7; color: #92400E; }
.p-packed, .p-manager, .p-active { background: #DBEAFE; color: #1E40AF; }
.p-shipped, .p-captured, .p-sent { background: #E0E7FF; color: #3730A3; }
.p-delivered, .p-published, .p-live, .p-collected, .p-owner { background: #D1FAE5; color: #065F46; }
.p-cancelled, .p-lost, .p-hidden, .p-refunded { background: #FEE2E2; color: #991B1B; }
.p-returned { background: #F3E8FF; color: #6B21A8; }
.seo-s { display: inline-block; min-width: 34px; text-align: center; padding: 2px 7px; border-radius: 6px; font-weight: 700; font-size: .76rem; }
.seo-s.g { background: #D1FAE5; color: #065F46; } .seo-s.m { background: #FEF3C7; color: #92400E; } .seo-s.b { background: #FEE2E2; color: #991B1B; }
.da { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--g-soft); color: var(--g); font-weight: 700; font-size: .8rem; }
.code { font-family: ui-monospace, monospace; background: var(--cream); padding: 3px 8px; border-radius: 6px; letter-spacing: .04em; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar select, .tsearch input, .fm input, .fm select, .fm textarea, .dr-body textarea, textarea.code { padding: 9px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 15px; min-width: 0; }
.tsearch { flex: 1; min-width: 200px; max-width: 380px; }
.tsearch input { width: 100%; }
.tabs-row { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.tabs-row a { padding: 9px 14px; border-bottom: 2.5px solid transparent; font-size: .88rem; color: var(--muted); font-weight: 500; cursor: pointer; }
.tabs-row a b { font-size: .74rem; background: var(--cream); padding: 1px 7px; border-radius: 99px; margin-left: 4px; color: var(--ink-2); }
.tabs-row a.on { color: var(--g); border-bottom-color: var(--g); font-weight: 600; }
.sw { position: relative; display: inline-block; width: 40px; height: 23px; flex: none; }
.sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.sw span { position: absolute; inset: 0; border-radius: 99px; background: #D6D2C6; transition: background .25s; pointer-events: none; }
.sw span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .3s var(--ease); }
.sw input:checked + span { background: var(--g); }
.sw input:checked + span::after { transform: translateX(17px); }
.sw input:focus-visible + span { outline: 3px solid rgba(242,179,61,.7); outline-offset: 2px; }
.fm { display: grid; gap: 10px; }
.fm label { display: flex; flex-direction: column; gap: 5px; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.fm label.ck { flex-direction: row; align-items: center; font-weight: 500; }
.fm.grid2 { grid-template-columns: 1fr 1fr; align-items: end; }
.fm.grid4 { grid-template-columns: repeat(4, 1fr); align-items: end; }
.fm.inline { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.fm.inline input { flex: 1; min-width: 140px; }
.fm input:focus, .fm select:focus, .fm textarea:focus { outline: none; border-color: var(--g); box-shadow: 0 0 0 3px var(--g-soft); }
.chk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 8px; }
.chk-grid .ck { padding: 4px 0; }
textarea.code { width: 100%; font-family: ui-monospace, monospace; font-size: .82rem; margin-bottom: 10px; }
.note { display: flex; gap: 8px; align-items: center; font-size: .84rem; color: #8A5A00; background: #FDF6E3; border: 1px solid #F5E1A8; padding: 10px 14px; border-radius: 10px; }
.cat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cat-c { display: flex; align-items: center; gap: 14px; }
.cat-c img { border-radius: 12px; background: var(--cream); }
.cat-c > div { flex: 1; } .cat-c h3 { margin: 0; } .cat-c p { margin: 2px 0; }
.adj { display: inline-flex; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; }
.adj button { width: 30px; height: 28px; border: 0; background: #fff; font-size: 1rem; }
.adj button:hover { background: var(--g-soft); }
.rev-list { display: grid; gap: 10px; }
.rev-a { display: flex; gap: 14px; align-items: flex-start; }
.rev-a img { border-radius: 10px; background: var(--cream); }
.rev-a p { margin: 6px 0; font-size: .9rem; color: var(--ink-2); }
.rv-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-act { display: flex; flex-direction: column; gap: 6px; }
.banners .bthumb { width: 56px; height: 32px; border-radius: 6px; flex: none; }
.bthumb.s1 { background: linear-gradient(120deg, #E3EFDF, #F6EFDF); } .bthumb.s2 { background: linear-gradient(120deg, #F7E7D8, #F3EEE3); } .bthumb.s3 { background: linear-gradient(120deg, #DDEDEA, #EAF3E6); }
.seo-top { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; margin-bottom: 18px; }
.seo-top .score > div:last-child { flex: 1; }
.gsc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 14px; }
.gsc div { display: flex; flex-direction: column; padding: 10px; border-radius: 10px; background: #FAF9F5; }
.gsc small { color: var(--muted); font-size: .74rem; } .gsc b { font-family: var(--head); font-size: 1.2rem; } .gsc em { font-style: normal; font-size: .74rem; }
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tech { display: flex; flex-direction: column; gap: 4px; justify-content: space-between; }
.tech .sw { margin-top: 8px; }
.serp { padding: 12px 14px; border-radius: 10px; background: #FAF9F5; border: 1px solid var(--line); margin-bottom: 10px; font-family: Arial, sans-serif; }
.serp small { color: #4D5156; font-size: .78rem; display: block; }
.serp b { display: block; color: #1A0DAB; font-size: 1.1rem; font-weight: 400; margin: 3px 0; }
.serp p { color: #4D5156; font-size: .84rem; margin: 0; }
.cc { font-style: normal; font-weight: 600; font-size: .74rem; margin-left: 6px; }
.cc.good { color: var(--ok); } .cc.bad { color: #C2410C; }
.brand-prev { padding: 18px; border-radius: 12px; background: var(--cream); margin-bottom: 12px; }
.img-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.imgb { position: relative; width: 80px; height: 80px; border-radius: 10px; overflow: hidden; background: var(--cream); }
.imgb img { width: 100%; height: 100%; object-fit: cover; }
.imgb button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); display: grid; place-items: center; }
.imgb.add { border: 2px dashed var(--line-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); background: #fff; }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 120; background: rgba(23,37,29,.4); display: flex; justify-content: flex-end; animation: fadeIn .25s; }
.drawer[hidden] { display: none; }
.dr-card { position: relative; width: min(560px, 100%); height: 100%; overflow-y: auto; background: #fff; padding: 24px; box-shadow: -20px 0 60px rgba(0,0,0,.18); animation: slideIn .4s var(--ease); }
@keyframes slideIn { from { transform: translateX(100%); } }
.dr-body .kicker { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--g); margin: 0; }
.dr-body h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 1.4rem; margin: 4px 0; }
.dr-sec { padding: 16px 0; border-bottom: 1px solid var(--line); }
.dr-sec h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 10px; }
.dr-sec.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dr-sec p { margin: 0; font-size: .9rem; }
.dr-sec textarea { width: 100%; }
.dr-body .ri { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: .9rem; }
.dr-body .ri img { border-radius: 8px; background: var(--cream); }
.dr-body .ri span { flex: 1; display: flex; flex-direction: column; }
.dr-body .ri small { color: var(--muted); }
.sumdl { display: grid; grid-template-columns: 1fr auto; gap: 4px; margin: 10px 0 0; font-size: .9rem; }
.sumdl dd { margin: 0; text-align: right; }
.st-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.st-btn { padding: 7px 12px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; font-size: .82rem; font-weight: 500; }
.st-btn.on { background: var(--g); border-color: var(--g); color: #fff; }
.dr-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; padding-top: 16px; position: sticky; bottom: -24px; background: #fff; padding-bottom: 8px; }
.dr-body .fm .g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.ad-scrim { display: none; }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .span3 { grid-column: span 2; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .seo-top { grid-template-columns: 1fr; }
  .fm.grid4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .ad { grid-template-columns: 1fr; }
  .ad-side { position: fixed; left: 0; top: 0; z-index: 80; width: 260px; transform: translateX(-105%); transition: transform .4s var(--ease); }
  .ad-side.open { transform: none; box-shadow: 20px 0 50px rgba(0,0,0,.3); }
  .ad-scrim { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .ad-scrim.open { opacity: 1; pointer-events: auto; }
  .ad-menu { display: grid; }
  .ad-top { padding: 10px 14px; gap: 8px; flex-wrap: wrap; }
  .ad-search { order: 5; flex-basis: 100%; max-width: none; }
  .ad-me span:last-child { display: none; }
  .demo-badge { font-size: .66rem; padding: 5px 9px; }
  .ad-view { padding: 16px 14px 60px; }
  .dash-grid { grid-template-columns: 1fr; }
  .span2, .span3 { grid-column: auto; }
  .gsc { grid-template-columns: 1fr 1fr; }
  .fm.grid2 { grid-template-columns: 1fr; }
  .rev-a { flex-wrap: wrap; }
  .rv-act { flex-direction: row; }
  .dr-card { padding: 18px; }
}
@media (max-width: 520px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 12px; } .kpi > svg { display: none; } .kpi b { font-size: 1.15rem; }
  .tech-grid, .fm.grid4, .dr-sec.two, .chk-grid { grid-template-columns: 1fr; }
  .bars { gap: 6px; }
}
