/* Paidi Projects — shared admin interface. Loaded after legacy page styles. */
:root {
  color-scheme: dark;
  --bg-base: #080d18;
  --bg-sidebar: #0c1220;
  --bg-surface: #101827;
  --bg-card: #111a2b;
  --bg-card-hover: #162238;
  --bg-input: #0c1423;
  --bg-secondary: #0c1423;
  --bg-hover: #172239;
  --border: #202d43;
  --border-hover: #344763;
  --text-primary: #f1f5ff;
  --text-secondary: #a1aec4;
  --text-muted: #8392ab;
  --primary: #629cff;
  --primary-dark: #3278ed;
  --accent: #aa89ff;
  --success: #3bd4a2;
  --warning: #f9bd59;
  --danger: #ff7e8a;
  --sidebar-width: 248px;
  --topbar-height: 78px;
  --shadow-card: 0 8px 28px #00000012;
}
/* Fixed, decorative sky behind the interface. No canvas, animation, or image download. */
body { font-size: 14px; background: #060911; isolation: isolate; }
body::before, body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}
body::before {
  z-index: -2;
  background:
    radial-gradient(ellipse at 14% 12%, #344a9c26 0%, transparent 48%),
    radial-gradient(ellipse at 96% 19%, #0e72691c 0%, transparent 45%),
    radial-gradient(ellipse at 58% 90%, #6935861b 0%, transparent 48%);
}
body::after {
  z-index: -1;
  background-image:
    radial-gradient(circle at 19px 31px, #d4defa70 0 1px, transparent 1.6px),
    radial-gradient(circle at 97px 121px, #8b9cc74d 0 .8px, transparent 1.4px),
    radial-gradient(circle at 151px 63px, #57c6bd55 0 1px, transparent 1.7px),
    radial-gradient(circle at 231px 187px, #ab94ed48 0 .9px, transparent 1.5px),
    radial-gradient(circle at 57px 249px, #94bfff5c 0 .8px, transparent 1.4px),
    radial-gradient(circle at 317px 271px, #ced8f43d 0 .7px, transparent 1.3px),
    radial-gradient(circle at 391px 97px, #7d97bf33 0 .7px, transparent 1.3px);
  background-size: 433px 397px, 307px 349px, 571px 463px, 619px 557px, 487px 613px, 743px 677px, 829px 503px;
}
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
button, .btn { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
[hidden] { display: none !important; }
.ui-icon { width: 20px; height: 20px; flex: 0 0 auto; stroke-width: 1.7; vertical-align: middle; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 10001; padding: 12px 20px; background: var(--primary-dark); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.sidebar { height: 100dvh; padding: 0 14px; border-color: #1c273c; }
.sidebar-logo { min-height: 98px; padding: 22px 10px; border-bottom: 0; }
.brand-mark { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 40px; height: 42px; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #508dff, #7257e6); box-shadow: 0 6px 20px #326fe82b, inset 0 1px 0 #ffffff40; }
.brand-mark .ui-icon { width: 24px; height: 24px; }
.sidebar-logo .logo-text { font-size: 14px; letter-spacing: .025em; }
.sidebar-logo .logo-text small { font-size: 11px; margin-top: 6px; letter-spacing: .04em; color: var(--text-muted); }
.sidebar-nav { padding: 8px 0; }
.nav-section-label { font-size: 10px; letter-spacing: .15em; padding: 16px 14px 10px; }
.nav-item { min-height: 46px; padding: 11px 14px; margin-bottom: 5px; border: 1px solid transparent; border-radius: 11px; gap: 12px; font-size: 13px; }
.nav-item.active { background: linear-gradient(100deg, #22406b80, #24365a55); border-color: #36568d70; color: #a5c7ff; }
.nav-item.active::before { display: none; }
.nav-item.active::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #8bb8ff; margin-left: auto; }
.nav-item:has(.nav-badge).active::after { display: none; }
.nav-item .nav-badge { background: #f5af3820; color: #ffd080; border: 1px solid #f5af3835; }
.sidebar-footer { padding: 16px 0 20px; }
.sidebar-balance { position: relative; padding: 14px; background: linear-gradient(120deg, #142435, #121c2d); border-color: #2a3c50; }
.sidebar-balance .label { color: #9bacc1; font-size: 10px; letter-spacing: .03em; }
.sidebar-balance .amount { color: #61dfb6; font-size: 14px; font-variant-numeric: tabular-nums; }
.sidebar-balance > .ui-icon { position: absolute; right: 13px; top: 17px; color: #66c5b0; width: 18px; }
.sidebar-footer .btn-danger { color: var(--text-secondary); background: transparent; border-color: transparent; justify-content: flex-start; padding-left: 15px; }
.sidebar-footer .btn-danger:hover { color: var(--danger); background: #ff7e8a0c; }
.sidebar-caption { font-size: 10px; color: var(--text-muted); text-align: center; margin-top: 12px; }
.main-content { min-width: 0; width: calc(100% - var(--sidebar-width)); }
.topbar { min-height: var(--topbar-height); height: auto; padding: 18px 34px; background: #0a101ce8; gap: 14px; }
.topbar-title { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; min-width: 0; }
.topbar-title::before { content: 'Workspace'; color: var(--text-muted); font-weight: 400; }
.topbar-title::after { content: ''; order: -1; display: none; }
.breadcrumb-divider { color: #51627e; font-size: 17px; }
.topbar-actions { flex-wrap: wrap; gap: 10px; }
.profile-avatar { width: 34px; height: 34px; border: 1px solid #435284; background: #292746; border-radius: 11px; display: grid; place-items: center; color: #c3b8ff; font-size: 11px; font-weight: 700; margin-left: 12px; flex-shrink: 0; }
.refresh-status { display: inline-flex; align-items: center; gap: 7px; color: var(--text-secondary); font-size: 11px; }
.refresh-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }
.refresh-status[data-state='success']::before { background: var(--success); }
.refresh-status[data-state='error']::before { background: var(--danger); }
.icon-button.menu-toggle, .icon-button.sidebar-close { display: none; }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 90; background: #020611ba; backdrop-filter: blur(4px); }
.page-content { width: 100%; max-width: 1700px; margin: 0 auto; padding: 32px 34px 44px; }
.page-header { margin-bottom: 26px; }
.page-header h1 { font-size: clamp(23px, 2.1vw, 30px); font-weight: 700; letter-spacing: -.045em; line-height: 1.3; margin-bottom: 9px; }
.page-header p { line-height: 1.8; font-size: 12px; max-width: 760px; }
.eyebrow { display: block; color: var(--primary); text-transform: uppercase; font-size: 10px; font-weight: 600; letter-spacing: .17em; margin-bottom: 11px; }
.page-heading-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 27px; }
.page-heading-row .page-header { margin: 0; }
.heading-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.date-chip { display: inline-flex; align-items: center; gap: 9px; padding: 9px 12px; background: #111b2c; border: 1px solid var(--border); border-radius: 9px; color: #bcc7da; font-size: 11px; white-space: nowrap; }
.date-chip .ui-icon { width: 15px; height: 15px; }
.card { min-width: 0; background: linear-gradient(125deg, #141e30, #101928); border-radius: 16px; backdrop-filter: none; overflow: hidden; }
.card-header { min-height: 72px; gap: 12px; padding: 20px 23px; flex-wrap: wrap; }
.card-header h3 { font-size: 13px; letter-spacing: -.02em; }
.card-subtitle { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.card-body { padding: 22px 23px; }
.finance-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.finance-card { position: relative; min-width: 0; padding: 22px 23px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: linear-gradient(120deg, #142033, #111a2b); }
.finance-card.featured { border-color: #345c9a; background: radial-gradient(ellipse at 100% 0, #3971dc38, transparent 70%), linear-gradient(120deg, #172e51, #15243f); }
.finance-card.featured::after { content: ''; position: absolute; width: 180px; height: 180px; right: -93px; bottom: -110px; border: 24px solid #689dff0d; border-radius: 50%; pointer-events: none; }
.finance-label { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #acbad1; }
.finance-label .ui-icon { width: 17px; height: 17px; color: #8aaff1; }
.finance-value { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.25; font-weight: 700; letter-spacing: -.05em; font-variant-numeric: tabular-nums; margin: 17px 0 14px; overflow-wrap: anywhere; }
.finance-card.featured .finance-value { color: #fff; }
.finance-card.wallet .finance-value { color: #b6a0ff; font-size: clamp(19px, 1.8vw, 27px); }
.finance-note { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #98adc9; }
.finance-note .ui-icon { width: 13px; height: 13px; color: #64dab4; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { display: grid; grid-template-columns: 1fr 38px; gap: 4px 10px; align-items: start; padding: 19px 20px; border-radius: 14px; background: #111a2b; }
.stat-card::after { display: none; }
.stat-card:hover { transform: none; }
.stat-card .stat-label { font-size: 10px; letter-spacing: .01em; text-transform: none; margin: 0; color: #a6b3c8; }
.stat-card .stat-value { grid-column: 1; font-size: 26px; margin: 5px 0 0; color: #eff4ff; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat-card .stat-symbol { grid-column: 2; grid-row: 1 / 3; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #629cff26; background: #629cff12; color: var(--primary); border-radius: 11px; }
.stat-card.green .stat-symbol { color: var(--success); background: #3bd4a210; border-color: #3bd4a220; }
.stat-card.orange .stat-symbol { color: var(--warning); background: #f9bd5910; border-color: #f9bd5920; }
.stat-card.purple .stat-symbol { color: var(--accent); background: #aa89ff10; border-color: #aa89ff20; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-middle { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(240px, 1fr); gap: 20px; margin-bottom: 24px; }
.chart-container { height: 250px; }
.chart-legend { display: flex; gap: 14px; font-size: 10px; color: #a5b2ca; }
.chart-legend span { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 7px; height: 7px; background: var(--primary); border-radius: 2px; }
.legend-dot.purple { background: var(--accent); border-radius: 50%; }
.quick-links { display: grid; padding: 8px 20px; }
.quick-link { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.quick-link:last-child { border: 0; }
.quick-link > .ui-icon { width: 18px; color: #97b8ed; }
.quick-link > span { flex: 1; }
.quick-link > [data-icon] { flex: 0 0 auto; color: #97b8ed; }
.quick-link > [data-icon] .ui-icon { width: 18px; }
.quick-link > .link-arrow .ui-icon { width: 15px; }
.quick-link strong { display: block; font-size: 12px; font-weight: 600; }
.quick-link small { display: block; color: var(--text-muted); font-size: 10px; margin-top: 2px; }
.quick-link:hover strong { color: var(--primary); }
.quick-link .link-arrow { color: var(--text-muted); width: 15px; }
.table-wrapper { max-width: 100%; overscroll-behavior-x: contain; scrollbar-width: thin; }
table { min-width: 660px; }
thead { background: #0c152480; }
thead th { color: #91a3bd; font-size: 9px; letter-spacing: .08em; padding: 14px 22px; }
tbody td { color: #abb8cc; font-size: 12px; padding: 18px 22px; line-height: 1.7; }
tbody td .td-main { font-weight: 600; font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
.mono { color: #97aac9; font-size: 11px; letter-spacing: -.025em; }
.badge { font-size: 10px; font-weight: 500; padding: 4px 9px; gap: 5px; }
.badge::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.btn { min-height: 42px; padding: 10px 16px; font-size: 12px; border-radius: 9px; gap: 8px; }
.btn .ui-icon { width: 16px; height: 16px; }
.btn-primary { background: #3d7eee; border: 1px solid #649bfa; box-shadow: 0 3px 10px #1c55aa20, inset 0 1px 0 #ffffff12; }
.btn-primary:hover:not(:disabled) { background: #4d8cf6; transform: none; box-shadow: 0 3px 12px #3877ec25; }
.btn-ghost, .btn-secondary { background: #19243a; border: 1px solid #2a3953; color: #bdcbe0; }
.btn-ghost:hover, .btn-secondary:hover { background: #21314d; border-color: #435778; }
.btn-sm { min-height: 34px; padding: 7px 11px; font-size: 10px; }
.icon-button { width: 40px; height: 40px; padding: 9px; flex-shrink: 0; display: inline-flex; justify-content: center; align-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); color: #bed0eb; }
.form-label { font-size: 11px; text-transform: none; letter-spacing: 0; color: #bac7db; }
.form-control, .product-price-input { min-width: 0; min-height: 44px; border-color: #2a3952; background: #0b1423; border-radius: 9px; font-size: 13px; padding: 11px 13px; }
.form-control::placeholder, .product-price-input::placeholder { color: #7f91ab; opacity: 1; }
textarea.form-control { line-height: 1.8; }
input[type='checkbox'] { accent-color: var(--primary-dark); }
.toggle { flex-shrink: 0; }
.toggle input:focus-visible + .toggle-slider { outline: 2px solid var(--primary); outline-offset: 4px; }
.toggle-slider { background: #3a4960; }
.filter-bar { padding: 18px 22px; gap: 14px; }
.filter-bar .filter-tabs { padding: 4px; background: #0a1322; border: 1px solid #1e2b40; border-radius: 10px; gap: 3px; max-width: 100%; overflow-x: auto; }
.filter-tab { min-height: 34px; border-color: transparent; color: #96a7c0; padding: 6px 12px; flex-shrink: 0; font-size: 11px; }
.filter-tab.active, .filter-tab:hover { background: #253b60; border-color: #345481; color: #c9ddff; }
.filter-search { margin-left: auto; max-width: 290px; }
.filter-search .form-control { padding: 9px 13px; min-height: 42px; }
.pagination { padding: 18px 22px; flex-wrap: wrap; }
.page-btn { width: 36px; height: 36px; }
.page-btn:disabled { opacity: .35; cursor: not-allowed; }
.products-grid { padding: 0; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.product-card { padding: 23px; border-radius: 16px; background: linear-gradient(140deg, #162238, #101928); }
.product-card:hover { transform: none; border-color: #405675; }
.product-card.inactive { opacity: .72; }
.product-name { font-size: 15px; letter-spacing: -.02em; line-height: 1.7; overflow-wrap: anywhere; }
.product-card > div:last-child { flex-wrap: wrap; gap: 12px; }
.product-card .form-label { flex-wrap: wrap; }
.catalog-tools { display: flex; gap: 14px; align-items: center; padding: 14px 17px; border: 1px solid var(--border); background: #101a2b; border-radius: 12px; margin-bottom: 22px; }
.catalog-tools input { max-width: 360px; }
.catalog-count { margin-left: auto; white-space: nowrap; font-size: 11px; color: var(--text-muted); }
.tab-bar { display: flex; gap: 5px; padding: 5px; background: #101a2b; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 27px; overflow-x: auto; }
.tab-btn { flex: 1; white-space: nowrap; min-height: 44px; font-size: 11px; }
.tab-btn.active { background: #253d65; color: #c7ddff; box-shadow: inset 0 0 0 1px #416399; }
.order-arrow { width: 34px; height: 34px; }
.order-list { padding: 18px; }
.broadcast-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 370px); gap: 24px; align-items: start; }
#bc-preview { overflow-wrap: anywhere; }
#bc-preview a { color: var(--primary); text-decoration: underline; }
#bc-users-list label, #bc-channels-list label, #bc-admin-list label { border: 1px solid transparent; border-radius: 8px; }
#bc-users-list label:hover, #bc-channels-list label:hover, #bc-admin-list label:hover { background: #203252 !important; border-color: #334b70; }
#bc-users-list label:has(input:checked), #bc-channels-list label:has(input:checked), #bc-admin-list label:has(input:checked) { background: #22416b80 !important; border-color: #3b608b; }
.settings-layout { display: grid; grid-template-columns: 190px minmax(0, 850px); gap: 30px; align-items: start; }
.settings-nav { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 106px; }
.settings-nav a { padding: 12px; font-size: 11px; color: var(--text-secondary); border-radius: 9px; display: flex; align-items: center; gap: 9px; }
.settings-nav a:hover, .settings-nav a.active { background: #1c2e4c; color: #a9caff; }
.settings-nav .ui-icon { width: 17px; height: 17px; }
#settings-form { max-width: none !important; min-width: 0; }
.settings-section { scroll-margin-top: 112px; margin-bottom: 28px; }
.settings-section-title { padding-bottom: 0; border: 0; font-size: 13px; display: flex; align-items: center; gap: 10px; }
.section-number { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #31496e; background: #1b2b47; color: #91b9ff; font-size: 10px; border-radius: 7px; }
.settings-save-bar { position: sticky; bottom: 12px; padding: 12px; border: 1px solid #35517a; border-radius: 12px; background: #101b2ced; backdrop-filter: blur(12px); z-index: 5; }
.settings-section .card-body > div { min-width: 0; }
.settings-section .card-body > div span { overflow-wrap: anywhere; }
.log-stats-bar { padding: 16px 22px; background: #0a142135; line-height: 2; font-size: 11px; }
.modal-overlay { position: fixed; inset: 0; z-index: 1000; background: #030814bf; backdrop-filter: blur(7px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { width: 100%; max-width: 600px; background: #131e31; border: 1px solid #3b4e6a; border-radius: 18px; box-shadow: 0 30px 100px #0008; max-height: calc(100dvh - 48px); overflow-y: auto; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-title { font-size: 15px; font-weight: 600; }
.modal-close { display: grid; place-items: center; width: 36px; height: 36px; background: #26344c; border: 1px solid #3a4b65; border-radius: 9px; color: #b6c6dd; }
.modal-body { padding: 24px; }
.log-detail-grid { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; }
.log-detail-grid > span { overflow-wrap: anywhere; }
.detail-pre { background: #091221; border: 1px solid var(--border); padding: 16px; margin-top: 8px; }
.text-center { text-align: center; }
.empty-state { padding: 55px 22px; grid-column: 1 / -1; }
.empty-state p { font-size: 12px; }
.toast-container { max-width: calc(100vw - 32px); }
.login-page { padding: 30px; min-height: 100dvh; background: transparent; }
.login-layout { width: 100%; max-width: 1030px; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 100px; }
.login-story .login-brand { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; margin-bottom: 55px; letter-spacing: .03em; }
.login-story h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 650; line-height: 1.2; letter-spacing: -.05em; margin: 15px 0 22px; }
.login-story h2 span { color: #89b2ff; }
.login-story > p { color: #91a3c0; font-size: 13px; line-height: 1.9; max-width: 380px; }
.login-features { display: flex; gap: 25px; margin-top: 35px; flex-wrap: wrap; color: #abbcd6; font-size: 11px; }
.login-features span { display: flex; align-items: center; gap: 8px; }
.login-features .ui-icon { color: #82aaf2; width: 17px; }
.login-card { max-width: none; padding: 35px; border-radius: 22px; background: linear-gradient(135deg, #17243a, #111a2c); box-shadow: 0 24px 80px #0003; }
.login-header { text-align: left; margin-bottom: 30px; }
.login-header .brand-mark { margin-bottom: 22px; }
.login-header h1 { font-size: 25px; letter-spacing: -.04em; font-weight: 700; }
.login-header p { margin-top: 8px; font-size: 12px; }
.password-field { position: relative; }
.password-field input { padding-right: 48px; }
.password-toggle { position: absolute; top: 2px; right: 2px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--text-muted); border-radius: 8px; }
.login-footer { font-size: 10px; color: var(--text-muted); text-align: center; margin-top: 24px; }
@media (min-width: 1600px) { .page-content { padding-top: 40px; } .finance-value { font-size: 34px; } }
@media (max-width: 1200px) {
  :root { --sidebar-width: 222px; }
  .page-content { padding: 28px 24px; }
  .topbar { padding: 18px 24px; }
  .finance-card { padding: 20px; }
  .finance-value { font-size: 25px; }
  .heading-actions .date-chip { display: none; }
  .settings-layout { grid-template-columns: 155px minmax(0, 1fr); gap: 22px; }
  .broadcast-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
  .login-layout { gap: 60px; }
}
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); width: 272px; visibility: hidden; }
  .sidebar.open { transform: translateX(0); visibility: visible; box-shadow: 20px 0 80px #0005; }
  .main-content { margin-left: 0; width: 100%; }
  .icon-button.menu-toggle, .icon-button.sidebar-close { display: inline-flex; }
  .sidebar-close { margin-left: auto; width: 30px; height: 30px; padding: 5px; }
  body.nav-open { overflow: hidden; }
  .sidebar-logo { gap: 8px; padding-left: 4px; padding-right: 0; }
  .sidebar-logo .logo-text { font-size: 12px; }
  .profile-avatar { margin-left: 0; }
}
@media (max-width: 760px) {
  :root { --topbar-height: 68px; }
  .topbar { padding: 12px 18px; flex-wrap: wrap; gap: 10px; }
  .topbar-title { font-size: 12px; }
  .topbar-title::before, .breadcrumb-divider { display: none; }
  .topbar-actions { gap: 7px; }
  .topbar-actions .btn { min-height: 38px; padding: 8px 10px; font-size: 10px; }
  .topbar-actions:has(#btn-clear-logs) { order: 5; width: 100%; padding-left: 49px; }
  .topbar-actions:has(#btn-tambah-produk) { order: 5; width: 100%; }
  #btn-tambah-produk { width: 100%; }
  .profile-avatar { width: 30px; height: 30px; font-size: 10px; }
  .refresh-status { font-size: 9px; max-width: 125px; }
  .page-content { padding: 25px 18px 32px; }
  .page-heading-row { align-items: flex-start; flex-wrap: wrap; gap: 15px; }
  .page-header h1 { font-size: 25px; }
  .page-header p { font-size: 12px; }
  .eyebrow { font-size: 9px; }
  .finance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .finance-card.featured { grid-column: 1 / -1; }
  .finance-card { padding: 18px; }
  .finance-value { font-size: 24px; margin: 14px 0 10px; }
  .finance-card.featured .finance-value { font-size: 34px; }
  .finance-card.wallet .finance-value { font-size: 21px; }
  .finance-card:not(.featured) .finance-value { font-size: clamp(15px, 4.2vw, 22px); }
  .finance-label { font-size: 10px; gap: 6px; }
  .finance-note { font-size: 9px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat-card { padding: 16px; grid-template-columns: minmax(0, 1fr) 30px; gap: 4px; }
  .stat-card .stat-symbol { width: 30px; height: 30px; border-radius: 9px; }
  .stat-symbol .ui-icon { width: 16px; }
  .stat-card .stat-value { font-size: 25px; }
  .stat-card .stat-label { font-size: 9px; }
  .dashboard-middle, .grid-2, .grid-3, .broadcast-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .card-header { padding: 17px 18px; min-height: 65px; }
  .card-body { padding: 18px; }
  .chart-container { height: 225px; }
  .chart-legend { font-size: 9px; gap: 10px; }
  .quick-links { grid-template-columns: 1fr 1fr; column-gap: 18px; padding: 4px 18px; }
  .quick-link { gap: 8px; }
  .quick-link strong { font-size: 10px; }
  .quick-link small { font-size: 9px; }
  .quick-link > .link-arrow { display: none; }
  .quick-link:nth-last-child(2) { border: 0; }
  .filter-bar { padding: 14px; gap: 12px; }
  .filter-tabs { width: 100%; margin-left: 0 !important; }
  .filter-search { min-width: 0; max-width: none; width: 100%; flex-basis: 100%; }
  .filter-tab { min-height: 38px; }
  .form-control, .product-price-input, .filter-search .form-control { font-size: 16px !important; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }
  .product-card { padding: 20px; }
  .product-card .btn-sm { min-height: 40px; }
  .catalog-tools { flex-wrap: wrap; }
  .catalog-tools input { max-width: none; }
  .catalog-count { margin-left: 0; }
  .settings-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
  .settings-nav a { white-space: nowrap; padding: 9px 10px; }
  .settings-section .card-body > div > div[style*='display:flex'] { flex-wrap: wrap; }
  .tab-btn { flex: 0 0 auto; padding: 10px 14px; }
  .order-arrow { width: 40px; height: 40px; }
  .modal-overlay { padding: 12px; }
  .modal { max-height: calc(100dvh - 24px); border-radius: 15px; }
  .modal-header, .modal-body { padding: 18px; }
  .modal-close { width: 40px; height: 40px; }
  .login-page { padding: 24px 18px; }
  .login-layout { grid-template-columns: minmax(0, 1fr); max-width: 430px; gap: 27px; }
  .login-story .login-brand { margin-bottom: 0; justify-content: center; }
  .login-story h2, .login-story > p, .login-story > .eyebrow, .login-features { display: none; }
  .login-card { padding: 28px; }
  .login-header > .brand-mark { display: none; }
  /* Transaction rows become labeled cards; logs retain a scrollable table. */
  .mobile-cards table, .mobile-cards tbody { display: block; width: 100%; min-width: 0; }
  .mobile-cards thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .mobile-cards tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px; border-bottom: 1px solid var(--border); }
  .mobile-cards tbody tr:last-child { border: 0; }
  .mobile-cards tbody td { display: block; border: 0; padding: 0; font-size: 12px; overflow-wrap: anywhere; min-width: 0; }
  .mobile-cards tbody td::before { content: attr(data-label); display: block; font-size: 9px; color: var(--text-muted); margin-bottom: 4px; }
  .mobile-cards tbody td:first-child { grid-column: 1 / -1; }
  .mobile-cards tbody td[colspan] { grid-column: 1 / -1; }
  .mobile-cards tbody td[colspan]::before { display: none; }
}
@media (max-width: 380px) {
  .page-content { padding-left: 12px; padding-right: 12px; }
  .topbar { padding-left: 12px; padding-right: 12px; }
  .finance-card { padding: 15px; }
  .finance-grid { grid-template-columns: minmax(0, 1fr); }
  .finance-card:not(.featured) .finance-value { font-size: 24px; }
  .finance-value { font-size: 21px; }
  .finance-card.wallet .finance-value { font-size: 18px; }
  .finance-label .ui-icon { display: none; }
  .profile-avatar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Shared Paidi Projects website identity. */
img.brand-mark.paidi-brand-mark { width: 40px; height: 40px; object-fit: contain; background: none; box-shadow: none; border-radius: 0; }
