/*
 * ShriMunimji theme — emerald + gold, mobile-first.
 */
:root {
  --emerald: #0F5132;
  --emerald-dark: #0b3b25;
  --gold: #C9A227;
  --gold-dark: #9A7B1F;
  --cream: #F7F5EF;
  --card: #ffffff;
  --ink: #2C2C2A;
  --muted: #6b6b63;
  --line: #E4E0D5;
  --green-tint: #E7EFE9;
  --gold-tint: #FBF1D8;
  --danger: #A32D2D;
  --danger-tint: #F7E4E1;
  --grey-tint: #eef0f2;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #e9e6dd;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--cream);
  position: relative;
  padding-bottom: 84px;
}

/* ---- header (mockup pattern: emblem + wordmark + bell, then greeting card) ---- */
.appbar {
  background: var(--emerald);
  color: #fff;
  padding: 16px 16px 18px;
}
.appbar-top { display: flex; align-items: center; justify-content: space-between; }
.brand-lockup { display: flex; align-items: center; gap: 11px; }
.emblem { width: 42px; height: 42px; border: 1.5px solid var(--gold); border-radius: 11px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.emblem svg { width: 40px; height: 40px; }
.emblem-img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { color: var(--gold); font-size: 20px; font-weight: 700; margin: 0; letter-spacing: .3px; }
.brand-sub { color: #cfe3d8; font-size: 12px; margin: 1px 0 0; letter-spacing: 1.5px; text-transform: uppercase; }
.bell { background: transparent; border: none; color: var(--gold); padding: 6px; cursor: pointer; position: relative; display: inline-flex; }
.bell .bell-badge { position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.bell svg { width: 22px; height: 22px; }

.greet-card {
  margin-top: 14px; padding: 12px 14px;
  border: 1px solid rgba(201,162,39,.4); border-radius: 12px;
  background: var(--emerald-dark);
  display: flex; align-items: center; justify-content: space-between;
}
.greet-name { font-size: 18px; font-weight: 700; margin: 0; color: #fff; }
.greet-sub { color: var(--gold); font-size: 13px; margin: 2px 0 0; }
.namaste { color: var(--gold); font-size: 26px; line-height: 1; }

/* card icon chips */
.card-ico { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.card-ico svg { width: 20px; height: 20px; }
.card-ico.gold { background: var(--gold-tint); color: var(--gold-dark); }
.card-ico.silver { background: #eef0f2; color: #7a8087; }
.label.gold-text { color: var(--gold-dark); font-weight: 600; }
.trend { width: 15px; height: 15px; vertical-align: -2px; }
.trend.up { color: var(--emerald); }

/* ---- sub-page header (back + title) ---- */
.subbar { background: var(--emerald); color: #fff; padding: 15px 16px; display: flex; align-items: center; gap: 12px; }
.subbar .back { color: #fff; display: flex; }
.subbar .back svg { width: 22px; height: 22px; }
.subbar h2 { font-size: 17px; font-weight: 600; margin: 0; flex: 1; }

/* ---- girvi form ---- */
.seg { display: flex; gap: 10px; padding: 16px 16px 0; }
.seg button { flex: 1; border: none; border-radius: 12px; padding: 13px; font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; background: #e7e3d8; color: #7a756a; }
.seg button svg { width: 18px; height: 18px; }
.seg button.active.gold { background: var(--gold); color: var(--emerald); }
.seg button.active.silver { background: #c7ccd1; color: #2C2C2A; }
.seg form.button_to { flex: 1; margin: 0; }
.lang-btn { width: 100%; border: none; border-radius: 12px; padding: 13px; font-size: 15px; font-weight: 600; cursor: pointer; background: #e7e3d8; color: #7a756a; }
.lang-btn.active { background: var(--emerald); color: #fff; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 16px; overflow: hidden; }
.frow { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid #efebe0; }
.frow:last-child { border-bottom: none; }
.frow .ico { width: 24px; color: var(--gold-dark); flex: none; display: flex; }
.frow .ico svg { width: 20px; height: 20px; }
.frow .fbody { flex: 1; min-width: 0; }
.frow label { display: block; font-size: 12px; color: var(--muted); margin: 0 0 2px; }
.frow input, .frow select { width: 100%; border: none; background: transparent; font-size: 16px; color: var(--ink); padding: 2px 0; -webkit-appearance: none; }
.frow input:focus, .frow select:focus { outline: none; }
.frow textarea { width: 100%; border: none; background: transparent; font-family: inherit; font-size: 16px; color: var(--ink); padding: 2px 0; resize: none; line-height: 1.5; min-height: 48px; }
.frow textarea:focus { outline: none; }
.frow textarea::placeholder, .frow input::placeholder { color: var(--muted); }
.frow input.cust-search { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 9px 11px; margin-bottom: 8px; font-size: 15px; -webkit-appearance: none; }
.frow input.cust-search:focus { border-color: var(--emerald); }
.frow .computed { color: var(--emerald); font-weight: 700; font-size: 16px; }
.frow-split { display: flex; }
.frow-split > .frow { flex: 1; }
.frow-split > .frow:first-child { border-right: 1px solid #efebe0; }

.summary { margin: 16px; display: flex; background: var(--gold-tint); border-radius: 14px; overflow: hidden; }
.summary > div { flex: 1; padding: 14px; }
.summary > div + div { border-left: 1px solid rgba(154,123,31,.25); }
.summary .label { color: var(--gold-dark); font-size: 12px; margin: 0; }
.summary .val { color: var(--emerald); font-size: 19px; font-weight: 700; margin: 4px 0 0; }
.form-actions { padding: 0 16px 20px; }

/* multi-item rows on the girvi form */
.item-row { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 0 16px 10px; overflow: hidden; }
.item-remove { display: block; width: 100%; text-align: center; padding: 9px; color: var(--danger); background: transparent; border: none; border-top: 1px solid #efebe0; font-size: 13px; font-weight: 600; cursor: pointer; }

/* ---- girvi details ---- */
.cust-head { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 16px; padding: 14px 16px; }
.cust-head .pfp { width: 44px; height: 44px; border-radius: 50%; background: var(--green-tint); color: var(--emerald); display: flex; align-items: center; justify-content: center; flex: none; }
.cust-head .pfp svg { width: 24px; height: 24px; }
.cust-head .cn { flex: 1; }
.cust-head .cn b { font-size: 16px; font-weight: 600; }
.cust-head .cn span { display: block; color: var(--muted); font-size: 13px; }
.badge { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px; }
.badge.gold { background: var(--gold-tint); color: var(--gold-dark); }
.badge.silver { background: #eef0f2; color: #6d7278; }

.detail-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 16px; overflow: hidden; }
.drow { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #f0ece2; font-size: 14px; }
.drow:last-child { border-bottom: none; }
.drow .k { color: var(--muted); }
.drow .v { font-weight: 600; color: var(--ink); }
.drow .v.gold { color: var(--gold-dark); }
.drow .v.red { color: var(--danger); }

.highlight { margin: 16px; background: var(--gold-tint); border-radius: 12px; padding: 8px 16px; }
.hrow { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.hrow .hk { color: var(--gold-dark); font-size: 13px; }
.hrow .hv { color: var(--emerald); font-weight: 700; font-size: 15px; }

.stat-trio { display: flex; margin: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.stat-trio > div { flex: 1; padding: 13px 8px; text-align: center; }
.stat-trio > div + div { border-left: 1px solid #f0ece2; }
.stat-trio .sk { color: var(--muted); font-size: 11px; }
.stat-trio .sv { font-weight: 700; font-size: 15px; margin-top: 5px; color: var(--emerald); }

.pay-row { display: flex; gap: 12px; margin: 16px; }
.pay-row a { flex: 1; text-align: center; padding: 14px; border-radius: 12px; font-weight: 600; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 7px; }
.pay-row a svg { width: 18px; height: 18px; }
.pay-int { background: var(--gold-tint); color: var(--gold-dark); }
.pay-prin { background: var(--green-tint); color: var(--emerald); }
.topup-link { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 16px 0; padding: 13px; border-radius: 12px; background: var(--card); border: 1px solid var(--gold); color: var(--gold-dark); font-size: 15px; font-weight: 600; text-decoration: none; }
.topup-link svg { width: 18px; height: 18px; }

.hist-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #f0ece2; }
.hist-row:last-child { border-bottom: none; }
.hist-row .hd b { font-size: 14px; font-weight: 600; }
.hist-row .hd span { display: block; color: var(--muted); font-size: 12px; }
.hist-row .ha { font-weight: 700; font-size: 14px; }
.hist-row .ha.in { color: var(--emerald); }
.hist-row .ha.out { color: var(--danger); }

/* girvi list rows */
a.txn, a.list-row { text-decoration: none; color: inherit; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #f0ece2; background: #fff; }
.list-row:last-child { border-bottom: none; }
.list-row .lr-ico { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.list-row .lr-ico svg { width: 20px; height: 20px; }
.list-row .lr-ico.gold { background: var(--gold-tint); color: var(--gold-dark); }
.list-row .lr-ico.silver { background: #eef0f2; color: #6d7278; }
.list-row .lr-body { flex: 1; }
.list-row .lr-body b { font-size: 15px; font-weight: 600; }
.list-row .lr-body span { display: block; color: var(--muted); font-size: 12px; }
.list-row .lr-amt { text-align: right; }
.list-row .lr-amt b { font-size: 14px; color: var(--emerald); }
.list-row .lr-amt span { display: block; font-size: 11px; color: var(--muted); }
.list-wrap { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 16px; overflow: hidden; }

/* maturity colour tag on list rows */
.gtag { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-top: 3px; }
.gtag.running { background: var(--green-tint); color: var(--emerald); }
.gtag.due { background: var(--gold-tint); color: var(--gold-dark); }
.gtag.overdue { background: var(--danger-tint); color: var(--danger); }
.gtag.closed { background: var(--grey-tint); color: #6d7278; }
.gtag.defaulted { background: #fff; border: 1px solid var(--danger); color: var(--danger); }

/* subscription / plans */
.test-badge { background: #FBF1D8; color: #9A7B1F; border: 1px dashed var(--gold); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; font-size: 12px; font-weight: 600; text-align: center; }
.trial-banner { border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.trial-banner b { display: block; font-size: 14px; }
.trial-banner span { font-size: 12px; }
.trial-banner.ok { background: var(--green-tint); color: var(--emerald); }
.trial-banner.ok span { color: #4a6b58; }
.trial-banner.warn { background: var(--danger-tint); color: var(--danger); }
.trial-banner.warn span { color: #b4554a; }
.plan-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.plan-card.featured { border: 2px solid var(--gold); }
.plan-card.current { border: 2px solid var(--emerald); }
.plan-head { display: flex; justify-content: space-between; align-items: flex-start; }
.plan-name { font-size: 18px; font-weight: 700; color: var(--emerald); margin: 0; }
.plan-tagline { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
.plan-tag { background: var(--gold-tint); color: var(--gold-dark); font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.plan-price { font-size: 26px; font-weight: 700; color: var(--ink); margin: 10px 0 4px; }
.plan-price .per { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.plan-feats { list-style: none; padding: 0; margin: 10px 0 0; }
.plan-feats li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink); padding: 5px 0; }
.plan-feats li svg { width: 16px; height: 16px; color: var(--emerald); flex: none; }
.plan-current { margin-top: 12px; text-align: center; font-size: 13px; font-weight: 600; color: var(--emerald); background: var(--green-tint); border-radius: 10px; padding: 9px; }
.plan-card .btn[disabled] { margin-top: 12px; opacity: .55; cursor: not-allowed; }
.plan-soon { text-align: center; font-size: 11.5px; color: var(--muted); margin: 6px 0 0; }

/* KYC vault */
.kv-status { font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 10px; margin: 0 0 12px; }
.kv-status.off { background: var(--gold-tint); color: var(--gold-dark); }
.kv-status.on { background: var(--green-tint); color: var(--emerald); }
.kv-recovery .kv-code { font-family: ui-monospace, Menlo, monospace; font-size: 18px; font-weight: 700; letter-spacing: 1px; color: var(--emerald); background: var(--green-tint); border-radius: 10px; padding: 12px; text-align: center; margin: 8px 0 12px; word-break: break-all; }
.kv-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.kv-msg { font-size: 13px; text-align: center; margin: 12px 16px 0; }
.kv-msg.ok { color: var(--emerald); }
.kv-msg.err { color: var(--danger); }
.link-muted { color: var(--gold-dark); font-size: 13px; text-decoration: none; }
.thumb.kyc-enc { display: inline-flex; align-items: center; justify-content: center; overflow: hidden; background: var(--gold-tint); padding: 0; }
.kyc-locked { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; height: 100%; background: var(--gold-tint); color: var(--gold-dark); text-decoration: none; font-size: 9px; line-height: 1.1; text-align: center; }
.kyc-locked svg { width: 16px; height: 16px; }
.cust-head .pfp { overflow: hidden; }
.pfp-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.upload-warn { margin: 0 16px 8px; font-size: 13px; color: var(--danger); }

/* notifications */
.linkbtn { background: transparent; border: none; color: var(--gold); font-size: 14px; font-weight: 600; cursor: pointer; padding: 0; }
.nrow { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #f0ece2; background: #fff; text-decoration: none; color: inherit; }
.nrow:last-child { border-bottom: none; }
.nrow.unread { background: #FCFBF7; }
.nrow-ico { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.nrow-ico svg { width: 17px; height: 17px; }
.nrow-ico.info { background: var(--green-tint); color: var(--emerald); }
.nrow-ico.warning { background: var(--gold-tint); color: var(--gold-dark); }
.nrow-ico.critical { background: var(--danger-tint); color: var(--danger); }
.nrow-body { flex: 1; min-width: 0; }
.nrow-body b { font-size: 14px; font-weight: 600; display: block; color: var(--ink); }
.nrow-body span { font-size: 12.5px; color: var(--muted); }
.nrow-time { font-size: 10.5px; color: var(--muted); flex: none; white-space: nowrap; }

/* maturity filter chips */
.filter-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 2px; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chips .fchip { flex: none; text-decoration: none; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.filter-chips .fchip.on { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.filter-chips .fc-count { font-size: 11px; opacity: .85; }

/* dashboard status cards */
.status-card { text-decoration: none; color: inherit; display: block; }
.status-card .label svg { width: 15px; height: 15px; }
.status-card .sub { opacity: .85; }
.status-card.due { background: var(--gold-tint); border-color: #ecd9a3; }
.status-card.due .label, .status-card.due .value, .status-card.due .sub { color: var(--gold-dark); }
.status-card.over { background: var(--danger-tint); border-color: #e8c3bc; }
.status-card.over .label, .status-card.over .value, .status-card.over .sub { color: var(--danger); }

/* maturity status banner on the detail screen */
.mbanner { display: flex; align-items: center; gap: 12px; margin: 16px 16px 0; padding: 12px 14px; border-radius: 12px; }
.mbanner .mb-ico { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.mbanner .mb-ico svg { width: 18px; height: 18px; }
.mbanner b { font-size: 14px; font-weight: 700; display: block; }
.mbanner span { font-size: 12px; }
.mbanner.running { background: var(--green-tint); }
.mbanner.running .mb-ico { background: var(--emerald); color: #fff; }
.mbanner.running b { color: var(--emerald); } .mbanner.running span { color: #4a6b58; }
.mbanner.due { background: var(--gold-tint); }
.mbanner.due .mb-ico { background: var(--gold); color: #3d2f06; }
.mbanner.due b { color: var(--gold-dark); } .mbanner.due span { color: #9a7f2e; }
.mbanner.overdue { background: var(--danger-tint); }
.mbanner.overdue .mb-ico { background: var(--danger); color: #fff; }
.mbanner.overdue b { color: var(--danger); } .mbanner.overdue span { color: #b4554a; }
.mbanner.closed { background: var(--grey-tint); }
.mbanner.closed .mb-ico { background: #6d7278; color: #fff; }
.mbanner.closed b { color: #5f6d64; } .mbanner.closed span { color: #7c827e; }
.mbanner.defaulted { background: #fff; border: 1px solid var(--danger); }
.mbanner.defaulted .mb-ico { background: var(--danger); color: #fff; }
.mbanner.defaulted b { color: var(--danger); } .mbanner.defaulted span { color: #b4554a; }

/* ---- search ---- */
.searchbar { padding: 14px 16px 2px; }
.searchbar input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; background: #fff; color: var(--ink); }
.searchbar input:focus { outline: none; border-color: var(--emerald); }
.badge.kyc { background: var(--green-tint); color: var(--emerald); }
.badge.none { background: #f1efe8; color: #8a8a80; }
.subbar .spacer { flex: 1; }
.subbar .act { color: var(--gold); text-decoration: none; font-size: 14px; font-weight: 600; }

/* ---- media uploads ---- */
.upload-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #efebe0; }
.upload-row:last-child { border-bottom: none; }
.upload-row .ul-body { flex: 1; min-width: 0; }
.upload-row .ul-body label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 4px; }
.upload-row input[type=file] { font-size: 13px; width: 100%; color: var(--ink); }
.thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); flex: none; }
.card-title { font-size: 12px; font-weight: 600; color: var(--gold-dark); text-transform: uppercase; letter-spacing: .5px; padding: 12px 14px 0; }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.media-video { width: calc(100% - 32px); margin: 8px 16px 0; border-radius: 12px; display: block; }
.doc-link { display: inline-flex; align-items: center; gap: 6px; color: var(--emerald); font-size: 13px; text-decoration: none; }

/* ---- content ---- */
.content { padding: 16px; }
.section-title { font-size: 15px; font-weight: 600; margin: 20px 0 10px; display: flex; justify-content: space-between; align-items: center; }
.pill { background: var(--green-tint); color: var(--emerald); font-size: 12px; padding: 3px 10px; border-radius: 20px; }

/* ---- cards ---- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.card .label { color: var(--muted); font-size: 12px; margin: 0; display: flex; align-items: center; gap: 6px; }
.card .value { font-size: 23px; font-weight: 700; margin: 6px 0 0; color: var(--emerald); }
.card .value.gold { color: var(--gold-dark); }
.card .sub { color: var(--muted); font-size: 12px; margin: 2px 0 0; }

.hero {
  background: var(--emerald); color: #fff; border: none;
  display: flex; align-items: center; justify-content: space-between;
}
.hero .label { color: #bfe0cf; }
.hero .value { color: var(--gold); font-size: 27px; }
.hero .coin { width: 42px; height: 42px; border-radius: 12px; background: rgba(201,162,39,.2); display: flex; align-items: center; justify-content: center; color: var(--gold); }

/* ---- transaction list ---- */
.txn-list { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.txn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #efebe0; }
.txn:last-child { border-bottom: none; }
.txn .ico { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; }
.txn .ico.in { background: var(--green-tint); color: var(--emerald); }
.txn .ico.out { background: var(--gold-tint); color: var(--gold-dark); }
.txn .who { flex: 1; }
.txn .who b { font-weight: 600; font-size: 14px; }
.txn .who span { display: block; color: var(--muted); font-size: 12px; }
.txn .amt { font-weight: 700; font-size: 14px; }
.txn .amt.in { color: var(--emerald); }
.txn .amt.out { color: var(--gold-dark); }
.empty { padding: 22px 14px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---- buttons ---- */
.btn { display: block; width: 100%; text-align: center; border: none; border-radius: 14px; padding: 15px; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-gold { background: var(--gold); color: var(--emerald); }
.btn-emerald { background: var(--emerald); color: #fff; }
.btn-ghost { background: transparent; color: var(--emerald); border: 1px solid var(--emerald); }
.btn + .btn { margin-top: 10px; }
.btn-icon { display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-icon svg { width: 20px; height: 20px; }
.mt { margin-top: 16px; }

/* ---- bottom nav ---- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: #fff; border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; padding: 8px 0 12px;
}
.tabbar a { text-decoration: none; color: #9a9a90; font-size: 11px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.tabbar a svg { width: 23px; height: 23px; }
.tabbar a.active { color: var(--emerald); }

/* ---- auth pages ---- */
.auth { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--cream); padding: 28px 22px; }
.auth .logo { text-align: center; margin: 12px 0 22px; }
.auth .logo .mark { color: var(--gold); font-size: 14px; letter-spacing: 1px; }
.auth .logo h1 { color: var(--emerald); font-size: 26px; margin: 4px 0 0; }
.auth .logo p { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.brand-logo-img { max-width: 230px; width: 78%; height: auto; }
.auth h2 { color: var(--ink); font-size: 18px; margin: 0 0 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px;
  font-size: 16px; background: #fff; color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--emerald); }
.auth-alt { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.auth-alt a { color: var(--emerald); font-weight: 600; text-decoration: none; }

/* ---- flash ---- */
.flash { padding: 12px 16px; font-size: 14px; }
.flash-notice { background: var(--green-tint); color: var(--emerald); }
.flash-alert { background: #fbeaea; color: var(--danger); }
.errors { background: #fbeaea; color: var(--danger); padding: 12px 14px; border-radius: 12px; font-size: 13px; margin-bottom: 14px; }

/* ---- modal (rate popup) ---- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(11,59,37,.5); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
.modal { background: #fff; width: 100%; max-width: 480px; border-radius: 20px 20px 0 0; padding: 22px; }
.modal h3 { margin: 0 0 4px; color: var(--emerald); font-size: 18px; }
.modal p.hint { margin: 0 0 16px; color: var(--muted); font-size: 13px; }

/* Activity / audit log */
.audit-list { padding: 8px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.audit-row { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.audit-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.audit-badge { font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.audit-badge.audit-create { background: #E7F1EA; color: var(--emerald); }
.audit-badge.audit-update { background: #FBF3D8; color: #8a6d0e; }
.audit-badge.audit-destroy { background: #FBE4E1; color: #9b2c22; }
.audit-label { font-weight: 700; color: var(--ink); font-size: 14px; }
.audit-time { margin-left: auto; color: var(--muted); font-size: 12px; }
.audit-changes { margin: 8px 0 0; padding-left: 16px; color: var(--ink); font-size: 13px; }
.audit-changes li { margin: 2px 0; word-break: break-word; }
.audit-foot { color: var(--muted); font-size: 12px; text-align: center; padding: 14px 16px 24px; }

/* ---- Reports ---- */
.rep-hub-ico { width:34px; height:34px; border-radius:9px; display:flex; align-items:center; justify-content:center; flex:none; margin-right:11px; }
.rep-hub-ico svg { width:18px; height:18px; }
.rep-hub-ico.is-summary { background:#E7F1EA; color:#0F5132; }
.rep-hub-ico.is-register { background:#FBF3D8; color:#8a6d0e; }
.rep-hub-ico.is-customers { background:#E7F1EA; color:#0F5132; }
.rep-hub-txt { flex:1; min-width:0; display:flex; flex-direction:column; }
.rep-hub-txt b { font-size:14px; color:var(--ink); font-weight:500; }
.rep-hub-txt small { font-size:11.5px; color:var(--muted); }
.rep-foot { color:var(--muted); font-size:12px; text-align:center; padding:14px 16px 24px; }

.rep-toggle { display:flex; gap:6px; padding:12px 16px 2px; }
.rep-seg { flex:1; text-align:center; font-size:12.5px; padding:7px 0; border-radius:8px; color:var(--muted); background:#fff; border:0.5px solid var(--line); text-decoration:none; }
.rep-seg.on { background:var(--emerald); color:#fff; border-color:var(--emerald); font-weight:500; }
.rep-seg.gold.on { background:var(--gold); color:var(--emerald); border-color:var(--gold); }

.rep-chips { display:flex; gap:7px; padding:10px 16px 2px; flex-wrap:wrap; }
.rep-chip { font-size:12px; padding:5px 12px; border-radius:999px; background:#fff; border:0.5px solid var(--line); color:var(--muted); text-decoration:none; }
.rep-chip.on { background:var(--emerald); color:#fff; border-color:var(--emerald); font-weight:500; }

.rep-trend { margin:12px 16px 2px; background:#fff; border:0.5px solid var(--line); border-radius:12px; padding:12px 12px 8px; }
.rep-trend-cap { margin:0 0 9px; font-size:11px; color:var(--muted); }
.rep-bars { display:flex; align-items:flex-end; gap:6px; height:72px; }
.rep-bar-col { flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; justify-content:flex-end; }
.rep-bar { width:100%; background:#CDE0D4; border-radius:4px 4px 0 0; min-height:3px; }
.rep-bar.last { background:var(--emerald); }
.rep-bar-lbl { font-size:9.5px; color:var(--muted); }

.rep-cards { padding:10px 16px 2px; display:flex; flex-direction:column; gap:10px; }
.rep-card { background:#fff; border:0.5px solid var(--line); border-radius:13px; padding:12px 13px; }
.rep-card-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.rep-card-head b { font-size:14px; color:var(--ink); font-weight:500; }
.rep-count { font-size:12px; color:var(--emerald); font-weight:500; }
.rep-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px 12px; }
.rep-grid.three { grid-template-columns:1fr 1fr 1fr; }
.rep-grid .rk { margin:0; font-size:10.5px; color:var(--muted); }
.rep-grid .rv { margin:2px 0 0; font-size:14px; font-weight:500; color:var(--ink); }
.rep-grid .rv.gold { color:#8a6d0e; }
.rep-grid .rv.green { color:var(--emerald); }

.rep-names { margin:4px 0 0; padding:0; list-style:none; }
.rep-names li { display:flex; justify-content:space-between; align-items:center; padding:6px 0; border-top:0.5px solid #EEEBE1; font-size:13px; color:var(--ink); }
.rep-names li em { font-style:normal; font-size:11px; color:var(--muted); }

.rep-export { display:flex; gap:8px; padding:14px 16px 20px; }
.rep-exp-btn { flex:1; display:flex; align-items:center; justify-content:center; gap:6px; font-size:12.5px; font-weight:500; padding:9px 0; border-radius:9px; background:#fff; border:0.5px solid var(--line); color:var(--ink); text-decoration:none; }
.rep-exp-btn svg { width:15px; height:15px; }
.rep-exp-btn.primary { background:var(--emerald); color:#fff; border-color:var(--emerald); }

/* Items-held report */
.rep-tote { display:flex; gap:10px; padding:12px 16px 2px; }
.rep-tote > div { flex:1; background:#fff; border:0.5px solid var(--line); border-radius:12px; padding:10px 13px; }
.rep-tote .rk { margin:0; font-size:10.5px; color:var(--muted); }
.rep-tote .rv { margin:3px 0 0; font-size:18px; font-weight:500; color:var(--ink); }
.rep-tote .rv.green { color:var(--emerald); }
.rep-metal { margin:8px 0 4px; font-size:11px; font-weight:500; color:var(--muted); text-transform:uppercase; letter-spacing:.3px; }
.rep-items { margin:0; padding:0; list-style:none; }
.rep-items li { display:flex; justify-content:space-between; align-items:center; padding:6px 0; border-top:0.5px solid #EEEBE1; font-size:13px; color:var(--ink); }
.rep-items li:first-child { border-top:none; }
.rep-items .ri-name { font-weight:500; }
.rep-items li em { font-style:normal; font-size:12px; color:var(--muted); white-space:nowrap; }

/* Girvi ticket number (per-shop serial) */
.lr-ticket { font-weight:600; color:var(--emerald); letter-spacing:.3px; }

/* Back button inside the landing (appbar) header */
.appbar-back { color: var(--gold); display: flex; align-items: center; margin-left: -4px; }
.appbar-back svg { width: 22px; height: 22px; }

/* Support / Contact us — ticket list */
.st-list { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.st-row { background: #fff; border: 0.5px solid var(--line); border-radius: 13px; padding: 12px 13px; }
.st-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-cat { font-size: 13px; font-weight: 500; color: var(--ink); }
.st-badge { font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .3px; padding: 2px 8px; border-radius: 999px; }
.st-badge.st-open { background: #FBF3D8; color: #8a6d0e; }
.st-badge.st-in_progress { background: #E6F1FB; color: #185FA5; }
.st-badge.st-resolved { background: #E7F1EA; color: var(--emerald); }
.st-date { margin-left: auto; font-size: 11px; color: var(--muted); }
.st-msg { margin: 8px 0 0; font-size: 13px; color: var(--ink); line-height: 1.5; word-break: break-word; }
