:root {
  --ink: #183128;
  --green: #12372a;
  --green-2: #1f5c43;
  --mint: #e6f2eb;
  --cream: #f8f6ef;
  --paper: #fffefa;
  --yellow: #f6c453;
  --peach: #f5ddd0;
  --line: #e6e4db;
  --muted: #778078;
  --danger: #b44a3c;
  --shadow: 0 14px 35px rgba(28, 55, 43, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: "DM Sans", Arial, sans-serif; }
button, input, select { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; padding: 30px 22px 22px; background: var(--green); color: white; display: flex; flex-direction: column; z-index: 10; }
.brand { display: flex; align-items: center; gap: 11px; color: white; text-decoration: none; font-family: Manrope, sans-serif; font-weight: 800; font-size: 22px; padding: 0 10px 30px; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; color: var(--green); background: var(--yellow); border-radius: 11px 11px 11px 3px; font-size: 20px; }
.side-nav { display: grid; gap: 7px; }
.nav-item { border: 0; background: transparent; color: #c8d5ce; display: flex; align-items: center; gap: 14px; padding: 13px 15px; border-radius: 10px; cursor: pointer; text-align: left; font-weight: 600; }
.nav-item:hover, .nav-item.active { color: white; background: rgba(255,255,255,.1); }
.nav-icon { font-size: 21px; width: 22px; text-align: center; }
.sidebar-tip { margin-top: auto; padding: 17px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); border-radius: 14px; }
.tip-icon { display: inline-grid; place-items: center; width: 27px; height: 27px; margin-bottom: 9px; border-radius: 8px; color: var(--green); background: var(--yellow); }
.sidebar-tip strong { display: block; font-size: 13px; }
.sidebar-tip p { color: #c8d5ce; font-size: 12px; line-height: 1.5; margin: 6px 0 0; }
.merchant-mini { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 18px 3px 0; border-top: 1px solid rgba(255,255,255,.12); }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #dce9e1; color: var(--green); font-weight: 800; font-size: 13px; }
.merchant-mini div:nth-child(2) { min-width: 0; }
.merchant-mini strong, .merchant-mini span { display: block; }
.merchant-mini strong { font-size: 12px; }
.merchant-mini span { color: #9eb2a7; font-size: 10px; margin-top: 3px; }
.merchant-mini button { margin-left: auto; border: 0; background: none; color: #b9c9c0; font-size: 20px; }
.login-screen { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: var(--green); }
.login-screen.hidden { display: none !important; }
.login-card { width: min(420px, 100%); padding: 34px; border-radius: 20px; background: var(--paper); box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 34px; color: var(--green); font-family: Manrope, sans-serif; font-size: 22px; }
.login-note { margin: 7px 0 22px; color: var(--muted); font-size: 13px; }
.demo-pin { margin: 18px 0 0; color: var(--muted); text-align: center; font-size: 10px; }
main { margin-left: 250px; min-height: 100vh; padding: 0 4.2% 60px; }
.topbar { min-height: 122px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, sans-serif; }
h1 { margin-bottom: 0; font-size: clamp(25px, 3vw, 36px); letter-spacing: -.04em; }
h2 { font-size: 20px; margin: 4px 0 0; letter-spacing: -.02em; }
.eyebrow { margin-bottom: 0; font-size: 10px; letter-spacing: .16em; font-weight: 800; color: #8a918a; }
.top-actions { display: flex; gap: 11px; align-items: center; }
.offline-pill { display: flex; align-items: center; gap: 7px; padding: 9px 12px; color: #597064; background: #e9efe9; border-radius: 50px; font-size: 11px; font-weight: 700; }
.offline-pill i { width: 7px; height: 7px; border-radius: 50%; background: #49a46d; }
.icon-button, .close-button { border: 1px solid var(--line); background: var(--paper); width: 41px; height: 41px; border-radius: 10px; cursor: pointer; font-size: 21px; }
.primary-button, .secondary-button { border: 0; border-radius: 10px; padding: 12px 18px; font-weight: 700; cursor: pointer; transition: transform .15s, opacity .15s; }
.primary-button { background: var(--green); color: white; }
.primary-button span { color: var(--yellow); margin-right: 5px; }
.primary-button:hover, .secondary-button:hover { transform: translateY(-1px); }
.secondary-button { background: #edf2ee; color: var(--green); }
.full { width: 100%; }
.view { display: none; animation: viewIn .25s ease; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(5px); } }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.balance-card, .quick-card, .panel, .metric-card, .inventory-card, .credit-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.balance-card { position: relative; overflow: hidden; padding: 25px 28px 16px; background: var(--green); color: white; border-color: var(--green); }
.card-top { display: flex; justify-content: space-between; gap: 15px; position: relative; z-index: 1; }
.card-top span { color: #b7c9bf; font-size: 12px; }
.card-top strong { display: block; font-family: Manrope; font-size: clamp(34px, 4vw, 48px); letter-spacing: -.04em; margin-top: 7px; }
.trend-badge { height: fit-content; color: #dff2e7; background: rgba(255,255,255,.1); padding: 7px 10px; border-radius: 50px; font-size: 11px; }
.trend-badge span { color: inherit; }
.mini-chart { height: 92px; margin-top: 8px; }
.mini-chart svg { width: 100%; height: 100%; }
.chart-labels { display: flex; justify-content: space-between; color: #83a093; font-size: 9px; }
.quick-card { padding: 25px 27px; }
.quick-actions { display: grid; gap: 7px; margin-top: 16px; }
.quick-actions button { display: grid; grid-template-columns: 43px 1fr; column-gap: 13px; align-items: center; border: 0; background: transparent; border-radius: 11px; padding: 9px; text-align: left; cursor: pointer; }
.quick-actions button:hover { background: #f4f4ee; }
.quick-actions strong, .quick-actions small { grid-column: 2; }
.quick-actions strong { align-self: end; font-size: 13px; }
.quick-actions small { align-self: start; color: var(--muted); font-size: 10px; }
.quick-icon, .metric-icon { grid-row: 1 / span 2; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; font-size: 21px; }
.green { background: var(--mint); color: var(--green-2); }
.yellow { background: #fff2ce; color: #9d6a02; }
.peach { background: var(--peach); color: #9b5942; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; margin: 20px 0; }
.metric-card { display: flex; align-items: center; gap: 14px; padding: 20px; box-shadow: none; }
.metric-card small { display: block; color: #8a918a; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.metric-card strong { display: block; margin-top: 4px; font-family: Manrope; font-size: 21px; }
.metric-card p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.metric-card b { color: #368458; }
.content-grid { display: grid; grid-template-columns: 1.5fr .8fr; gap: 20px; }
.panel { padding: 24px; box-shadow: none; }
.panel-header, .section-intro { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.text-button { border: 0; background: none; color: var(--green-2); font-size: 11px; font-weight: 800; cursor: pointer; }
.transaction-list { margin-top: 13px; }
.transaction { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eeece5; }
.transaction:last-child { border-bottom: 0; }
.transaction-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--green); background: #ebf1ec; font-weight: 800; }
.transaction strong, .transaction small { display: block; }
.transaction strong { font-size: 12px; }
.transaction small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.transaction-amount { text-align: right; }
.transaction-amount strong { font-size: 12px; }
.transaction-amount span { display: inline-block; color: #4e765f; background: #e7f0e9; padding: 3px 6px; border-radius: 5px; font-size: 8px; font-weight: 700; margin-top: 3px; }
.transaction-amount span.credit { color: #a1583e; background: #f8e9e1; }
.stock-alert-list { margin: 13px 0 15px; }
.stock-alert { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid #eeece5; }
.stock-alert strong, .stock-alert small { display: block; }
.stock-alert strong { font-size: 11px; }
.stock-alert small { color: var(--danger); font-size: 9px; margin-top: 3px; }
.stock-alert button { border: 0; background: #f4eee8; color: #86553f; border-radius: 7px; padding: 6px 8px; font-size: 9px; font-weight: 700; cursor: pointer; }
.count-badge { min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--danger); background: #f8e9e1; font-size: 11px; font-weight: 800; }
.section-intro { margin-bottom: 24px; }
.section-intro h2 { font-size: clamp(25px, 3vw, 34px); }
.section-intro p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.filter-row { display: flex; gap: 12px; margin-bottom: 16px; }
.filter-row input, .filter-row select, form input, form select { width: 100%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 10px; padding: 12px 13px; outline: none; }
.filter-row input:focus, form input:focus, form select:focus { border-color: #77a28a; box-shadow: 0 0 0 3px rgba(31,92,67,.08); }
.filter-row select { width: 180px; }
.large .transaction { padding: 16px 4px; }
.inventory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.inventory-card { padding: 20px; box-shadow: none; }
.inventory-card-top { display: flex; justify-content: space-between; gap: 10px; }
.inventory-card h3 { margin: 0; font-size: 15px; }
.inventory-card p { color: var(--muted); font-size: 11px; margin: 5px 0 17px; }
.stock-status { padding: 4px 7px; height: fit-content; border-radius: 20px; font-size: 8px; font-weight: 800; background: var(--mint); color: var(--green-2); }
.stock-status.low { background: #f8e9e1; color: var(--danger); }
.inventory-numbers { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }
.inventory-numbers small, .inventory-numbers strong { display: block; }
.inventory-numbers small { color: var(--muted); font-size: 9px; }
.inventory-numbers strong { font-size: 14px; margin-top: 3px; }
.qty-control { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.qty-control button { width: 29px; height: 29px; border: 1px solid var(--line); background: white; border-radius: 7px; cursor: pointer; }
.qty-control span { font-size: 11px; color: var(--muted); margin-left: auto; }
.price-button { width: auto !important; padding: 0 9px; color: var(--green-2); font-size: 9px; font-weight: 800; }
.credit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.credit-card { padding: 22px; box-shadow: none; }
.credit-head { display: flex; align-items: center; gap: 12px; }
.credit-head .avatar { background: var(--peach); color: #92563f; }
.credit-head h3 { margin: 0; font-size: 14px; }
.credit-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.credit-card .amount { font-family: Manrope; font-size: 25px; margin: 20px 0; }
.credit-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.credit-actions button, .whatsapp-link { border: 0; padding: 10px; border-radius: 8px; font-size: 10px; font-weight: 800; cursor: pointer; text-align: center; text-decoration: none; }
.credit-actions button { color: white; background: var(--green); }
.whatsapp-link { color: var(--green-2); background: var(--mint); }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(13,35,27,.62); backdrop-filter: blur(3px); }
.modal-backdrop.open { display: flex; }
.modal { width: min(480px, 100%); max-height: 92vh; overflow: auto; background: var(--paper); border-radius: 18px; padding: 25px; box-shadow: 0 30px 80px rgba(0,0,0,.25); animation: modalIn .2s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.close-button { font-size: 24px; line-height: 1; }
form { display: grid; gap: 15px; }
form label { display: grid; gap: 7px; color: #526159; font-size: 11px; font-weight: 700; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.payment-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.payment-options input { position: absolute; opacity: 0; pointer-events: none; }
.payment-options label { display: block; border: 1px solid var(--line); border-radius: 9px; padding: 10px; text-align: center; cursor: pointer; }
.payment-options input:checked + label { color: white; background: var(--green); border-color: var(--green); }
.hidden { display: none !important; }
.sale-total { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; padding: 17px; background: #f1f3ed; border-radius: 11px; }
.sale-total span { color: var(--muted); font-size: 11px; }
.sale-total strong { font-family: Manrope; font-size: 24px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 20px); background: #152d24; color: white; padding: 12px 18px; border-radius: 10px; opacity: 0; pointer-events: none; transition: .25s; box-shadow: var(--shadow); font-size: 12px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.empty-state { padding: 35px 12px; text-align: center; color: var(--muted); font-size: 12px; }
.role-guide { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.role-guide article { padding: 15px; border-radius: 11px; background: var(--mint); }
.role-guide strong, .role-guide span { display: block; }
.role-guide strong { font-size: 12px; }
.role-guide span { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.staff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.staff-card { display: flex; align-items: center; gap: 13px; padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.staff-card .avatar { flex: 0 0 auto; }
.staff-card-info { min-width: 0; flex: 1; }
.staff-card strong, .staff-card small { display: block; }
.staff-card strong { font-size: 13px; }
.staff-card small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.staff-card-actions { display: grid; gap: 5px; }
.staff-card button { border: 0; border-radius: 7px; padding: 7px 9px; color: var(--green-2); background: var(--mint); font-size: 9px; font-weight: 800; cursor: pointer; }
.staff-card button.remove-staff { color: var(--danger); background: #f8e9e1; }
.role-pill { display: inline-block !important; width: fit-content; margin-top: 7px !important; padding: 3px 7px; border-radius: 20px; color: var(--green-2) !important; background: var(--mint); font-weight: 800; }
.activity-row { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.activity-row:last-child { border-bottom: 0; }
.activity-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: var(--green); background: var(--mint); font-weight: 800; }
.activity-row strong, .activity-row small { display: block; }
.activity-row strong { font-size: 12px; }
.activity-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.activity-time { color: var(--muted); font-size: 9px; text-align: right; }
.permission-summary { padding: 13px; border-radius: 9px; color: var(--green-2); background: var(--mint); font-size: 10px; line-height: 1.5; }
.permission-denied { padding: 30px; border-radius: 14px; color: var(--muted); background: var(--paper); text-align: center; }
[data-permission-hidden="true"] { display: none !important; }
.subscription-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: -16px 0 24px; padding: 13px 16px; border: 1px solid #ead493; border-radius: 11px; background: #fff6d9; }
.subscription-banner strong, .subscription-banner span { display: block; }
.subscription-banner strong { font-size: 12px; }
.subscription-banner span { margin-top: 2px; color: #77683d; font-size: 10px; }
.subscription-banner button { border: 0; border-radius: 7px; padding: 8px 11px; color: white; background: var(--green); font-size: 9px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.subscription-banner.grace { border-color: #efb7a9; background: #fbe9e4; }
.access-lock { position: fixed; inset: 0; z-index: 190; display: grid; place-items: center; padding: 20px; background: rgba(18,55,42,.96); }
.lock-card { width: min(430px, 100%); padding: 36px; border-radius: 20px; background: var(--paper); text-align: center; }
.lock-icon { display: grid; width: 54px; height: 54px; margin: 0 auto 20px; place-items: center; border-radius: 16px; color: var(--green); background: var(--yellow); font-size: 25px; font-weight: 800; }
.lock-card h2 { margin: 7px 0 10px; font-size: 25px; }
.lock-card p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.lock-card .text-button { margin-top: 13px; padding: 10px; }
.billing-summary { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; margin-bottom: 20px; }
.current-plan-card, .billing-detail-card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.plan-status-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-status-line h2 { font-size: 26px; }
.status-pill { padding: 5px 9px; border-radius: 20px; color: #7a5b0c; background: #fff0bf; font-size: 8px; font-weight: 800; }
.status-pill.active { color: #23613f; background: var(--mint); }
.status-pill.grace, .status-pill.expired { color: var(--danger); background: #f8e9e1; }
.current-plan-card > p:not(.eyebrow) { color: var(--muted); font-size: 12px; }
.renewal-box { display: flex; justify-content: space-between; align-items: center; margin: 19px 0; padding: 14px; border-radius: 10px; background: #f3f4ef; }
.renewal-box span { color: var(--muted); font-size: 10px; }
.renewal-box strong { font-size: 12px; }
.billing-detail-card dl { margin: 12px 0 0; }
.billing-detail-card dl div { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.billing-detail-card dl div:last-child { border-bottom: 0; }
.billing-detail-card dt { color: var(--muted); font-size: 10px; }
.billing-detail-card dd { margin: 0; font-size: 11px; font-weight: 700; text-align: right; }
.plan-selection { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0; }
.plan-card { position: relative; padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.plan-card.featured { border: 2px solid var(--green); box-shadow: var(--shadow); }
.plan-card.selected-plan { box-shadow: 0 0 0 3px rgba(31,92,67,.14); }
.plan-label { color: var(--green-2); font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.plan-card h3 { margin: 9px 0 4px; font-size: 27px; }
.plan-card h3 small { color: var(--muted); font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 500; }
.plan-card p { color: var(--muted); font-size: 11px; }
.plan-card ul { min-height: 112px; padding-left: 18px; color: #53635a; font-size: 10px; line-height: 1.8; }
.popular-label, .saving-label { position: absolute; right: 14px; top: 13px; padding: 4px 7px; border-radius: 20px; font-size: 7px; font-weight: 800; }
.popular-label { color: var(--green); background: var(--yellow); }
.saving-label { color: var(--green-2); background: var(--mint); }
.billing-lower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.coupon-form { display: flex; grid-template-columns: none; gap: 8px; margin-top: 18px; }
.coupon-form button { flex: 0 0 auto; }
.coupon-message { min-height: 17px; margin: 8px 0 0; color: var(--green-2); font-size: 9px; }
.payment-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.payment-row:last-child { border-bottom: 0; }
.payment-row strong, .payment-row small { display: block; }
.payment-row strong { font-size: 11px; }
.payment-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.payment-row span { font-size: 11px; font-weight: 800; }
.report-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.report-metric { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.report-metric small, .report-metric strong { display: block; }
.report-metric small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.report-metric strong { margin-top: 7px; font: 800 23px Manrope, sans-serif; }
.report-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.report-row:last-child { border-bottom: 0; }
.report-row strong, .report-row small { display: block; }
.report-row strong { font-size: 11px; }
.report-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.report-row > span { font-size: 11px; font-weight: 800; }
.profit-report-grid { margin-top: 16px; }
.checkout-total { display: flex; justify-content: space-between; align-items: center; padding: 18px; border-radius: 11px; background: var(--mint); }
.checkout-total span { color: var(--muted); font-size: 11px; }
.checkout-total strong { font: 800 27px Manrope, sans-serif; }
.checkout-note { margin: 16px 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.demo-payment-button { margin-top: 8px; border: 1px dashed #9aa69f; border-radius: 9px; padding: 11px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }
.guest-search-button { margin-top: 11px; }
.market-ad-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; padding: 24px; border: 1px solid #ead493; border-radius: 16px; background: linear-gradient(135deg, #fff6d9, #f8f6ef); box-shadow: var(--shadow); }
.market-ad-banner h2 { margin-top: 4px; }
.market-ad-banner p:not(.eyebrow) { margin: 6px 0 0; color: #77683d; font-size: 12px; }
.market-search { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.market-search .primary-button { align-self: end; }
.share-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--muted); font-size: 11px; font-weight: 800; }
.share-strip button, .product-share button { border: 0; border-radius: 20px; padding: 7px 10px; color: var(--green-2); background: var(--mint); font-size: 9px; font-weight: 800; cursor: pointer; }
.market-results { display: grid; gap: 14px; }
.market-card { display: grid; grid-template-columns: 1fr 190px 120px 100px 190px; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.market-card h3 { margin: 4px 0 7px; font-size: 20px; }
.market-card strong { display: block; font-size: 13px; }
.market-card p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.market-price, .market-qty { padding: 13px; border-radius: 12px; background: var(--mint); text-align: center; }
.market-price { background: #fff2ce; }
.market-price small, .market-price span, .market-qty small, .market-qty span { display: block; }
.market-price small, .market-qty small { color: var(--green-2); font-size: 8px; font-weight: 800; }
.market-price span { margin-top: 5px; font: 800 16px Manrope, sans-serif; }
.market-qty span { margin-top: 5px; font: 800 25px Manrope, sans-serif; }
.seller-rating { padding: 13px; border-radius: 12px; background: #f3f4ef; }
.seller-rating small, .seller-rating strong { display: block; }
.seller-rating small { color: var(--muted); font-size: 8px; font-weight: 800; }
.seller-rating strong { margin-top: 5px; font-size: 12px; }
.rating-bar { height: 6px; overflow: hidden; margin: 9px 0; border-radius: 20px; background: #e1e5dd; }
.rating-bar span { display: block; height: 100%; border-radius: inherit; background: var(--green-2); }
.rating-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rating-actions button { border: 0; border-radius: 8px; padding: 7px; color: var(--green-2); background: white; font-size: 10px; font-weight: 800; cursor: pointer; }
.market-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.market-actions a, .market-actions span { padding: 10px; border-radius: 9px; text-align: center; text-decoration: none; font-size: 10px; font-weight: 800; }
.market-actions a:first-child { color: white; background: var(--green); }
.market-actions a:nth-child(2), .market-actions span { color: var(--green-2); background: var(--mint); }
.product-share { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 800; }
.welcome-page { min-height: 100vh; background: var(--cream); }
.welcome-nav { display: flex; align-items: center; justify-content: space-between; width: min(1160px, calc(100% - 36px)); margin: auto; padding: 21px 0; }
.welcome-nav .brand { padding: 0; color: var(--green); }
.welcome-login-link { color: var(--green); font-size: 12px; font-weight: 800; text-decoration: none; }
.welcome-main { margin: 0; padding: 0; }
.welcome-hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 50px; align-items: center; width: min(1160px, calc(100% - 36px)); margin: 0 auto; padding: 80px 0 95px; }
.welcome-hero h1 { max-width: 720px; margin: 17px 0; font-size: clamp(48px, 8vw, 82px); line-height: .98; }
.welcome-hero p { max-width: 650px; color: var(--muted); font-size: 18px; }
.welcome-badge { display: inline-block; padding: 7px 11px; border-radius: 30px; color: var(--green); background: var(--yellow); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.welcome-cta, .plan-card a { display: inline-block; border-radius: 10px; color: white; background: var(--green); font-weight: 800; text-align: center; text-decoration: none; }
.welcome-cta { margin-top: 15px; padding: 14px 20px; }
.plan-card a { width: 100%; padding: 11px; font-size: 11px; }
.welcome-proof { display: grid; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: var(--shadow); }
.welcome-proof strong { padding: 19px; color: white; background: var(--green); }
.welcome-proof span { padding: 15px 19px; border-bottom: 1px solid var(--line); font-size: 12px; }
.public-pricing { padding: 70px max(18px, calc((100% - 1160px)/2)); background: white; }
.public-heading { max-width: 600px; margin: 0 auto 35px; text-align: center; }
.public-heading h2, .registration-copy h2 { font-size: 36px; }
.public-heading > p:last-child, .registration-copy p:last-child { color: var(--muted); }
.registration-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; width: min(1050px, calc(100% - 36px)); margin: 0 auto; padding: 85px 0; }
.registration-form { padding: 28px; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: var(--shadow); }
.registration-form > small { color: var(--muted); text-align: center; }
.terms-check { display: flex !important; grid-template-columns: 18px 1fr; align-items: center; }
.terms-check input { width: 16px; }
.welcome-footer { padding: 25px; color: #c9d6cf; background: var(--green); text-align: center; font-size: 10px; }
.mobile-nav { display: none; }
@media (max-width: 980px) {
  .sidebar { width: 210px; }
  main { margin-left: 210px; padding-inline: 3%; }
  .hero-grid, .content-grid { grid-template-columns: 1fr; }
  .inventory-grid { grid-template-columns: repeat(2, 1fr); }
  .role-guide { grid-template-columns: repeat(2, 1fr); }
  .plan-selection { grid-template-columns: 1fr; }
  .plan-card ul { min-height: 0; }
}
@media (max-width: 720px) {
  body { padding-bottom: 76px; }
  .sidebar { display: none; }
  main { margin-left: 0; padding: 0 16px 28px; }
  .topbar { min-height: 98px; margin-bottom: 22px; }
  .top-actions .offline-pill, .top-actions .icon-button, .top-actions .primary-button { display: none; }
  h1 { font-size: 25px; }
  .hero-grid { gap: 14px; }
  .balance-card { padding: 22px 20px 14px; }
  .metric-grid { grid-template-columns: 1fr; gap: 10px; margin-block: 14px; }
  .metric-card { padding: 15px 17px; }
  .content-grid { gap: 14px; }
  .panel { padding: 19px 17px; }
  .quick-card { padding: 21px 18px; }
  .inventory-grid, .credit-grid, .staff-grid, .role-guide, .billing-summary, .billing-lower-grid, .report-summary, .market-search, .market-card { grid-template-columns: 1fr; }
  .market-ad-banner { align-items: flex-start; flex-direction: column; }
  .market-actions { grid-template-columns: 1fr 1fr; }
  .section-intro { align-items: flex-end; }
  .section-intro .primary-button { font-size: 0; width: 42px; height: 42px; padding: 0; }
  .section-intro .primary-button::first-letter { font-size: 20px; }
  .section-intro h2 { font-size: 24px; }
  .filter-row { flex-direction: column; }
  .filter-row select { width: 100%; }
  .mobile-nav { position: fixed; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(62px, 1fr); overflow-x: auto; bottom: 0; left: 0; right: 0; z-index: 30; height: 67px; padding: 6px 8px 5px; background: rgba(255,254,250,.96); border-top: 1px solid var(--line); backdrop-filter: blur(12px); scrollbar-width: none; }
  .mobile-nav::-webkit-scrollbar { display: none; }
  .mobile-nav button { border: 0; background: none; color: #7a847d; display: grid; place-items: center; align-content: center; gap: 2px; font-size: 9px; font-weight: 700; }
  .mobile-nav button span { font-size: 20px; }
  .mobile-nav button.active { color: var(--green); }
  .mobile-nav .mobile-sale span { width: 45px; height: 45px; display: grid; place-items: center; margin-top: -21px; border-radius: 50%; color: var(--yellow); background: var(--green); box-shadow: 0 8px 18px rgba(18,55,42,.25); }
  .subscription-banner { margin-top: -7px; }
  .welcome-hero, .registration-section { grid-template-columns: 1fr; padding-block: 55px; }
  .welcome-hero { gap: 30px; }
  .welcome-hero h1 { font-size: 48px; }
  .public-heading h2, .registration-copy h2 { font-size: 29px; }
}
@media (max-width: 420px) {
  .form-row { grid-template-columns: 1fr; }
  .card-top strong { font-size: 36px; }
  .transaction { grid-template-columns: 35px 1fr auto; gap: 9px; }
}
