:root {
  --primary: #0a9d58;
  --primary-2: #0b7a4b;
  --primary-light: #e7f7ef;
  --blue: #2e6fda;
  --blue-light: #eaf1fd;
  --cyan: #0aa2b8;
  --cyan-light: #e5f7fa;
  --purple: #7c4dff;
  --purple-light: #f0eaff;
  --teal: #0c8f86;
  --teal-light: #e0f5f3;
  --orange: #f2991e;
  --orange-light: #fef3e2;
  --red: #e5484d;
  --red-light: #fdebec;
  --dark: #25313c;
  --gray: #8a94a0;
  --gray-light: #f2f4f7;
  --border: #e5e9ef;
  --text: #1c2632;
  --muted: #6b7682;
  --bg: #f4f6f9;
  --card: #ffffff;
  --shadow: 0 6px 22px rgba(23, 43, 66, 0.07);
  --shadow-hover: 0 12px 30px rgba(23, 43, 66, 0.13);
  --radius: 14px;
  --radius-sm: 9px;
  --sidebar-w: 258px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
a { color: var(--primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #10362a 0%, #0b7a4b 120%);
  color: #fff;
  display: flex; flex-direction: column;
  position: fixed; inset: 0 auto 0 0; z-index: 60;
  transition: transform .28s ease;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 20px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand-logo {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #22d07a, #0a9d58);
  display: grid; place-items: center; font-size: 20px; box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.brand-text strong { display: block; font-size: 15px; letter-spacing: .2px; }
.brand-text span { font-size: 11px; opacity: .8; }
.menu { flex: 1; padding: 14px 12px; overflow-y: auto; }
.menu-item {
  display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.85);
  padding: 11px 13px; border-radius: 10px; margin-bottom: 3px; font-weight: 500;
  transition: background .18s, color .18s;
}
.menu-item i { width: 20px; text-align: center; font-size: 15px; }
.menu-item:hover { background: rgba(255,255,255,.1); color: #fff; }
.menu-item.active { background: #fff; color: var(--primary-2); font-weight: 600; box-shadow: var(--shadow); }
.menu-badge {
  margin-left: auto; background: var(--orange); color: #fff; font-size: 11px;
  border-radius: 20px; padding: 1px 7px; font-weight: 700;
}
.menu-item.active .menu-badge { background: var(--red); }
.sidebar-foot { padding: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.mini-user { display: flex; align-items: center; gap: 10px; }
.mini-user strong { display: block; font-size: 13px; }
.mini-user span { font-size: 11px; opacity: .8; }

.backdrop { position: fixed; inset: 0; background: rgba(15,25,35,.5); z-index: 55; opacity: 0; visibility: hidden; transition: .25s; }
.main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0; }

.topbar {
  background: var(--card); border-bottom: 1px solid var(--border);
  padding: 14px 24px; display: flex; align-items: center; gap: 16px;
  position: sticky; top: 0; z-index: 40;
}
.topbar-title { flex: 1; }
.crumb { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.topbar-title h1 { font-size: 18px; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; color: var(--text); display: grid; place-items: center; font-size: 16px;
  position: relative; transition: .18s;
}
.icon-btn:hover { background: var(--gray-light); }
.bell .dot {
  position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); border: 2px solid #fff;
}
.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 5px; border-radius: 40px; background: var(--gray-light); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff; display: grid; place-items: center; font-weight: 700;
}
.chip-meta strong { display: block; font-size: 13px; line-height: 1.1; }
.chip-meta span { font-size: 11px; color: var(--muted); }

.content { padding: 24px; flex: 1; max-width: 1500px; width: 100%; margin: 0 auto; }
.app-footer { padding: 18px 24px; text-align: center; color: var(--muted); font-size: 12px; border-top: 1px solid var(--border); background: var(--card); }

/* ---------- Components ---------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2 { font-size: 16px; font-weight: 700; }
.card-head h3 { font-size: 14px; font-weight: 700; }
.muted { color: var(--muted); }
.text-green { color: var(--primary); }
.text-red { color: var(--red); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* Stat cards */
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; transition: transform .2s, box-shadow .2s; }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.stat-ic { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.stat-ic.green { background: var(--primary-light); color: var(--primary); }
.stat-ic.blue { background: var(--blue-light); color: var(--blue); }
.stat-ic.cyan { background: var(--cyan-light); color: var(--cyan); }
.stat-ic.orange { background: var(--orange-light); color: var(--orange); }
.stat-ic.red { background: var(--red-light); color: var(--red); }
.stat-ic.purple { background: var(--purple-light); color: var(--purple); }
.stat-ic.teal { background: var(--teal-light); color: var(--teal); }
.stat-ic.dark { background: var(--gray-light); color: var(--dark); }
.stat-body .stat-label { font-size: 12px; color: var(--muted); }
.stat-body .stat-value { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.stat-body .stat-sub { font-size: 11px; color: var(--muted); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 30px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-green { background: var(--primary-light); color: var(--primary); }
.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-cyan { background: var(--cyan-light); color: var(--cyan); }
.badge-orange { background: var(--orange-light); color: var(--orange); }
.badge-red { background: var(--red-light); color: var(--red); }
.badge-purple { background: var(--purple-light); color: var(--purple); }
.badge-teal { background: var(--teal-light); color: var(--teal); }
.badge-gray { background: var(--gray-light); color: var(--gray); }
.badge-dark { background: #e8ebef; color: var(--dark); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; transition: .18s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--gray-light); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #d23b40; }
.btn-warning { background: var(--orange); color: #fff; }
.btn-success { background: var(--primary); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn i { font-size: 14px; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
thead th { background: var(--gray-light); text-align: left; padding: 12px 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); position: sticky; top: 0; }
tbody td { padding: 12px 14px; border-top: 1px solid var(--border); vertical-align: middle; font-size: 13.5px; }
tbody tr:hover { background: #fafbfc; }
.td-strong { font-weight: 600; }

/* Forms */
.form-grid { display: grid; gap: 16px; }
.f-2 { grid-template-columns: repeat(2, 1fr); }
.f-3 { grid-template-columns: repeat(3, 1fr); }
.f-4 { grid-template-columns: repeat(4, 1fr); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  padding: 11px 13px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px;
  font-family: inherit; background: #fff; color: var(--text); transition: border .15s, box-shadow .15s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10,157,88,.13);
}
.field textarea { resize: vertical; min-height: 80px; }
.field .hint { font-size: 12px; color: var(--muted); }
.field .err { font-size: 12px; color: var(--red); }
.field.invalid input, .field.invalid select { border-color: var(--red); }
.form-section { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; background: #fdfefe; }
.form-section h3 { font-size: 14px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; color: var(--primary-2); }

.password-wrap { position: relative; }
.password-wrap .toggle-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); padding: 8px; }

/* Search bar & filters */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.search-box { position: relative; flex: 1; min-width: 220px; }
.search-box i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input { padding: 11px 13px 11px 38px; border: 1.5px solid var(--border); border-radius: 10px; width: 100%; font-size: 14px; }
.search-box input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10,157,88,.13); }
.select-sm { padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 13px; background: #fff; }

/* Searchable select */
.searchable-select { position: relative; }
.searchable-select .ss-box { display: flex; align-items: center; gap: 8px; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer; background: #fff; min-height: 20px; }
.searchable-select .ss-box:focus-within { border-color: var(--primary); }
.searchable-select .ss-input { border: 0; outline: none; flex: 1; font-size: 14px; background: transparent; }
.searchable-select .ss-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-hover); max-height: 220px; overflow-y: auto; z-index: 30; display: none; }
.searchable-select.open .ss-list { display: block; }
.ss-opt { padding: 10px 13px; cursor: pointer; font-size: 13.5px; }
.ss-opt:hover, .ss-opt.selected { background: var(--primary-light); color: var(--primary-2); }
.ss-empty { padding: 12px; color: var(--muted); font-size: 13px; }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 6px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 7px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; color: var(--text); background: #fff; }
.pagination a:hover { background: var(--gray-light); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-info { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* Alerts / empty states */
.alert { padding: 13px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; border: 1px solid transparent; display: flex; gap: 10px; align-items: center; }
.alert-success { background: var(--primary-light); color: var(--primary-2); border-color: #bfe7d3; }
.alert-error { background: var(--red-light); color: #b23236; border-color: #f4c5c6; }
.alert-info { background: var(--blue-light); color: #2456a8; border-color: #c6d8f6; }
.alert-warning { background: var(--orange-light); color: #a6670a; border-color: #f3dfbd; }
.empty-state { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty-state i { font-size: 44px; color: #c7d0d9; margin-bottom: 12px; }
.empty-state h4 { color: var(--text); margin-bottom: 4px; }

/* Toast */
.toast-wrap { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.toast { background: #fff; border-radius: 12px; box-shadow: var(--shadow-hover); padding: 13px 16px; display: flex; gap: 11px; align-items: center; border-left: 4px solid var(--primary); animation: slideIn .3s ease; }
.toast.error { border-left-color: var(--red); }
.toast.warning { border-left-color: var(--orange); }
.toast i { font-size: 18px; }
.toast.success i { color: var(--primary); }
.toast.error i { color: var(--red); }
.toast.warning i { color: var(--orange); }
@keyframes slideIn { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { transform: translateX(110%); opacity: 0; } }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(15,25,35,.55); z-index: 150; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: 16px; width: 100%; max-width: 460px; padding: 26px; box-shadow: 0 24px 60px rgba(0,0,0,.3); animation: popIn .25s ease; }
.modal-box.lg { max-width: 640px; }
@keyframes popIn { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confirm-box { text-align: center; }
.confirm-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; margin: 0 auto 14px; }
.confirm-icon.warn { background: var(--orange-light); color: var(--orange); }
.confirm-icon.danger { background: var(--red-light); color: var(--red); }
.confirm-box h3 { font-size: 18px; margin-bottom: 8px; }
.confirm-box p { color: var(--muted); margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: center; }

/* Timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding: 6px 0 16px; }
.tl-item .tl-dot { position: absolute; left: -28px; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--gray); }
.tl-item.done .tl-dot { border-color: var(--primary); background: var(--primary); }
.tl-item.current .tl-dot { border-color: var(--orange); background: var(--orange); }
.tl-item .tl-title { font-weight: 600; font-size: 13.5px; }
.tl-item .tl-date { font-size: 12px; color: var(--muted); }

/* Detail list */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 22px; }
.detail-item .dl-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.detail-item .dl-value { font-weight: 600; font-size: 14px; word-break: break-word; }
.detail-item .dl-value.mono { font-family: 'Consolas', monospace; }

/* Charts */
.chart-box { min-height: 260px; position: relative; }
.chart-box canvas { width: 100% !important; }

/* Wizard steps */
.steps { display: flex; align-items: center; gap: 0; margin-bottom: 24px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.step .step-num { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; font-weight: 700; font-size: 14px; background: #fff; }
.step.active .step-num { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.step.done .step-num { border-color: var(--primary); background: var(--primary); color: #fff; }
.step-label { font-size: 13px; font-weight: 600; }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 10px; min-width: 16px; }

/* Preview blocks */
.preview-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.preview-card .pv-head { background: var(--gray-light); padding: 12px 16px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.preview-card .pv-body { padding: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 22px; }
.pv-item .pv-label { font-size: 12px; color: var(--muted); }
.pv-item .pv-value { font-weight: 600; font-size: 14px; }

/* Success screen */
.success-screen { text-align: center; padding: 40px 20px; }
.success-check { width: 90px; height: 90px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; font-size: 42px; margin: 0 auto 18px; animation: pulse 1.2s ease infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(10,157,88,.35); } 50% { box-shadow: 0 0 0 16px rgba(10,157,88,0); } }
.success-screen h2 { font-size: 22px; margin-bottom: 6px; }
.success-screen p { color: var(--muted); max-width: 460px; margin: 0 auto; }

/* Quick actions */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.qa { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; color: var(--text); transition: .2s; }
.qa i { font-size: 22px; color: var(--primary); margin-bottom: 8px; display: block; }
.qa span { font-size: 13px; font-weight: 600; }
.qa:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--primary); }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, #eef1f4 25%, #f6f8fa 37%, #eef1f4 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* Login */
.login-body { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #0b7a4b, #0a9d58 55%, #11b6a0); padding: 20px; }
.login-card { background: #fff; border-radius: 20px; box-shadow: 0 24px 70px rgba(0,0,0,.25); width: 100%; max-width: 440px; padding: 34px; }
.login-brand { text-align: center; margin-bottom: 24px; }
.login-brand .brand-logo { margin: 0 auto 12px; width: 56px; height: 56px; font-size: 26px; border-radius: 16px; background: linear-gradient(135deg, #22d07a, #0a9d58); display: grid; place-items: center; color: #fff; box-shadow: 0 8px 20px rgba(10,157,88,.4); }
.login-brand h1 { font-size: 20px; }
.login-brand p { color: var(--muted); font-size: 13px; }
.role-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--gray-light); padding: 5px; border-radius: 12px; margin-bottom: 22px; }
.role-tab { text-align: center; padding: 10px; border-radius: 9px; font-weight: 600; color: var(--muted); cursor: pointer; font-size: 13px; }
.role-tab.active { background: #fff; color: var(--primary); box-shadow: var(--shadow); }
.login-foot { text-align: center; margin-top: 18px; font-size: 13px; color: var(--muted); }
.forgot { font-size: 13px; text-align: right; margin-top: 6px; }
.remember { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 6px; }

/* Install wizard */
.install-body { min-height: 100vh; background: linear-gradient(135deg, #0b7a4b, #11a45f 55%, #12b8a2); display: grid; place-items: center; padding: 20px; }
.install-card { background: #fff; border-radius: 20px; box-shadow: 0 24px 70px rgba(0,0,0,.3); width: 100%; max-width: 620px; padding: 34px; }
.install-card .brand-logo { margin: 0 auto 14px; width: 60px; height: 60px; font-size: 26px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #22d07a, #0a9d58); border-radius: 16px; box-shadow: 0 8px 20px rgba(10,157,88,.4); }

/* Notification list */
.notif-item { display: flex; gap: 13px; padding: 14px 4px; border-bottom: 1px solid var(--border); }
.notif-item.unread { background: var(--primary-light); border-radius: 10px; padding: 14px 12px; }
.notif-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-light); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.notif-body strong { display: block; font-size: 13.5px; }
.notif-body p { font-size: 13px; color: var(--muted); }
.notif-body .time { font-size: 11px; color: var(--muted); }

/* Profile header */
.profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.profile-head .big-avatar { width: 74px; height: 74px; border-radius: 50%; font-size: 30px; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; display: grid; place-items: center; }

/* Refund actions */
.refund-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }

/* ---------- Responsive ---------- */
.menu-toggle { display: none; }
.mobile-nav { display: none; }

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .f-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .backdrop.show { opacity: 1; visibility: visible; }
  .menu-toggle { display: grid; }
  .main { margin-left: 0; }
  .content { padding: 16px; }
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
  .f-2, .f-3, .f-4 { grid-template-columns: 1fr; }
  .detail-grid, .preview-card .pv-body { grid-template-columns: 1fr; }
  .topbar { padding: 12px 16px; }
  .chip-meta { display: none; }
  .app-footer { padding: 14px 16px; }
  .mobile-nav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; bottom: 0; left: 0; right: 0; background: #fff;
    border-top: 1px solid var(--border); z-index: 50; box-shadow: 0 -4px 18px rgba(0,0,0,.08);
  }
  .mobile-nav a { text-align: center; padding: 9px 0 7px; color: var(--muted); font-size: 10px; position: relative; }
  .mobile-nav a i { font-size: 18px; display: block; margin-bottom: 3px; }
  .mobile-nav a.active { color: var(--primary); }
  .mnav-bell .dot { position: absolute; top: 8px; right: 24px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 1.5px solid #fff; }
  .content { padding-bottom: 78px; }
  .steps { gap: 6px; }
  .step-label { display: none; }
  .step-line { margin: 0 4px; }
  .modal-box { padding: 20px; }
}
@media (max-width: 480px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .topbar-title h1 { font-size: 16px; }
  .user-chip .avatar { width: 32px; height: 32px; }
  .btn { padding: 10px 14px; }
}
