/* Gifty design system: one stylesheet for the customer site, vendor and admin panels. */
@font-face { font-family: Jakarta; font-weight: 400; font-display: swap; src: url('../font/plus-jakarta-sans-400-normal.woff2') format('woff2'); }
@font-face { font-family: Jakarta; font-weight: 600; font-display: swap; src: url('../font/plus-jakarta-sans-600-normal.woff2') format('woff2'); }
@font-face { font-family: Jakarta; font-weight: 800; font-display: swap; src: url('../font/plus-jakarta-sans-800-normal.woff2') format('woff2'); }
:root {
    --bg: #fff; --band: #f4f4f6; --card: #fff; --ink: #1c1c22; --ink-2: #55555f; --mu: #8a8a96; --line: #e7e7ec;
    --red: #ff3b5c; --red-d: #e62e4f; --grad: linear-gradient(135deg, #ff3b5c, #ff7a45); --soft: #fff1f3;
    --green: #15803d; --green-s: #dcfce7; --amber: #a16207; --amber-s: #fef3c7; --blue: #1d4ed8; --blue-s: #dbeafe;
    --purple: #6d28d9; --purple-s: #ede9fe; --wa: #25d366;
    --sh: 0 1px 2px rgba(15,15,18,.04), 0 10px 30px rgba(15,15,18,.07); --r: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 Jakarta, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; border: 0; background: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.5px; line-height: 1.2; }
