:root {
  --bg: #f4f6f8;
  --card: #fff;
  --ink: #1c2430;
  --muted: #5d6b7c;
  --faint: #8b97a6;
  --line: #e3e8ef;
  --ok: #1f8a4c;
  --buy: #f5c518;
  --buyfg: #1c1915;
  --strip: #1c6fe0;
  --market: #e7f2ff;
  --go: #ef6c00;
  --leaf: #1f4d3a;
  --bad: #d64545;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Outfit, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.wrap { max-width: 32rem; margin: 0 auto; min-height: 100vh; background: var(--bg); }
.market { background: var(--market); padding: 12px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tab { height: 64px; border: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.tab-brand { background: var(--buy); color: var(--buyfg); font-size: 20px; font-weight: 650; }
.tab-travel { background: #fff; color: var(--muted); flex-direction: column; gap: 2px; font-style: italic; }
.tab-travel.on { color: var(--ink); outline: 2px solid var(--strip); }
.search { display: flex; align-items: center; gap: 8px; height: 48px; margin: 8px 12px 4px; padding: 0 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.search input { border: 0; outline: 0; width: 100%; background: transparent; }
.cats { display: flex; gap: 4px; overflow-x: auto; padding: 4px 8px 8px; background: #fff; }
.cat { width: 76px; flex: 0 0 auto; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; color: #5d6b7c; font-size: 12px; text-decoration: none; }
.cat.on { color: #1c1915; font-weight: 700; }
.cat i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; background: #fff6d8; }
.cat.on i { background: #ffe14a; }
.cat i img { width: 22px; height: 22px; }
.bar { height: 2px; width: 32px; border-radius: 99px; background: transparent; }
.cat.on .bar { background: #e2b100; }
.banner { display: block; width: calc(100% - 24px); height: 160px; object-fit: cover; border-radius: 10px; margin: 8px 12px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; }
.card { background: #fff; border-radius: 10px; padding: 8px; min-width: 0; }
.card img.shot { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.name { margin: 8px 0 0; font-size: 14px; line-height: 1.25; min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.off { color: var(--ok); font-size: 12px; font-weight: 650; }
.old { color: var(--faint); font-size: 12px; text-decoration: line-through; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.price { font-size: 16px; font-weight: 700; }
.badge { display: inline-flex; align-items: center; gap: 4px; background: var(--strip); color: #fff; border-radius: 99px; padding: 2px 6px 2px 2px; font-size: 12px; font-weight: 650; }
.badge b { width: 16px; height: 16px; border-radius: 99px; background: var(--buy); color: var(--buyfg); display: grid; place-items: center; }
.rate { display: flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.pill { background: var(--ok); color: #fff; border-radius: 4px; padding: 2px 4px; font-weight: 700; }
.free { margin: 4px 0 0; font-size: 12px; }
.foot { text-align: center; color: var(--muted); font-size: 14px; padding: 28px 16px; }
.foot a { color: var(--leaf); font-weight: 650; }
.blue { position: sticky; top: 0; z-index: 5; background: var(--strip); color: #fff; display: flex; align-items: center; gap: 6px; padding: 8px; }
.blue a, .blue button { color: #fff; background: none; border: 0; width: 44px; height: 44px; }
.blue form { flex: 1; display: flex; align-items: center; height: 44px; background: #fff; color: var(--ink); border-radius: 4px; padding: 0 10px; }
.blue input { border: 0; outline: 0; width: 100%; }
.paper { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 8px; }
.paper a { width: 44px; height: 44px; display: grid; place-items: center; }
.slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider::-webkit-scrollbar { display: none; }
.slide { min-width: 100%; scroll-snap-align: center; padding: 12px 16px 0; }
.slide img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.arrows { position: relative; }
.arrows button { position: absolute; top: 42%; width: 44px; height: 44px; border: 0; border-radius: 99px; background: rgba(255,255,255,.92); }
.arrows .prev { left: 4px; }
.arrows .next { right: 4px; }
.dots { display: flex; justify-content: center; gap: 8px; padding: 12px 0; }
.dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: var(--line); }
.dots button.on { background: var(--strip); }
.home-banners { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; width: calc(100% - 24px); height: 58vh; min-height: 280px; max-height: 460px; margin: 12px auto 8px; border-radius: 18px; }
.home-banners img { flex: 0 0 100%; width: 100%; height: 100%; max-width: none; object-fit: cover; scroll-snap-align: start; }
.block { background: #fff; margin-top: 8px; padding: 16px; }
.rumig-pill { display: inline-flex; background: var(--leaf); color: #f7f4ee; border-radius: 4px; padding: 4px 8px; font-size: 12px; font-weight: 700; }
.services { display: grid; grid-template-columns: 1fr 1fr 1fr; text-align: center; font-size: 12px; }
.services div { padding: 8px; }
.spec { display: grid; grid-template-columns: 42% 1fr; gap: 12px; border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 14px; }
.muted { color: var(--muted); }
.buybar { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-top: 1px solid var(--line); }
.buybar form { display: flex; min-width: 0; }
.buybar button, .buybar a { width: 100%; height: 64px; border: 0; background: #fff; font-weight: 700; display: grid; place-items: center; text-align: center; }
.buybar .now { background: var(--buy); color: #1c1915; }
.steps { display: flex; background: #fff; padding: 16px; }
.step { flex: 1; text-align: center; font-size: 12px; color: var(--muted); position: relative; }
.step b { width: 32px; height: 32px; border-radius: 99px; display: grid; place-items: center; margin: 0 auto 8px; border: 1px solid var(--line); background: #fff; position: relative; z-index: 1; }
.step.on b, .step.done b { background: var(--strip); color: #fff; border-color: var(--strip); }
.field { width: 100%; height: 56px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; background: #fff; margin-bottom: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.proceed { padding: 4px 0 24px; background: transparent; }
.proceed button, .go { width: 100%; height: 56px; border: 0; border-radius: 8px; background: #ffe14a; color: #1c1915; font-weight: 700; }
.payline { width: 100%; height: 64px; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: flex; align-items: center; gap: 12px; padding: 0 12px; margin-bottom: 12px; text-align: left; }
.payline.on { border-color: var(--strip); background: #f5f9ff; }
.dot { width: 18px; height: 18px; border: 2px solid var(--muted); border-radius: 99px; display: grid; place-items: center; }
.payline.on .dot { border-color: var(--strip); }
.payline.on .dot span { width: 8px; height: 8px; border-radius: 99px; background: var(--strip); }
.bottom { background: #fff; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 16px; margin-top: 8px; }
.yellow { height: 48px; min-width: 140px; border: 0; border-radius: 4px; background: var(--buy); font-weight: 700; display: grid; place-items: center; }
.ok { color: var(--ok); }
.center { text-align: center; }
.admin { max-width: 46rem; margin: 0 auto; padding: 12px 12px 40px; }
.admin-top { display: flex; align-items: center; gap: 10px; background: #fff6d8; border-radius: 16px; padding: 12px; margin-bottom: 12px; }
.admin-top img { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; }
.admin-top span { display: block; font-size: 12px; color: #5d6b7c; }
.admin nav { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 4px; }
.admin nav a, .btn { display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); white-space: nowrap; }
.admin nav a.on { background: #ffe14a; color: #1c1915; border-color: #ffe14a; }
.table-wrap { overflow-x: auto; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--line); }
.switch-row input { width: 22px; height: 22px; }
.pay-card h2 { margin-top: 0; }
@media (max-width: 640px) {
  .admin { padding: 8px 8px 32px; }
  th, td { font-size: 13px; }
  .two { grid-template-columns: 1fr; }
}
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
textarea.field { height: 140px; padding: 12px; }
.note { background: #fff8e8; border: 1px solid #f0e0b0; padding: 12px; border-radius: 8px; }

.desk-body { background: #f6f7fb; }
.desk-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 12px; background: #fff; border-bottom: 1px solid #e6e8ef; }
.menu-btn { width: 44px; height: 44px; border: 0; background: transparent; font-size: 22px; }
.desk-top strong { flex: 1; }
.chip { height: 36px; padding: 0 12px; border-radius: 999px; background: #eef2ff; display: inline-flex; align-items: center; }
.drawer-bg { display: none; }
.drawer { position: fixed; z-index: 30; top: 0; left: 0; bottom: 0; width: min(280px, 86vw); background: #fff; transform: translateX(-105%); transition: transform .2s ease; padding: 16px 0; overflow: auto; }
.drawer-title { margin: 0 16px 12px; font-size: 18px; font-weight: 700; }
.drawer a { display: block; padding: 14px 18px; color: #3c4554; }
.drawer a.on { background: #e8f0ff; color: #1d4ed8; }
.menu-open .drawer { transform: none; }
.menu-open .drawer-bg { display: block; position: fixed; inset: 0; background: rgba(20, 24, 33, .35); z-index: 25; }
.desk-main { padding: 16px; max-width: 860px; margin: 0 auto; }
.card { background: #fff; border: 1px solid #e6e8ef; border-radius: 16px; padding: 16px; margin-bottom: 16px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.stat { background: #fff; border-radius: 16px; padding: 16px; border: 1px solid #e6e8ef; }
.stat b { display: block; font-size: 28px; }
.btn-blue, .btn-red { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 14px; border: 0; border-radius: 10px; color: #fff; font-weight: 700; margin: 4px 4px 4px 0; }
.btn-blue { background: #2563eb; }
.btn-red { background: #ef4444; }
.toggle { width: 52px; height: 30px; border: 0; border-radius: 999px; background: #d1d5db; position: relative; }
.toggle:after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 999px; background: #fff; }
.toggle.on { background: #22c55e; }
.toggle.on:after { left: 25px; }
@media (min-width: 900px) {
  .drawer { transform: none; }
  .drawer-bg, .menu-btn { display: none; }
  .desk-main { margin-left: 280px; }
}