:root{
  --page:#f2f4f6;--bg:#fff;--surface:#fff;--surface2:#f4f6f9;--line:#eceef2;--line2:#dde1e6;
  --text:#191f28;--sub:#4e5968;--muted:#8b95a1;
  --primary:#2f6cf6;--primary-h:#1f5ae0;--primary-t:#edf3ff;--primary-t2:#dbe7ff;
  --red:#f04452;--red-t:#fff0f1;--yellow:#d98a00;--yellow-t:#fff5df;--green:#12a150;--green-t:#e8f7ee;--violet:#6c4cf5;--violet-t:#f1edff;
  --r:16px;--r-s:12px;--shadow:0 2px 10px rgba(25,31,40,.05);--shadow-h:0 8px 24px rgba(25,31,40,.09);
  --ease:cubic-bezier(.2,.7,.2,1);
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{font-family:"Pretendard Variable",Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  background:var(--page);color:var(--text);font-size:15px;line-height:1.55;letter-spacing:-.01em;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
img{max-width:100%;display:block}
.ico{width:20px;height:20px;flex:none}
.muted{color:var(--muted)}.sub{color:var(--sub)}.accent{color:var(--primary)}.red{color:var(--red)}
.small{font-size:13px}.xs{font-size:12px}.bold{font-weight:700}.right{text-align:right}.center{text-align:center}
.mt8{margin-top:8px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt24{margin-top:24px}.mb8{margin-bottom:8px}.mb12{margin-bottom:12px}
.row{display:flex;align-items:center;gap:8px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}
.pre{white-space:pre-line}
.ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* 등장 애니메이션 */
@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
@keyframes pop{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.rise{animation:rise .45s var(--ease) both}
.rise-1{animation-delay:.05s}.rise-2{animation-delay:.1s}.rise-3{animation-delay:.15s}.rise-4{animation-delay:.2s}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* ---------- 버튼 / 폼 ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:44px;padding:0 18px;border-radius:12px;border:1px solid var(--line2);
  background:#fff;font-weight:600;font-size:14px;cursor:pointer;white-space:nowrap;color:var(--text);
  transition:background .2s,border-color .2s,transform .12s,box-shadow .2s}
.btn:hover{background:var(--surface2)}
.btn:active{transform:scale(.97)}
.btn.primary{background:var(--primary);border-color:var(--primary);color:#fff}
.btn.primary:hover{background:var(--primary-h);border-color:var(--primary-h)}
.btn.soft{background:var(--primary-t);border-color:var(--primary-t);color:var(--primary)}
.btn.soft:hover{background:var(--primary-t2)}
.btn.ghost{background:transparent}
.btn.danger{background:#fff;border-color:#ffd0d4;color:var(--red)}
.btn.danger:hover{background:var(--red-t)}
.btn.sm{height:36px;padding:0 14px;font-size:13px;border-radius:10px}
.btn.xs{height:30px;padding:0 11px;font-size:12px;border-radius:8px}
.btn.block{width:100%;height:54px;font-size:16px;border-radius:14px}
.btn[disabled]{opacity:.4;cursor:not-allowed;transform:none}
.field{display:block;margin-bottom:16px}
.field>span{display:block;font-size:13px;color:var(--sub);margin-bottom:7px;font-weight:600}
.input,select.input,textarea.input{width:100%;height:48px;padding:0 14px;border-radius:12px;border:1px solid var(--line2);background:#fff;outline:none;
  transition:border-color .2s,box-shadow .2s}
textarea.input{height:auto;min-height:120px;padding:12px 14px;resize:vertical;line-height:1.6}
.input:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-t)}
.input:disabled{background:var(--surface2);color:var(--muted)}
.input.sm{height:36px;font-size:13px;padding:0 10px;border-radius:9px}
.check{display:flex;gap:8px;align-items:flex-start;font-size:14px;color:var(--sub);cursor:pointer}
.check input{accent-color:var(--primary);width:18px;height:18px;margin-top:2px;flex:none}
.hint{font-size:12px;color:var(--muted);margin-top:6px}

/* ---------- 배지 ---------- */
.badge{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:6px;font-size:12px;font-weight:700;background:var(--surface2);color:var(--sub);white-space:nowrap}
.b-pending{background:var(--yellow-t);color:var(--yellow)}
.b-paid,.b-accent{background:var(--primary-t);color:var(--primary)}
.b-processing{background:var(--violet-t);color:var(--violet)}
.b-done,.b-on{background:var(--green-t);color:var(--green)}
.b-cancelled,.b-refunded,.b-off,.b-suspended{background:var(--surface2);color:var(--muted)}
.b-soldout,.b-red{background:var(--red-t);color:var(--red)}

/* ---------- 카드 ---------- */
.card{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:20px;box-shadow:var(--shadow)}
.card+.card{margin-top:12px}
.card-title{font-size:16px;font-weight:700;margin-bottom:14px;display:flex;justify-content:space-between;align-items:center;gap:8px}
.list{background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow)}
.list>a,.list>.li{display:flex;align-items:center;gap:12px;padding:16px 18px;border-top:1px solid var(--line);transition:background .2s}
.list>a:first-child,.list>.li:first-child{border-top:0}
.list>a:hover{background:#fafbfc}
.kv{display:flex;justify-content:space-between;gap:12px;padding:7px 0;font-size:14px}
.kv>span:first-child{color:var(--muted);flex:none}
.kv>span:last-child{text-align:right;word-break:break-all}
.divider{height:1px;background:var(--line);margin:14px 0}
.empty{text-align:center;color:var(--muted);padding:48px 16px;font-size:14px}
.empty .ico{width:36px;height:36px;margin:0 auto 10px;color:#c5ccd5}

.flash{margin:12px 16px 0;padding:13px 16px;border-radius:12px;background:var(--primary-t);color:var(--primary-h);font-size:14px;font-weight:500;animation:rise .35s var(--ease) both}

/* ========== 쇼핑몰 레이아웃 (모바일 중앙) ========== */
.app{max-width:480px;margin:0 auto;min-height:100vh;background:var(--bg);position:relative;padding-bottom:88px}
@media(min-width:481px){.app{box-shadow:0 0 0 1px var(--line)}}
.topbar{position:sticky;top:0;z-index:20;height:60px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;
  background:rgba(255,255,255,.94);backdrop-filter:saturate(180%) blur(12px);-webkit-backdrop-filter:saturate(180%) blur(12px);border-bottom:1px solid var(--line)}
.logo{display:flex;align-items:center;gap:8px;font-weight:800;font-size:21px;letter-spacing:-.04em;color:var(--primary)}
.logo img{height:28px;width:auto}
.top-actions{display:flex;align-items:center;gap:4px}
.icon-btn{position:relative;width:40px;height:40px;display:grid;place-items:center;border-radius:12px;color:var(--text);transition:background .2s}
.icon-btn:hover{background:var(--surface2)}
.icon-btn .n{position:absolute;top:4px;right:3px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:var(--primary);color:#fff;font-size:10px;font-weight:800;display:grid;place-items:center}
.login-btn{height:32px;padding:0 13px;border:1px solid var(--text);border-radius:8px;font-size:13px;font-weight:600;display:inline-flex;align-items:center;transition:background .2s}
.login-btn:hover{background:var(--surface2)}
.noticebar{display:block;padding:10px 16px;font-size:13px;font-weight:600;background:var(--primary-t);color:var(--primary);text-align:center}
.page{padding:20px 18px;animation:rise .4s var(--ease) both}
.page-title{font-size:23px;font-weight:800;letter-spacing:-.03em;margin-bottom:18px}
.back{display:inline-flex;align-items:center;gap:2px;color:var(--sub);font-size:14px;margin-bottom:12px;margin-left:-4px}
.section{margin-top:36px}
.section-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:14px}
.section-head h2{font-size:19px;font-weight:800;letter-spacing:-.03em}
.section-head a{font-size:13px;color:var(--muted)}

/* 하단 탭바 */
.tabbar{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;z-index:30;display:grid;grid-template-columns:repeat(5,1fr);gap:4px;
  background:rgba(255,255,255,.97);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:8px 10px calc(8px + env(safe-area-inset-bottom))}
.tabbar a{display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 0 7px;border-radius:12px;font-size:11px;font-weight:500;color:#6b7684;transition:background .25s var(--ease),color .25s}
.tabbar a:active{transform:scale(.96)}
.tabbar a.on{color:var(--primary);background:var(--primary-t);font-weight:700}
.tabbar .ico{width:23px;height:23px}

/* 메인 히어로 */
.hero{position:relative;padding:0 20px 8px;text-align:center;overflow:hidden}
.float-area{position:relative;height:150px}
.fi{position:absolute;width:56px;height:56px;border-radius:16px;background:#fff;box-shadow:0 6px 18px rgba(25,31,40,.10);display:grid;place-items:center;color:var(--primary);
  animation:float 5s ease-in-out infinite}
.fi .ico{width:26px;height:26px}
.fi img{width:34px;height:34px;object-fit:contain;border-radius:8px}
.fi.a{left:9%;top:58px;animation-delay:0s}
.fi.b{left:44%;top:22px;animation-delay:.8s;width:52px;height:52px}
.fi.c{right:9%;top:52px;animation-delay:1.6s}
.fi.d{left:6%;bottom:-210px;animation-delay:2.2s}
.fi.e{right:7%;bottom:-200px;animation-delay:1.2s}
.hero h1{position:relative;font-size:27px;line-height:1.42;font-weight:800;letter-spacing:-.045em;white-space:pre-line;margin-top:6px}
.hero p.lead{color:var(--sub);margin-top:10px;font-size:15px}
.big-num{margin-top:28px;font-size:36px;font-weight:800;letter-spacing:-.04em}
.big-cap{font-size:13px;color:var(--muted);margin-top:2px}
.stats{display:grid;grid-template-columns:repeat(3,1fr);margin:26px 0 8px}
.stats b{display:block;font-size:22px;font-weight:800;letter-spacing:-.03em}
.stats span{font-size:12px;color:var(--muted)}
.hero-banner{margin:16px 18px 0;border-radius:var(--r);overflow:hidden}
.cta{padding:24px 18px 0}

/* 카테고리 탭 */
.cat-tabs{position:sticky;top:60px;z-index:15;display:flex;gap:6px;padding:10px 18px;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--line)}
.cat-tabs::-webkit-scrollbar{display:none}
.cat-tabs a{flex:none;height:34px;padding:0 14px;border-radius:10px;font-size:14px;font-weight:500;color:var(--sub);display:inline-flex;align-items:center;transition:background .25s var(--ease),color .25s}
.cat-tabs a:hover{background:var(--surface2)}
.cat-tabs a.on{background:var(--primary);color:#fff;font-weight:700}
.cat-sec{animation:rise .35s var(--ease) both}
.cat-sec[hidden]{display:none}
.cat-sec+.cat-sec{margin-top:32px}
.cat-sec h2{font-size:18px;font-weight:800;letter-spacing:-.03em;margin-bottom:12px}

/* 상품 카드 그리드 */
.pgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.gcard{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;padding:20px 12px 18px;background:#fff;border:1px solid var(--line);
  border-radius:var(--r);box-shadow:var(--shadow);transition:transform .25s var(--ease),box-shadow .25s var(--ease),border-color .25s}
.gcard:hover{transform:translateY(-3px);box-shadow:var(--shadow-h);border-color:#e2e6eb}
.gcard:active{transform:scale(.98)}
.gicon{width:60px;height:60px;border-radius:50%;background:#eef1f5;display:grid;place-items:center;color:var(--primary);margin-bottom:14px;overflow:hidden}
.gicon img{width:100%;height:100%;object-fit:cover}
.gicon .ico{width:28px;height:28px}
.gname{font-size:15px;font-weight:600;line-height:1.35;word-break:keep-all}
.gorig{margin-top:6px;font-size:12px;color:var(--muted);text-decoration:line-through}
.gprice{margin-top:2px;font-size:15px;font-weight:800;letter-spacing:-.02em}
.gprice em{font-style:normal;color:var(--primary);margin-right:5px}
.gbadge{position:absolute;top:10px;left:10px}
.gcard.soldout{opacity:.55}

.steps{display:grid;gap:10px}
.step{display:flex;gap:14px;align-items:flex-start;background:var(--surface2);border-radius:var(--r);padding:16px 18px}
.step .num{width:28px;height:28px;border-radius:50%;background:var(--primary);color:#fff;display:grid;place-items:center;font-size:13px;font-weight:700;flex:none}
.step b{display:block;font-size:15px}
.step span{font-size:13px;color:var(--muted)}

/* 상세 / 옵션 */
.detail-head{padding:18px 0 22px;text-align:center}
.detail-head .gicon{width:84px;height:84px;margin:0 auto 16px}
.detail-head .gicon .ico{width:38px;height:38px}
.detail-head h1{font-size:23px;font-weight:800;letter-spacing:-.04em}
.detail-head .from{margin-top:8px;font-size:15px;color:var(--sub)}
.detail-head .from b{color:var(--text)}
.detail-head .from em{font-style:normal;color:var(--primary);font-weight:800;margin-right:4px}
.opts{display:grid;gap:10px}
.opt{position:relative;display:flex;align-items:center;justify-content:space-between;padding:17px 18px;border:1.5px solid var(--line2);border-radius:var(--r);background:#fff;
  cursor:pointer;transition:border-color .2s,background .2s,transform .12s}
.opt:active{transform:scale(.99)}
.opt input{position:absolute;opacity:0;pointer-events:none}
.opt .radio{width:22px;height:22px;border-radius:50%;border:2px solid #c9d0d8;margin-right:12px;flex:none;display:grid;place-items:center;transition:border-color .2s}
.opt .radio::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--primary);transform:scale(0);transition:transform .2s var(--ease)}
.opt:has(input:checked){border-color:var(--primary);background:var(--primary-t)}
.opt:has(input:checked) .radio{border-color:var(--primary)}
.opt:has(input:checked) .radio::after{transform:scale(1)}
.opt.disabled{opacity:.45;cursor:not-allowed}
.opt .price{text-align:right}
.opt .price s{display:block;font-size:12px;color:var(--muted)}
.opt .price b{font-size:16px}
.opt .per{font-size:12px;color:var(--muted)}
.opt .off{color:var(--primary);font-weight:700;font-size:13px;margin-right:4px}
.buybar{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;z-index:40;display:flex;gap:8px;padding:12px 18px calc(12px + env(safe-area-inset-bottom));
  background:#fff;border-top:1px solid var(--line)}
.buybar .btn{height:54px;flex:1;border-radius:14px;font-size:16px}
.buybar .btn:first-child{flex:0 0 auto;width:110px}
.has-buybar{padding-bottom:100px}
.desc{white-space:pre-line;color:var(--sub);font-size:14px;line-height:1.8}

/* 장바구니 */
.cart-item{display:flex;gap:12px;align-items:center}
.cart-item .gicon{width:46px;height:46px;margin:0}
.cart-item .gicon .ico{width:22px;height:22px}
.qty{display:flex;align-items:center;border:1px solid var(--line2);border-radius:10px;overflow:hidden}
.qty button{width:32px;height:32px;background:none;border:0;cursor:pointer;color:var(--sub);display:grid;place-items:center}
.qty button:disabled{color:#c9d0d8;cursor:default}
.qty button .ico{width:16px;height:16px}
.qty span{min-width:24px;text-align:center;font-size:14px;font-weight:600}
.total-row{display:flex;justify-content:space-between;align-items:center;font-size:16px;font-weight:600}
.total-row b{font-size:22px;color:var(--primary);font-weight:800}
.bank{background:var(--surface2);border-radius:12px;padding:14px 16px;font-size:14px}
.pay-sel{display:flex;align-items:center;gap:8px;padding:15px 16px;border:1.5px solid var(--primary);border-radius:12px;background:var(--primary-t);color:var(--primary);font-weight:700}

/* 마이페이지 */
.profile-card{display:flex;gap:14px;align-items:center}
.avatar{width:54px;height:54px;border-radius:50%;background:var(--primary-t);display:grid;place-items:center;font-weight:800;font-size:20px;color:var(--primary);flex:none}
.counts{display:grid;grid-template-columns:repeat(4,1fr);text-align:center}
.counts a{padding:4px 0;border-radius:10px;transition:background .2s}
.counts a:hover{background:var(--surface2)}
.counts b{display:block;font-size:21px;font-weight:800}
.counts span{font-size:12px;color:var(--muted)}

.footer{padding:28px 18px 12px;color:var(--muted);font-size:12px;line-height:1.75;background:var(--surface2);margin-top:44px}
.footer a{color:var(--sub)}

.auth{padding:40px 22px;animation:rise .4s var(--ease) both}
.auth h1{font-size:25px;font-weight:800;letter-spacing:-.04em;margin-bottom:6px}
.auth .lead{color:var(--muted);margin-bottom:28px;font-size:14px}

/* 고객센터 플로팅 */
.cs-fab{position:fixed;z-index:35;right:calc(max(0px,(100vw - 480px)/2) + 16px);bottom:92px;width:52px;height:52px;border-radius:50%;background:var(--primary);color:#fff;
  border:0;cursor:pointer;display:grid;place-items:center;box-shadow:0 8px 20px rgba(47,108,246,.35);transition:transform .2s var(--ease)}
.cs-fab:hover{transform:translateY(-2px)}
.cs-fab .ico{width:24px;height:24px}
.cs-panel{position:fixed;z-index:36;right:calc(max(0px,(100vw - 480px)/2) + 16px);bottom:154px;width:min(340px,calc(100vw - 32px));background:#fff;border-radius:20px;
  box-shadow:0 16px 48px rgba(25,31,40,.18);overflow:hidden;animation:pop .3s var(--ease) both}
.cs-panel[hidden]{display:none}
.cs-head{background:var(--primary);color:#fff;padding:18px 20px;display:flex;align-items:center;gap:12px}
.cs-head .ci{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.18);display:grid;place-items:center}
.cs-head b{display:block;font-size:16px}
.cs-head span{font-size:12px;opacity:.85}
.cs-head button{margin-left:auto;background:none;border:0;color:#fff;cursor:pointer;display:grid;place-items:center;width:32px;height:32px;border-radius:8px}
.cs-head button:hover{background:rgba(255,255,255,.15)}
.cs-body{padding:18px 20px 20px;display:grid;gap:8px}
.cs-body a.cs-link{display:flex;align-items:center;gap:10px;padding:13px 14px;border-radius:12px;background:var(--surface2);font-size:14px;font-weight:600;transition:background .2s}
.cs-body a.cs-link:hover{background:var(--primary-t);color:var(--primary)}
.cs-body a.cs-link .ico:last-child{margin-left:auto;color:var(--muted)}

/* ========== 관리자 ========== */
.adm{display:flex;min-height:100vh;background:var(--page)}
.side{width:236px;flex:none;border-right:1px solid var(--line);padding:18px 12px;position:sticky;top:0;height:100vh;overflow-y:auto;background:#fff}
.side .logo{padding:4px 10px 20px;font-size:19px;flex-wrap:wrap;row-gap:2px}
.side .logo small{font-weight:600;color:var(--muted);font-size:12px;margin-left:2px;white-space:nowrap;letter-spacing:0}
.side nav a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;color:var(--sub);font-size:14px;font-weight:500;transition:background .2s,color .2s}
.side nav a:hover{background:var(--surface2)}
.side nav a.on{background:var(--primary-t);color:var(--primary);font-weight:700}
.side .group{font-size:11px;color:var(--muted);padding:16px 12px 6px;font-weight:600}
.adm-main{flex:1;min-width:0}
.adm-top{height:62px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid var(--line);position:sticky;top:0;
  background:rgba(255,255,255,.94);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);z-index:10}
.adm-top h1{font-size:18px;font-weight:800;letter-spacing:-.02em}
.adm-body{padding:24px 28px 60px;max-width:1240px;animation:rise .35s var(--ease) both}
.adm .flash{margin:0 0 14px}
.menu-btn{display:none}
.grid{display:grid;gap:12px}
.g4{grid-template-columns:repeat(4,1fr)}.g3{grid-template-columns:repeat(3,1fr)}.g2{grid-template-columns:repeat(2,1fr)}
.g-main{grid-template-columns:2fr 1fr}
.stat{display:block;background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:18px 20px;box-shadow:var(--shadow);transition:box-shadow .2s,transform .2s}
a.stat:hover{box-shadow:var(--shadow-h);transform:translateY(-2px)}
.stat span{font-size:13px;color:var(--muted);font-weight:500}
.stat b{display:block;font-size:25px;font-weight:800;margin-top:6px;letter-spacing:-.03em}
.stat small{font-size:12px;color:var(--muted)}
.bars{display:flex;align-items:flex-end;gap:10px;height:170px;padding-top:10px}
.bars>div{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;height:100%;justify-content:flex-end}
.bars i{display:block;width:100%;max-width:38px;background:var(--primary);border-radius:8px 8px 3px 3px;min-height:3px;opacity:.9}
.bars small{font-size:11px;color:var(--muted)}
.bars em{font-size:10px;color:var(--sub);font-style:normal}
.table-wrap{background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow-x:auto;box-shadow:var(--shadow)}
table{width:100%;border-collapse:collapse;font-size:14px}
th{text-align:left;font-weight:600;color:var(--muted);font-size:12px;padding:12px 14px;border-bottom:1px solid var(--line);white-space:nowrap;background:#fafbfc}
td{padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:middle}
tr:last-child td{border-bottom:0}
tbody tr{transition:background .15s}
tbody tr:hover td{background:#fafbfc}
td.nowrap,th.nowrap{white-space:nowrap}
.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:14px}
.tabs{display:flex;gap:6px;flex-wrap:wrap}
.tabs a{height:34px;padding:0 13px;border-radius:10px;border:1px solid var(--line2);background:#fff;font-size:13px;display:inline-flex;align-items:center;gap:6px;color:var(--sub);transition:background .2s}
.tabs a:hover{background:var(--surface2)}
.tabs a.on{background:var(--primary);color:#fff;border-color:var(--primary);font-weight:700}
.tabs a em{font-style:normal;font-size:11px;opacity:.75}
.pager{display:flex;gap:6px;justify-content:center;margin-top:16px}
.pager a{min-width:34px;height:34px;display:grid;place-items:center;border-radius:9px;border:1px solid var(--line2);background:#fff;font-size:13px}
.pager a.on{background:var(--primary);color:#fff;border-color:var(--primary);font-weight:700}
.opt-table td{padding:8px}
.opt-table .input{height:40px}
.inline{display:inline}
.thumb{height:52px;width:52px;object-fit:cover;border-radius:12px;border:1px solid var(--line)}
.thumb-sm{height:36px;width:36px;object-fit:cover;border-radius:50%;background:#eef1f5}
.log{font-size:13px;padding:8px 0;border-bottom:1px solid var(--line);display:flex;gap:10px}
.log:last-child{border:0}
.answer{background:var(--primary-t);border-radius:12px;padding:14px 16px;margin-top:14px}
.adm-login{min-height:100vh;display:grid;place-items:center;padding:24px;background:var(--page)}
.adm-login .card{width:100%;max-width:400px;padding:32px 28px;animation:pop .4s var(--ease) both}

@media(max-width:900px){
  .g4{grid-template-columns:repeat(2,1fr)}.g3,.g-main{grid-template-columns:1fr}
  .side{position:fixed;left:-260px;z-index:50;transition:left .25s var(--ease);width:240px}
  .side.open{left:0;box-shadow:0 0 0 100vmax rgba(25,31,40,.35)}
  .menu-btn{display:grid}
  .adm-top{padding:0 14px}
  .adm-body{padding:16px 14px 60px}
  .hide-m{display:none}
}
@media(max-width:520px){.g2{grid-template-columns:1fr}}