p { margin: 0 0 12px; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.mu { color: var(--mu); }
.ink2 { color: var(--ink-2); }
.red { color: var(--red); }
.green { color: var(--green); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt { margin-top: 18px; } .mt2 { margin-top: 30px; } .mb { margin-bottom: 18px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .5px; }
.noscroll { overflow: hidden; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s, opacity .15s; border: 1px solid transparent; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-d); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(255,59,92,.28); }
.btn-line { border-color: var(--line); background: #fff; }
.btn-line:hover { border-color: var(--ink); }
.btn-soft { background: var(--band); }
.btn-soft:hover { background: #ebebef; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 54px; font-size: 16px; border-radius: 14px; padding: 0 26px; }
.btn-block { width: 100%; }
.link { color: var(--red); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------- forms */
.field { margin-bottom: 16px; }
.field > label, .lbl { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.lbl small, .field > label small { font-weight: 400; color: var(--mu); }
.inp, .sel, .txt { width: 100%; height: 46px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; outline: 0; background: #fff; transition: border-color .15s; }
.txt { height: auto; padding: 12px 14px; resize: vertical; min-height: 84px; }
.sel { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8a96' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") right 14px center no-repeat; padding-right: 36px; }
.inp:focus, .sel:focus, .txt:focus { border-color: var(--ink); }
.inp-sm { height: 38px; border-radius: 9px; font-size: 14px; }
.hint { font-size: 13px; color: var(--mu); margin-top: 6px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.prefix { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; height: 46px; padding: 0 14px; gap: 8px; background: #fff; }
.prefix:focus-within { border-color: var(--ink); }
.prefix span { color: var(--mu); font-weight: 600; }
.prefix input { flex: 1; border: 0; outline: 0; min-width: 0; height: 100%; background: transparent; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: var(--band); border-radius: 12px; padding: 4px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { height: 40px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(15,15,18,.1); }
.seg input:checked + span .fa-whatsapp { color: var(--wa); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); }
.pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pick label input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { height: 46px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 800; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pick input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.stk { display: flex; gap: 8px; flex-wrap: wrap; }
.stk label input { position: absolute; opacity: 0; pointer-events: none; }
.stk span { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); font-size: 21px; display: grid; place-items: center; cursor: pointer; }
.stk input:checked + span { border-color: var(--red); background: var(--soft); }

/* ---------- cards, badges, alerts, tables, tabs */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.card + .card { margin-top: 16px; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-h h2, .card-h h3 { font-size: 17px; }
.card-flush { padding: 0; overflow: hidden; }
.card-flush .card-h { padding: 18px 20px 0; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--band); color: var(--ink-2); white-space: nowrap; }
.b-green { background: var(--green-s); color: var(--green); }
.b-amber { background: var(--amber-s); color: var(--amber); }
.b-blue { background: var(--blue-s); color: var(--blue); }
.b-red { background: var(--soft); color: var(--red-d); }
.b-purple { background: var(--purple-s); color: var(--purple); }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; background: var(--band); }
.alert i { margin-top: 3px; }
.alert-success { background: var(--green-s); color: #14532d; }
.alert-danger { background: var(--soft); color: #9f1239; }
.alert-info { background: var(--blue-s); color: #1e3a8a; }
.alert-warning { background: var(--amber-s); color: #713f12; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--mu); text-transform: uppercase; letter-spacing: .05em; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafafb; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fcfcfd; }
.tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl tfoot td { font-weight: 800; background: #fafafb; border-top: 1px solid var(--line); }
.tbl-sm td, .tbl-sm th { padding: 8px 10px; }
.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.kv td { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.kv td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.kv tr:last-child td { border-bottom: 0; }
.kv .tot td { font-weight: 800; font-size: 16px; border-top: 1px solid var(--ink); border-bottom: 0; padding-top: 12px; }
.kv .neg { color: var(--red-d); }
.kv .sub td { font-size: 12px; font-weight: 600; color: var(--mu); text-transform: uppercase; letter-spacing: .06em; padding-top: 16px; border-bottom: 0; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex-shrink: 0; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 6px; }
.tabs a:hover { border-color: var(--ink); }
.tabs a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs a .badge { height: 20px; background: rgba(0,0,0,.08); color: inherit; }
.tabs a.on .badge { background: rgba(255,255,255,.2); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex-shrink: 0; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.chips a:hover { border-color: var(--red); color: var(--red); }
.chips a.on { background: var(--red); border-color: var(--red); color: #fff; }
.empty { text-align: center; padding: 46px 20px; color: var(--mu); }
.empty i { font-size: 34px; color: #d4d4da; display: block; margin-bottom: 10px; }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 18px; }
.pager a, .pager span { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.pager .on { background: var(--ink); color: #fff; border-color: var(--ink); }
.steps { display: flex; gap: 10px; counter-reset: s; }
.steps li { list-style: none; flex: 1; font-size: 14px; color: var(--ink-2); }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 8px; }
.list-dots { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.list-dots li { margin-bottom: 6px; }

/* ---------- gift card art (the card someone buys) */
.gc { aspect-ratio: 1.586; border-radius: 18px; padding: 18px 20px; color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; background: var(--grad); }
.gc::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.28), transparent 55%), radial-gradient(70% 60% at 0% 100%, rgba(0,0,0,.18), transparent 60%); }
.gc .big { position: absolute; right: -10px; bottom: -18px; font-size: 120px; opacity: .2; z-index: -1; transform: rotate(-10deg); }
.gc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.gc-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gc-mark { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.95); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.gc-name { font-weight: 800; font-size: 17px; letter-spacing: -.3px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-cat { font-size: 12px; opacity: .85; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-chip { width: 34px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #f8e7a8, #d6b25a); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); flex-shrink: 0; }
.gc-bot { display: flex; justify-content: space-between; align-items: flex-end; }
.gc-label { font-size: 11px; letter-spacing: .16em; font-weight: 800; opacity: .9; }
.gc-amt { font-size: 28px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.gc-sticker { position: absolute; top: 50%; right: 22px; transform: translateY(-60%); font-size: 34px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.2)); }
.gc-sm { border-radius: 12px; padding: 10px 12px; }
.gc-sm .gc-mark { width: 26px; height: 26px; font-size: 10px; border-radius: 8px; }
.gc-sm .gc-name { font-size: 12.5px; }
.gc-sm .gc-cat, .gc-sm .gc-chip { display: none; }
.gc-sm .gc-amt { font-size: 17px; }
.gc-sm .gc-label { font-size: 8px; }
.gc-sm .big { font-size: 64px; }
.gc-sm .gc-sticker { font-size: 20px; right: 12px; }

/* ---------- store tiles (neutral) */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 18px; }
.tiles-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tile { display: block; text-align: left; min-width: 0; width: 100%; }
.ta { aspect-ratio: 1.586; border-radius: 14px; background: var(--band) center / cover no-repeat; position: relative; overflow: hidden; display: grid; place-items: center; transition: transform .25s, box-shadow .25s; }
.ta .bgi { position: absolute; right: -6px; bottom: -14px; font-size: 80px; color: #e8e8ee; }
.ta .mk { width: 58px; height: 58px; border-radius: 16px; background: #fff; box-shadow: 0 2px 8px rgba(15,15,18,.08); display: grid; place-items: center; font-weight: 800; font-size: 18px; position: relative; }
.ta .ct { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 600; color: var(--ink-2); background: #fff; border-radius: 999px; padding: 4px 9px; }
.ta.has-img .bgi, .ta.has-img .mk { display: none; }
.ta .hot { position: absolute; right: 10px; top: 10px; font-size: 11px; font-weight: 600; color: var(--red); background: #fff; border-radius: 999px; padding: 4px 9px; }
.tile:hover .ta { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(15,15,18,.1); }
.tname { font-weight: 800; font-size: 15px; margin-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile:hover .tname { color: var(--red); }
.tsub { color: var(--mu); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- site header / footer */
.hdr { position: sticky; top: 0; z-index: 40; background: #fff; box-shadow: 0 1px 0 var(--line); }
.top { display: flex; align-items: center; gap: 22px; height: 66px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 24px; letter-spacing: -.8px; flex-shrink: 0; }
.logo i { width: 34px; height: 34px; border-radius: 11px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 16px; }
.logo small { font-size: 12px; font-weight: 600; color: var(--mu); letter-spacing: 0; margin-left: 2px; }
.search { flex: 1; max-width: 600px; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); }
.search:focus-within { border-color: var(--ink); }
.search i { color: var(--mu); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; }
.citybtn { margin-left: auto; display: flex; align-items: center; gap: 6px; height: 40px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.citybtn .fa-map-marker { color: var(--red); }
.citybtn .fa-angle-down { color: var(--mu); }
.menu { position: relative; }
.menu-btn { display: flex; align-items: center; gap: 8px; height: 40px; font-weight: 600; font-size: 14px; }
.ava { width: 34px; height: 34px; border-radius: 50%; background: var(--band) center / cover; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--ink-2); flex-shrink: 0; }
.menu-pop { position: absolute; right: 0; top: 48px; width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 40px rgba(15,15,18,.12); padding: 6px; display: none; z-index: 60; }
.menu.open .menu-pop { display: block; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 9px; font-size: 14px; text-align: left; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--band); }
.menu-pop i { width: 16px; color: var(--mu); }
.menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu-pop .who { padding: 8px 12px 10px; font-size: 13px; color: var(--mu); }
.menu-pop .who b { display: block; color: var(--ink); font-size: 14px; }
main.site { min-height: 60vh; padding-bottom: 20px; }
.ft { background: #2a2a30; color: #9a9aa5; margin-top: 50px; padding: 26px 0; font-size: 13px; }
.ft-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.ft .logo { color: #fff; font-size: 20px; }
.ft .logo i { width: 28px; height: 28px; font-size: 13px; border-radius: 9px; }
.ft a { margin-left: 18px; }
.ft a:hover { color: #fff; }
.tabbar { display: none; }

/* ---------- home */
.hero { padding: 34px 0 4px; }
.hero p { margin: 10px 0 0; color: var(--ink-2); }
.cityline { display: flex; align-items: center; gap: 14px; }
.cityline .ci { width: 52px; height: 52px; flex-shrink: 0; background: var(--red); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.cityline .cf { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; background: var(--soft); color: var(--red); display: grid; place-items: center; font-size: 22px; }
.cityline small { display: block; font-size: 12px; color: var(--mu); }
.cityline b { font-size: 30px; letter-spacing: -1px; line-height: 1.1; }
.cityline button { color: var(--red); font-weight: 600; font-size: 14px; margin-left: 4px; align-self: flex-end; padding-bottom: 5px; }
.sec { margin-top: 34px; }
.sec-h { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.sec-h h2 { font-size: 22px; font-weight: 800; }
.catgrid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 18px 10px; }
.cat { text-align: center; min-width: 0; display: block; }
.cat i { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--band); color: var(--ink-2); font-size: 21px; margin: 0 auto 8px; transition: background .15s, color .15s; }
.cat:hover i { background: var(--soft); color: var(--red); }
.cat b { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--ink-2); }
.allbtn { display: table; margin: 26px auto 0; height: 44px; line-height: 42px; padding: 0 22px; border-radius: 10px; border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.allbtn:hover { border-color: var(--ink); }
.page-h { padding: 26px 0 6px; }
.page-h h1 { font-size: 30px; letter-spacing: -.8px; }
.page-h p { color: var(--mu); margin: 4px 0 0; }
.crumbs { font-size: 13px; color: var(--mu); margin-bottom: 8px; }
.crumbs a { color: var(--red); font-weight: 600; }

/* ---------- city picker */
.cm { position: fixed; inset: 0; background: rgba(15,15,18,.6); z-index: 120; display: none; align-items: flex-start; justify-content: center; padding: 70px 16px; overflow-y: auto; }
.cm.open { display: flex; }
.cm-box { background: #fff; width: 100%; max-width: 980px; border-radius: 12px; padding-bottom: 24px; animation: cmin .25s ease-out; }
@keyframes cmin { from { transform: translateY(-14px); opacity: 0; } }
.cm-top { display: flex; align-items: center; gap: 10px; padding: 16px 20px 0; }
.cm-search { flex: 1; display: flex; align-items: center; gap: 10px; height: 46px; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; }
.cm-search:focus-within { border-color: var(--ink); }
.cm-search i { color: var(--mu); }
.cm-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 15px; }
.cm-x { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: var(--ink-2); }
.cm-x:hover { background: var(--band); }
.detect { color: var(--red); font-size: 14px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; margin: 14px 20px; }
.cm hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.cm h4 { text-align: center; font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 20px 0 14px; letter-spacing: 0; }
.pop { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 0 20px; }
.pc { width: 112px; padding: 8px 4px 10px; border-radius: 12px; text-align: center; font-size: 13px; color: var(--ink-2); display: block; }
.pc .ci { display: block; width: 66px; height: 66px; margin: 0 auto 6px; background: #74747e; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; transition: background .15s; }
.pc .cf { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 6px; font-size: 30px; color: #74747e; }
.pc:hover .ci, .pc.on .ci { background: var(--red); }
.pc:hover, .pc.on, .pc:hover .cf, .pc.on .cf { color: var(--red); }
.pc.on { font-weight: 600; }
.viewall { display: block; margin: 18px auto 0; color: var(--red); font-size: 14px; font-weight: 600; }
.others { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px 16px; padding: 0 48px; }
.others a { font-size: 13.5px; color: var(--mu); padding: 5px 0; }
.others a:hover, .others a.on { color: var(--ink); }
.cm-res { padding: 6px 20px 0; }
.cm-res a { display: flex; align-items: center; gap: 10px; padding: 12px 6px; border-bottom: 1px solid var(--line); font-size: 15px; }
.cm-res a i { color: var(--mu); }
.cm-res a:hover { color: var(--red); }
.cm-res p { color: var(--mu); text-align: center; padding: 20px; margin: 0; }

/* ---------- gift drawer + gift form */
.scrim { position: fixed; inset: 0; background: rgba(15,15,18,.45); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 470px; max-width: 100%; background: #fff; z-index: 90; transform: translateX(105%); transition: transform .35s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.dr-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.dr-head b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x { width: 38px; height: 38px; border-radius: 50%; background: var(--band); display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.dr-body { flex: 1; overflow-y: auto; padding: 20px 22px; }
.dr-foot { padding: 14px 22px 18px; border-top: 1px solid var(--line); }
.dr-load { display: grid; place-items: center; flex: 1; color: var(--mu); }
.gf .lbl { margin: 20px 0 10px; display: flex; justify-content: space-between; }
.gf .custom { margin-top: 8px; }
.gf .more { margin-top: 16px; font-weight: 600; color: var(--red); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.sugg { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.sugg button { padding: 6px 10px; border-radius: 999px; background: var(--band); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.store-info { margin-top: 20px; background: var(--band); border-radius: 14px; padding: 14px 16px; font-size: 14px; color: var(--ink-2); }
.store-info b { color: var(--ink); }
.store-info details { margin-top: 8px; }
.store-info summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.store-info ul { margin: 8px 0 0; padding-left: 18px; }
.sumline { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); margin-bottom: 4px; }
.sumline b { color: var(--ink); }

/* ---------- checkout / success / claim */
.co { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 26px; align-items: start; margin-top: 18px; }
.co-side { position: sticky; top: 86px; }
.paym { display: grid; gap: 8px; }
.paym label { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 14px; }
.paym label i { width: 22px; text-align: center; color: var(--ink-2); font-size: 18px; }
.paym label small { display: block; font-weight: 400; color: var(--mu); font-size: 12px; }
.paym input { accent-color: var(--ink); width: 18px; height: 18px; margin-left: auto; order: 3; }
.paym label:has(input:checked) { border-color: var(--ink); }
.ok-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--green-s); color: var(--green); display: grid; place-items: center; font-size: 34px; margin: 0 auto 14px; }
.linkbox { display: flex; align-items: center; gap: 10px; background: var(--band); border-radius: 12px; padding: 6px 6px 6px 14px; font-weight: 600; font-size: 14px; }
.linkbox span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.claim { background: #fff3ef; min-height: 100vh; }
.claim-in { max-width: 440px; margin: 0 auto; padding: 36px 18px 60px; text-align: center; }
.claim h1 { font-size: 28px; letter-spacing: -1px; margin: 10px 0 4px; }
.claim .gc { box-shadow: 0 30px 60px rgba(15,15,18,.2); text-align: left; animation: unwrap .7s cubic-bezier(.2,1.4,.4,1); margin-top: 20px; }
@keyframes unwrap { from { transform: scale(.6) rotate(-10deg); opacity: 0; } }
.msgcard { background: #fff; border-radius: 18px; padding: 16px; margin: 16px 0; text-align: left; font-size: 16px; line-height: 1.5; box-shadow: var(--sh); }
.msgcard small { display: block; color: var(--mu); margin-top: 6px; }
.codebox { background: #fff; border-radius: 18px; padding: 6px 16px; text-align: left; box-shadow: var(--sh); }
.codebox .r { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.codebox .r:last-child { border: 0; }
.codebox small { display: block; color: var(--mu); font-size: 12px; font-weight: 600; }
.codebox b { font-size: 18px; letter-spacing: 1px; }

/* ---------- panels (vendor + admin) */
.pn { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: var(--band); }
.side { background: #fff; border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 14px; overflow-y: auto; }
.side .logo { padding: 2px 8px 18px; }
.side nav { flex: 1; }
.side nav p { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mu); margin: 16px 10px 6px; }
.side nav a { display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 10px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.side nav a i { width: 18px; text-align: center; color: var(--mu); font-size: 15px; }
.side nav a:hover { background: var(--band); color: var(--ink); }
.side nav a.on { background: var(--ink); color: #fff; }
.side nav a.on i { color: #fff; }
.side nav a .badge { margin-left: auto; height: 20px; background: var(--red); color: #fff; }
.side .me { display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.side .me b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .me form { margin-left: auto; }
.side .me button { width: 34px; height: 34px; border-radius: 9px; color: var(--mu); }
.side .me button:hover { background: var(--band); color: var(--ink); }
.pm { min-width: 0; padding: 0 28px 40px; }
.pbar { display: flex; align-items: center; gap: 14px; padding: 22px 0 18px; }
.pbar h1 { font-size: 24px; letter-spacing: -.6px; }
.pbar p { margin: 2px 0 0; color: var(--mu); font-size: 14px; }
.pbar .acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.burger { display: none; width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 17px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; min-width: 0; }
.kpi small { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mu); font-weight: 600; }
.kpi b { display: block; font-size: 24px; letter-spacing: -.8px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi span { font-size: 12px; color: var(--mu); }
.kpi.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.kpi.dark small, .kpi.dark span { color: rgba(255,255,255,.65); }
.pgrid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.stack > * + * { margin-top: 16px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 10px; }
.bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.bars i { display: block; width: 100%; max-width: 30px; background: var(--ink); border-radius: 6px 6px 2px 2px; min-height: 3px; }
.bars div:hover i { background: var(--red); }
.bars span { font-size: 10px; color: var(--mu); margin-top: 6px; white-space: nowrap; }
.hbar { margin-bottom: 12px; font-size: 13px; }
.hbar .row { margin-bottom: 4px; }
.hbar .track { height: 8px; border-radius: 99px; background: var(--band); overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: var(--red); border-radius: 99px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filters .field { margin: 0; }
.filters .inp, .filters .sel { height: 40px; border-radius: 10px; }
.redeem-box { display: flex; gap: 10px; }
.redeem-box .inp { height: 54px; font-size: 20px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; border-radius: 14px; }
.pin-inp { letter-spacing: 14px; text-align: center; font-size: 26px; font-weight: 800; height: 60px; }
.big-amt { font-size: 40px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; }

/* ---------- auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: var(--ink); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art::after { content: ''; position: absolute; right: -140px; bottom: -160px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(255,90,80,.5), transparent 65%); }
.auth-art .logo { color: #fff; }
.auth-art h2 { font-size: 40px; letter-spacing: -1.4px; max-width: 420px; position: relative; z-index: 1; }
.auth-art p { color: rgba(255,255,255,.7); max-width: 400px; position: relative; z-index: 1; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form > div { width: 100%; max-width: 400px; }
.auth-form h1 { font-size: 28px; margin-bottom: 6px; }

/* ---------- responsive */
@media (max-width: 1100px) {
    .catgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tiles-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pgrid { grid-template-columns: 1fr; }
    .co { grid-template-columns: 1fr; }
    .co-side { position: static; }
}
@media (max-width: 900px) {
    .pn { grid-template-columns: 1fr; }
    .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 100; transform: translateX(-105%); transition: transform .3s; box-shadow: 0 0 40px rgba(0,0,0,.2); }
    .pn.nav-open .side { transform: none; }
    .pn.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(15,15,18,.4); z-index: 99; }
    .burger { display: grid; place-items: center; }
    .pm { padding: 0 16px 40px; }
    .auth { grid-template-columns: 1fr; }
    .auth-art { display: none; }
}
@media (max-width: 760px) {
    .wrap { padding: 0 16px; }
    body { font-size: 14.5px; }
    .top { flex-wrap: wrap; height: auto; gap: 10px 12px; padding-top: 10px; padding-bottom: 10px; }
    .search { order: 3; flex-basis: 100%; max-width: none; height: 40px; }
    .top .hide-m { display: none; }
    .hero { padding-top: 22px; }
    .cityline b { font-size: 24px; }
    .cityline .ci, .cityline .cf { width: 44px; height: 44px; }
    .sec { margin-top: 26px; }
    .sec-h h2 { font-size: 19px; }
    .catgrid { grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 74px; overflow-x: auto; scrollbar-width: none; gap: 14px 6px; margin: 0 -16px; padding: 0 16px; }
    .catgrid::-webkit-scrollbar { display: none; }
    .cat i { width: 50px; height: 50px; font-size: 19px; }
    .cat b { font-size: 11.5px; }
    .tiles, .tiles-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
    .ta .mk { width: 44px; height: 44px; font-size: 15px; border-radius: 13px; }
    .ta .ct, .ta .hot { font-size: 10px; padding: 3px 8px; }
    .ta .bgi { font-size: 64px; }
    .tname { font-size: 14px; }
    .tsub { font-size: 12px; }
    .page-h h1 { font-size: 24px; }
    .ft { padding-bottom: 86px; }
    .ft a { margin: 0 14px 0 0; }
    .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); padding: 8px 0 12px; z-index: 50; }
    .tabbar a { text-align: center; font-size: 11px; font-weight: 600; color: var(--mu); }
    .tabbar i { display: block; font-size: 20px; margin-bottom: 3px; }
    .tabbar .on { color: var(--red); }
    .cm { padding: 0; }
    .cm-box { border-radius: 0; min-height: 100%; max-width: none; }
    .pc { width: 31%; }
    .others { grid-template-columns: repeat(2, 1fr); padding: 0 24px; }
    .drawer { top: auto; width: 100%; height: 92vh; border-radius: 22px 22px 0 0; transform: translateY(105%); }
    .grid2, .grid3 { grid-template-columns: 1fr; }
    .card { padding: 18px; }
    .kpi b { font-size: 20px; }
    .pbar { flex-wrap: wrap; }
    .pbar .acts { margin-left: 0; width: 100%; }
    .big-amt { font-size: 32px; }
    .gc { padding: 14px 16px; border-radius: 16px; }
    .gc-amt { font-size: 24px; }
}

/* gift form spacing (drawer + store page) */
.gf .inp, .gf .prefix { margin-top: 8px; }
.gf .seg + .inp { margin-top: 10px; }
.gf [data-for] .inp { margin-top: 8px; }
.gf .hint[data-for] { margin-top: 8px; }
.store-page { max-width: 560px; margin: 0 auto; }
.store-page .gf { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.tbl .mono { white-space: nowrap; }
.pgrid > *, .co > *, .grid2 > *, .grid3 > * { min-width: 0; }
.inp, .sel, .txt { min-width: 0; }
.redeem-box > * { min-width: 0; }
.co-wide { grid-template-columns: minmax(0, 1fr) 460px; margin-top: 30px; }
@media (max-width: 1100px) { .co-wide { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .redeem-box { flex-wrap: wrap; } .redeem-box .btn { width: 100%; } h1.partner-h { font-size: 30px !important; } }
input[type=file] { max-width: 100%; font-size: 13px; }
.split-row { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.split-row:last-child { border-bottom: 0; padding-bottom: 0; }
.split-row:first-child { padding-top: 0; }
.split-row .track { height: 8px; border-radius: 99px; background: var(--band); overflow: hidden; margin: 8px 0 6px; }
.split-row .track i { display: block; height: 100%; border-radius: 99px; background: var(--ink); }
.split-row .track i.s-vendor { background: var(--green); } .split-row .track i.s-admin { background: var(--red); }
.split-row .track i.s-gateway { background: #a1a1aa; } .split-row .track i.s-govt { background: var(--blue); } .split-row .track i.s-held { background: #d4d4d8; }

/* ---------- panel spacing pass: one rhythm (20px between blocks, 20px card padding, aligned table edges) */
.pn { grid-template-columns: 252px minmax(0, 1fr); }
.side { padding: 20px 14px 16px; }
.side nav a { height: 42px; margin-bottom: 2px; }
.side nav p { margin: 18px 12px 6px; }
.pm { padding: 0 32px 56px; }
.pm > .wrap-in { max-width: 1320px; }
.pbar { padding: 28px 0 22px; gap: 16px; }
.pbar h1 { font-size: 26px; }
.pbar p { margin-top: 4px; }
.pm > .pbar ~ * { margin-top: 0; margin-bottom: 0; }
.pm > .pbar ~ * + * { margin-top: 20px; }
.pm > .pbar ~ .alert { margin-bottom: 0; }
.pm .kpis { gap: 20px; margin-bottom: 0; }
.pm .kpi { padding: 18px 20px; }
.pm .kpi b { margin-top: 8px; }
.pm .kpi span { display: block; margin-top: 2px; }
.pgrid { gap: 20px; }
.stack > * + * { margin-top: 20px; }
.pm .card { padding: 22px 24px; }
.pm .card-h { margin-bottom: 18px; }
.pm .card-flush { padding: 0; }
.pm .card-flush > .card-h { padding: 18px 24px; margin: 0; border-bottom: 1px solid var(--line); }
.pm .card-flush > .empty { padding: 48px 24px; }
.pm .card-flush .tbl.mt, .pm .card-flush .tbl-wrap .tbl.mt { margin-top: 0; }
.pm .tbl th { padding: 12px 16px; }
.pm .tbl td { padding: 14px 16px; }
.pm .tbl th:first-child, .pm .tbl td:first-child { padding-left: 24px; }
.pm .tbl th:last-child, .pm .tbl td:last-child { padding-right: 24px; }
.pm .tbl-sm td, .pm .tbl-sm th { padding-top: 10px; padding-bottom: 10px; }
.pm .tbl td .small { margin-top: 2px; }
.pm .filters { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; gap: 12px 14px; margin-bottom: 0; }
.pm .filters .field { flex: 0 1 170px; }
.pm .filters .field.grow { flex: 1 1 260px; }
.pm .filters label { font-size: 12px; margin-bottom: 5px; }
.pm .filters .btn { height: 40px; }
.pm .tabs { margin-bottom: 0; }
.pm .row.between.mb { margin-bottom: 0; }
.pm .field { margin-bottom: 18px; }
.pm .grid2, .pm .grid3 { column-gap: 18px; }
.pm .hint { margin-top: 10px; }
.pm form.card > .btn:last-child, .pm .card > .btn-block:last-child { margin-top: 6px; }
.pm .kv td { padding: 10px 0; }
.pm .redeem-box { gap: 12px; }
.pm .steps li { line-height: 1.4; }
@media (max-width: 1200px) {
    .pn { grid-template-columns: 224px minmax(0, 1fr); }
    .pm { padding: 0 24px 48px; }
    .pm .kpi b { font-size: 21px; }
}
@media (max-width: 900px) {
    .pn { grid-template-columns: 1fr; }
    .pm { padding: 0 16px 40px; }
    .pbar { padding: 18px 0 16px; }
    .pbar h1 { font-size: 22px; }
    .pm .card { padding: 18px; }
    .pm .card-flush > .card-h { padding: 16px 18px; }
    .pm .tbl th:first-child, .pm .tbl td:first-child { padding-left: 18px; }
    .pm .tbl th:last-child, .pm .tbl td:last-child { padding-right: 18px; }
    .pm .filters { padding: 14px 16px; }
    .pm .filters .field, .pm .filters .field.grow { flex: 1 1 140px; }
    .pm .filters .btn { flex: 1 1 100%; }
}
.pm .filters .field { margin-bottom: 0; flex: 0 1 150px; }
.pm .filters .field.grow { flex: 2 1 220px; }
.pm .filters .inp, .pm .filters .sel { height: 40px; }
.steps-v { flex-direction: column; gap: 12px; padding: 0; margin: 14px 0 0; }
.steps-v li { display: flex; align-items: center; gap: 12px; }
.steps-v li::before { margin: 0; flex-shrink: 0; }
.pgrid-side { grid-template-columns: minmax(0, 1fr) 380px; }
@media (max-width: 1100px) { .pgrid-side { grid-template-columns: 1fr; } .pgrid-side > form.card { position: static !important; } }
.pm details > summary { list-style: none; }
.pm details > summary::-webkit-details-marker { display: none; }
/* stacks: one flex gap instead of margins, so nested cards and grids never touch */
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack > * + *, .stack > .card + .card { margin-top: 0; }
.stack > .kpis { margin: 0 !important; }
.pgrid { align-items: start; }

/* ---------- test site banner (not shown when APP_ENV=production) */
.testbar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px; padding: 7px 16px; background: var(--amber-s); color: #713f12; font-size: 13px; text-align: center; }
.testbar a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.tg-list { margin: 0; padding-left: 20px; }
.tg-list li { margin-bottom: 6px; }
.tg-case { border-top: 1px solid var(--line); padding: 16px 0; }
.tg-case:first-of-type { border-top: 0; padding-top: 4px; }
.tg-case h3 { font-size: 16px; margin-bottom: 8px; }
.tg-expect { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--green-s); color: #14532d; font-size: 14px; }
.testbar .show-m { display: none; }
@media (max-width: 640px) {
    .testbar { flex-wrap: nowrap; gap: 8px; padding: 7px 12px; font-size: 12.5px; }
    .testbar .hide-m { display: none; }
    .testbar .show-m { display: inline; }
}
.tg-login { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding: 14px 20px; border-top: 1px solid var(--line); }
.tg-login > div:last-child { min-width: 0; overflow-wrap: anywhere; }
.tg-login > .grow { flex: 1 1 240px; }
