/* MTOKO Admin — desktop layout built from the app's drawer, list cards and pill controls */
.stars .ic.off { color: #3a3a3a; }

/* ---------- Login (mirrors the Sign-up screen) ---------- */
.login { min-height: 100vh; display: grid; place-items: center; position: relative; overflow: hidden; padding: 24px 16px; }
.login::before { content: ''; position: absolute; width: 280px; height: 280px; border: 46px solid var(--green); border-radius: 50%; top: -150px; left: -150px; }
.login::after { content: ''; position: absolute; width: 360px; height: 360px; border: 3px solid var(--green); border-radius: 50%; bottom: -200px; right: -160px; opacity: .6; }
.login-box { width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 18px; position: relative; z-index: 1; }
.login-box .mark { width: 92px; }
.login-box h1 { margin: -6px 0 0; font-size: 26px; font-weight: 800; letter-spacing: .5px; text-align: center; }
.login-box h1 small { display: block; font-size: 8px; letter-spacing: 4px; color: var(--muted); font-weight: 500; margin-top: 4px; }
.login-box .sub { color: var(--muted); font-size: 13px; margin: -6px 0 6px; }
.login-box form { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.login-box .btn { align-self: center; padding: 9px 36px; }
.login-box .err { color: #ff6b6e; font-size: 12px; text-align: center; min-height: 14px; }
.login-box .hint { font-size: 12px; color: var(--muted); text-align: center; }
.login-box .hint b { color: var(--green); }
.field .toggle { background: none; border: 0; color: #888; padding: 0; display: grid; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: #000; z-index: 40; }
.side .brand { padding: 22px 24px 18px; }
.side .brand .logo img { height: 34px; }
.side .brand .logo b { font-size: 24px; }
.drawer { flex: 1; background: var(--green); border-radius: 0 34px 0 0; color: #101a06; display: flex; flex-direction: column; overflow: hidden; }
.drawer .me { display: flex; align-items: center; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid rgba(0,0,0,.12); }
.drawer .me img, .avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; background: #222; flex: none; }
.drawer .me b { display: block; font-size: 14px; color: #000; }
.drawer .me span { font-size: 11px; color: #2e4a14; }
.nav { flex: 1; overflow-y: auto; padding: 6px 0; }
.nav a { display: flex; align-items: center; gap: 14px; padding: 11px 22px; font-size: 14px; color: #0f1a05; border-bottom: 1px solid rgba(0,0,0,.08); position: relative; }
.nav a .ic { color: #0f1a05; }
.nav a:hover { background: rgba(0,0,0,.07); }
.nav a.on { background: #000; color: var(--green); font-weight: 600; margin: 2px 12px; border-radius: 14px; border-bottom-color: transparent; padding: 11px 12px; }
.nav a.on .ic { color: var(--green); }
.nav a .badge { margin-left: auto; }
.nav .grp { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: #2e4a14; padding: 14px 22px 4px; font-weight: 700; }
.drawer .out { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; font-weight: 700; color: #000; background: none; border: 0; border-top: 1px solid rgba(0,0,0,.12); font-size: 14px; }
.drawer .out:hover { background: rgba(0,0,0,.07); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 16px 28px; background: rgba(0,0,0,.92); backdrop-filter: blur(8px); border-bottom: 1px solid #121212; }
.topbar .burger { display: none; background: none; border: 0; color: #fff; padding: 4px; }
.searchbox { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 10px; background: #fff; color: #222; border-radius: 12px; height: 42px; padding: 0 16px; }
.searchbox .ic { color: var(--green); }
.searchbox input { border: 0; outline: 0; flex: 1; font: inherit; font-size: 14px; background: transparent; color: #222; min-width: 0; }
.topbar .sp { flex: 1; }
.topbar .iconbtn { position: relative; background: none; border: 0; color: #fff; padding: 6px; border-radius: 50%; }
.topbar .iconbtn:hover { background: #151515; }
.topbar .iconbtn .dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; background: var(--red); border-radius: 50%; }
.topbar .who { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.topbar .who img { width: 40px; height: 40px; border: 2px solid var(--green); }
.topbar .who b { display: block; font-size: 13px; }

.content { padding: 26px 28px 60px; flex: 1; }
.page-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .cat-badge i { width: 54px; height: 54px; }
.page-head h1 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.1; }
.page-head h1 span { display: block; color: var(--green); font-size: 15px; font-weight: 700; }
.page-head .tools { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.select { appearance: none; background: #111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2380b746' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; color: #fff; border: 1.5px solid #2a2a2a; border-radius: 999px; padding: 8px 34px 8px 16px; font: inherit; font-size: 13px; }
.select:focus { outline: 0; border-color: var(--green); }

/* ---------- Dashboard ---------- */
.greet { margin-bottom: 20px; }
.greet small { color: var(--green); font-size: 13px; }
.greet h1 { margin: 2px 0 0; font-size: 26px; font-weight: 800; }
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 22px; }
.cats a { background: var(--surface); border: 1px solid #151515; border-radius: 18px; padding: 16px 8px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: border-color .15s; }
.cats a:hover { border-color: var(--green); }
.cats a b { font-size: 20px; }
.cats .cat-badge { font-size: 12px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.tile { background: var(--surface); border: 1px solid #151515; border-radius: 18px; padding: 18px; }
.tile .k { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 8px; }
.tile .k i { width: 30px; height: 30px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.tile .v { font-size: 26px; font-weight: 800; margin-top: 12px; letter-spacing: -.3px; }
.tile .v small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.tile .d { font-size: 11px; margin-top: 4px; color: var(--muted); }
.tile .d b { color: var(--green); }

.grid2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-bottom: 22px; }
.panel { background: var(--surface); border: 1px solid #151515; border-radius: 18px; padding: 18px 20px; min-width: 0; }
.panel-h { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; gap: 10px; }
.chart { width: 100%; height: 220px; display: block; }
.chart .bar { fill: var(--green); }
.chart .bar:hover { fill: #a6d872; }
.chart .grid { stroke: #1d1d1d; }
.chart text { fill: var(--muted); font-size: 10px; font-family: var(--font); }
.legend { display: flex; gap: 14px; font-size: 11px; color: var(--muted); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 5px; }

.pm-list .pay-row { cursor: default; }
.pm-list .pay-row b { font-size: 13px; }
.pm-list .pay-row small { display: block; font-size: 11px; color: #555; margin-top: 2px; }
.pm-bar { height: 5px; background: #bfc2c8; border-radius: 4px; margin-top: 6px; overflow: hidden; width: 140px; }
.pm-bar i { display: block; height: 100%; background: var(--green); }

/* Cart-style list rows (from the Cart screen) */
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #161616; }
.row:last-child { border-bottom: 0; }
.row .th { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; background: #1a1a1a; }
.row .tx { flex: 1; min-width: 0; font-size: 12px; }
.row .tx b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .tx span { color: var(--muted); font-size: 11px; }
.row .amt { font-weight: 700; font-size: 13px; white-space: nowrap; }
.row .acts { display: flex; gap: 6px; }

/* ---------- Card grids (Events / Hotels / Cinema / Places / Menu) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px 18px; }
.card { min-width: 0; }
.card .th { aspect-ratio: 1; border-radius: 18px; overflow: hidden; position: relative; background: #111; cursor: pointer; }
.card .th img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card .th:hover img { transform: scale(1.04); }
.card .th .badge { position: absolute; top: 10px; left: 10px; backdrop-filter: blur(6px); background: rgba(0,0,0,.65); }
.card .th .badge.published, .card .th .badge.active, .card .th .badge.available, .card .th .badge.now { color: var(--green); }
.card .th .feat { position: absolute; top: 10px; right: 10px; background: var(--green); color: #000; }
.card .rating { margin: 10px 0 8px; font-size: 10px; }
.card .ttl { font-weight: 700; font-size: 14px; margin: 8px 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .info { font-size: 12px; margin-bottom: 8px; gap: 8px; }
.card .info .ic { width: 16px; height: 16px; }
.card .meter { height: 4px; background: #1e1e1e; border-radius: 4px; overflow: hidden; margin: 10px 0 4px; }
.card .meter i { display: block; height: 100%; background: var(--green); }
.card .meter-l { font-size: 10px; color: var(--muted); display: flex; justify-content: space-between; }
.card .btns { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.card.add .th { border: 2px dashed #2b2b2b; display: grid; place-items: center; color: var(--green); background: transparent; }
.card.add .th:hover { border-color: var(--green); }
.card.add .th div { display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 600; }
.card.add .th i { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #000; display: grid; place-items: center; }

/* ---------- Tables ---------- */
.tbl-wrap { background: var(--surface); border: 1px solid #151515; border-radius: 18px; overflow: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
.tbl th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 600; padding: 14px 16px; border-bottom: 1px solid #1a1a1a; white-space: nowrap; text-transform: uppercase; letter-spacing: .6px; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid #141414; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: #0a0a0a; }
.tbl .it { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.tbl .it img, .tbl .it .ph { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; flex: none; background: #1a1a1a; }
.tbl .it .ph { border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--green); background: var(--green-soft); }
.tbl .it img.round { border-radius: 50%; }
.tbl .it b { display: block; font-size: 13px; }
.tbl .it span { font-size: 11px; color: var(--muted); }
.tbl .acts { display: flex; gap: 6px; justify-content: flex-end; }
.tbl .num { font-weight: 700; white-space: nowrap; }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); }
.empty .ic { color: var(--green); margin-bottom: 10px; }

/* Orders tabs — "Paid 07 / Unpaid 02" from My orders */
.otabs { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.otabs button { background: var(--surface); border: 1.5px solid #191919; color: #fff; border-radius: 16px; padding: 12px 22px; text-align: left; min-width: 130px; }
.otabs button span { display: block; font-size: 12px; color: var(--muted); }
.otabs button b { font-size: 22px; }
.otabs button.on { border-color: var(--green); background: var(--green-soft); }
.otabs button.on span { color: var(--green); }

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #0b0b0b; border: 1px solid #1d1d1d; border-radius: 24px; width: 100%; max-width: 880px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; overflow: hidden; animation: pop .2s ease; }
.modal.sm { max-width: 440px; }
.modal.phone-modal { background: transparent; border: 0; max-width: 420px; align-items: center; overflow: visible; }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.modal-h { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid #161616; }
.modal-h h3 { margin: 0; font-size: 17px; flex: 1; }
.modal-h .x { background: #161616; border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.modal-b { padding: 22px; overflow-y: auto; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid #161616; }
.phone-close { margin-top: 18px; }

.form { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.form .img-pick { display: flex; flex-direction: column; gap: 10px; }
.form .img-pick .pv { aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #141414; display: grid; place-items: center; color: var(--dim); }
.form .img-pick .pv img { width: 100%; height: 100%; object-fit: cover; }
.form .img-pick label.btn { cursor: pointer; }
.form .img-pick input[type=file] { display: none; }
.lib { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; max-height: 150px; overflow-y: auto; }
.lib img { aspect-ratio: 1; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; width: 100%; }
.lib img:hover, .lib img.on { border-color: var(--green); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; align-content: start; }
.fields .full { grid-column: 1 / -1; }
.fl { display: flex; flex-direction: column; gap: 6px; }
.fl > label { font-size: 12px; color: var(--muted); font-weight: 500; }
.inp { background: #fff; color: #222; border: 2px solid var(--green); border-radius: 14px; height: 42px; padding: 0 14px; font: inherit; font-size: 14px; width: 100%; outline: 0; }
.inp:focus { box-shadow: 0 0 0 3px var(--green-soft); }
textarea.inp { height: auto; min-height: 92px; padding: 10px 14px; resize: vertical; line-height: 1.4; }
select.inp { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2380b746' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.inp.bad { border-color: var(--red); }
.kv { display: flex; flex-direction: column; gap: 8px; }
.kv .kvr { display: grid; grid-template-columns: 1fr 1fr 36px; gap: 8px; }
.kv .kvr button { background: #1a1a1a; border: 0; color: #ff6b6e; border-radius: 10px; display: grid; place-items: center; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; user-select: none; }
.switch input { display: none; }
.switch i { width: 40px; height: 22px; border-radius: 99px; background: #2b2b2b; position: relative; transition: background .15s; flex: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(18px); }

/* Order receipt in modal (Order Details + Pay screens) */
.receipt { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.receipt .hero-sm { border-radius: 16px; overflow: hidden; aspect-ratio: 16/10; }
.receipt .hero-sm img { width: 100%; height: 100%; object-fit: cover; }
.receipt dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; font-size: 13px; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; text-align: right; font-weight: 600; }
.receipt .total { border-top: 1px dashed #2a2a2a; padding-top: 12px; display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; margin-top: 14px; }

/* Settings */
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.set-grid .panel h3 { margin: 0 0 16px; font-size: 15px; }

.confirm-ic { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--green); color: var(--green); display: grid; place-items: center; margin: 0 auto 14px; }
.confirm-ic.red { border-color: var(--red); color: var(--red); }
.c-text { text-align: center; font-size: 14px; line-height: 1.5; }

.backdrop { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .25s; }
  .shell.open .side { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.6); }
  .shell.open .backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 35; }
  .topbar { padding: 12px 16px; gap: 10px; }
  .topbar .burger { display: grid; }
  .topbar .who div { display: none; }
  .content { padding: 20px 16px 50px; }
  .form { grid-template-columns: 1fr; }
  .form .img-pick { max-width: 260px; }
  .set-grid, .receipt { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .fields { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 14px; }
  .tile .v { font-size: 20px; }
  .cats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .page-head .tools { margin-left: 0; width: 100%; }
  .searchbox { height: 38px; }
  .otabs button { min-width: 0; flex: 1; padding: 10px 14px; }
  .modal-b { padding: 16px; }
}
.card .th .feat { left: auto; }
.phone-modal .phone { max-height: calc(100vh - 110px); height: 844px; }
.phone-modal .phone-close { display: flex; gap: 10px; justify-content: center; }
.tbl td { white-space: nowrap; }
.tbl td[style*="max-width"] { white-space: normal; }

/* Location picker in item forms */
.geo { display: flex; flex-direction: column; gap: 8px; }
.geo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.geo-map { width: 100%; height: 240px; border: 2px solid var(--green); border-radius: 14px; background: #e9e5dc; display: block; }
.geo-hint { font-size: 11px; }

/* Initials avatar (no stock photos of people) */
.initials { width: 52px; height: 52px; border-radius: 50%; background: #000; color: var(--green); border: 3px solid #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.initials.sm { width: 40px; height: 40px; border: 2px solid var(--green); font-size: 14px; background: var(--green-soft); }

/* Live announcements (new orders, payment results) */
.live-wrap { position: fixed; top: 84px; right: 22px; z-index: 300; display: flex; flex-direction: column; gap: 10px; width: 340px; max-width: calc(100vw - 32px); }
.live-toast { background: #0d0d0d; border: 1px solid #2a2a2a; border-left: 4px solid var(--green); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; box-shadow: 0 16px 40px rgba(0,0,0,.6); animation: liveIn .45s cubic-bezier(.2,1.2,.4,1); }
.live-toast b { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--green); }
.live-toast span { font-size: 12px; color: #ddd; }
.live-toast em { font-style: normal; font-size: 12px; font-weight: 700; color: #fff; }
.live-toast.bad { border-left-color: var(--red); } .live-toast.bad b { color: #ff6b6e; }
.live-toast.out { animation: liveOut .5s forwards; }
@keyframes liveIn { from { opacity: 0; transform: translateX(40px) scale(.96); } }
@keyframes liveOut { to { opacity: 0; transform: translateX(40px); } }
.wlogo { width: 34px; height: 34px; border-radius: 9px; background: #fff; object-fit: contain; padding: 3px; flex: none; }
.wlogo.ph { display: grid; place-items: center; color: #1d3557; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .5px; }
/* gentle entrance for pages and cards */
.content.enter > * { animation: pageIn .35s ease both; }
.content.enter .cards .card, .content.enter .tbl tbody tr, .content.enter .tiles .tile { animation: pageIn .4s ease both; }
.content.enter .cards .card:nth-child(2) { animation-delay: .04s } .content.enter .cards .card:nth-child(3) { animation-delay: .08s } .content.enter .cards .card:nth-child(4) { animation-delay: .12s }
.content.enter .cards .card:nth-child(5) { animation-delay: .16s } .content.enter .cards .card:nth-child(n+6) { animation-delay: .2s }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .content.enter > *, .content.enter .cards .card, .content.enter .tbl tbody tr, .content.enter .tiles .tile, .live-toast { animation: none !important; } }

/* ---- kitchen board ---- */
.kanban { display: grid; grid-template-columns: repeat(6, minmax(210px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kcol { background: #0b0b0b; border: 1px solid #1a1a1a; border-radius: 16px; padding: 10px; min-height: 200px; }
.kcol-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.kcard { background: #151515; border: 1px solid #222; border-radius: 12px; padding: 10px; margin-bottom: 10px; animation: kin .35s ease-out; }
@keyframes kin { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.kh { display: flex; justify-content: space-between; font-size: 12px; }
.kv-name { color: #80b746; font-size: 11px; margin: 2px 0 6px; }
.kl { font-size: 12px; margin: 3px 0; }
.kl small { display: block; color: #999; font-size: 11px; }
.kl small.note { color: #f5a524; }
.kd { display: flex; gap: 6px; align-items: center; font-size: 11px; color: #aaa; margin-top: 4px; }
.kb { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.kempty { color: #444; text-align: center; padding: 20px 0; }
/* ---- gallery & theme editors ---- */
.gal { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.gal .g { position: relative; width: 84px; height: 64px; border-radius: 10px; overflow: hidden; background: #111; }
.gal .g img { width: 100%; height: 100%; object-fit: cover; }
.gal .g button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.gal-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gal-add .inp { flex: 1; min-width: 200px; }
.theme-row { display: flex; gap: 14px; flex-wrap: wrap; }
.theme-row label { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: #aaa; }
.theme-row input[type=color] { width: 44px; height: 44px; border: 2px solid #333; border-radius: 12px; background: none; padding: 0; cursor: pointer; }
/* ---- ride fares ---- */
.rp { display: grid; gap: 10px; }
.rp-row { display: grid; grid-template-columns: 50px 90px repeat(4, minmax(80px, 1fr)); gap: 10px; align-items: end; }
.rp-row label span { display: block; font-size: 11px; color: #888; margin-bottom: 3px; }
@media (max-width: 700px) { .rp-row { grid-template-columns: 50px 1fr 1fr; } }

/* ---- ticket designer ---- */
.modal.wide { max-width: 1100px; width: 96vw; }
.td-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.td-stage { position: relative; width: 100%; aspect-ratio: 1 / 1.5; background: #000; border-radius: 16px; overflow: hidden; touch-action: none; user-select: none; }
.td-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.td-box { position: absolute; border: 2px dashed rgba(255,255,255,.85); border-radius: 12px; cursor: move; padding: 10px 12px; box-shadow: 0 0 0 9999px rgba(0,0,0,0); transition: border-color .2s; }
.td-box:hover { border-color: #80b746; }
.td-text b { display: block; font-size: clamp(14px, 2vw, 22px); font-weight: 800; line-height: 1.1; }
.td-text span { display: block; font-size: 10px; font-weight: 600; margin-top: 8px; letter-spacing: .5px; }
.td-qr { padding: 0; aspect-ratio: 1; }
.td-qr-in { width: 100%; height: 100%; border-radius: 10px; background: repeating-conic-gradient(#000 0 25%, #fff 0 50%) 0 0 / 14% 14%; border: 6px solid #fff; display: grid; place-items: center; font-weight: 800; color: #80b746; text-shadow: 0 0 6px #000; }
.td-rs { position: absolute; right: -8px; bottom: -8px; width: 18px; height: 18px; border-radius: 50%; background: #80b746; border: 3px solid #fff; cursor: nwse-resize; }
.td-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.td-side .lib { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; max-height: 120px; overflow: auto; }
.td-side .lib img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: pointer; }
.td-prev img { width: 100%; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
@media (max-width: 860px) { .td-wrap { grid-template-columns: 1fr; } }
