@charset "UTF-8";
:root {
    color-scheme: light;
    --ink: #10141c;
    --navy: #111927;
    --navy-2: #192435;
    --gold: #c8a45b;
    --gold-bright: #e1c47e;
    --paper: #f3f4f6;
    --white: #fff;
    --line: #e5e7eb;
    --muted: #737b88;
    --green: #24734f;
    --red: #a83b45;
    --amber: #a56a17;
    --radius: 10px;
    --shadow: 0 12px 34px rgba(17, 25, 39, .055);
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Aptos", "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid rgba(200, 164, 91, .48); outline-offset: 2px; }




/* UTR search layout */
.utr-filter {
    display: flex;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
    margin: 0 18px 18px;
}

.utr-filter label {
    flex: 1;
    min-width: 220px;
}

.utr-search-summary {
    margin: 0 18px 14px;
}

/* Highlight the row matching the searched UTR */
.utr-match {
    background: rgba(34, 197, 94, 0.14);
    outline: 1px solid #22c55e;
    outline-offset: -1px;
}

.utr-match td {
    background: transparent;
}


.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; width: 258px; padding: 25px 16px 17px; color: #f3f5f8; background: var(--navy); border-right: 1px solid rgba(255,255,255,.08); }
.brand, .login-brand { display: flex; align-items: center; gap: 12px; min-height: 48px; color: white; font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.brand small, .login-brand small { display: block; margin-top: 2px; color: #aeb5c1; font-size: 9px; font-weight: 600; letter-spacing: .22em; }
.brand-mark { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; color: #111927; background: linear-gradient(145deg, var(--gold-bright), var(--gold)); border-radius: 10px 3px 10px 3px; font-family: Georgia, serif; font-size: 14px; font-weight: 700; letter-spacing: 0; }
.side-nav { display: grid; gap: 5px; margin-top: 40px; }
.nav-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 13px; color: #b8bfca; background: transparent; border: 0; border-radius: 7px; text-align: left; font-size: 13px; transition: background .16s ease, color .16s ease; }
.nav-link:hover { color: white; background: rgba(255,255,255,.07); }
.nav-link.is-active { color: white; background: #202d3f; box-shadow: inset 3px 0 var(--gold); }
.nav-dot { flex: 0 0 7px; width: 7px; height: 7px; background: #727d8d; border-radius: 2px; transform: rotate(45deg); }
.is-active .nav-dot { background: var(--gold-bright); box-shadow: 0 0 10px rgba(225,196,126,.55); }
.sidebar-bottom { margin-top: auto; }
.admin-chip { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 5px 13px; border-top: 1px solid rgba(255,255,255,.12); color: #f4f5f7; font-size: 12px; font-weight: 650; }
.admin-chip small { display: block; margin-top: 2px; color: #aab2bf; font-size: 10px; font-weight: 500; text-transform: capitalize; }
.avatar-small { display: inline-grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; color: #443619; background: #e9d5a3; border-radius: 50%; font-size: 12px; font-weight: 750; }
.logout-form { margin: 0; }
.logout-link { color: #d2a6a8; }
.logout-link:hover { color: #fff; background: rgba(168,59,69,.2); }
.main-area { min-height: 100vh; margin-left: 258px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; min-height: 75px; padding: 11px 34px; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.topbar-title { display: grid; gap: 0; margin-right: auto; }
.topbar-title strong { font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 600; line-height: 1.25; }
.eyebrow { display: block; color: #9a7a39; font-size: 9px; font-weight: 750; letter-spacing: .17em; line-height: 1.6; text-transform: uppercase; }
.topbar-meta { display: flex; align-items: center; gap: 8px; color: #65707e; font-size: 11px; }
.secure-indicator { display: inline-block; width: 7px; height: 7px; background: #48a477; border-radius: 50%; box-shadow: 0 0 0 3px rgba(72,164,119,.12); }
.menu-toggle { display: none !important; }
.content { width: min(100%, 1600px); margin: 0 auto; padding: 31px 34px 48px; }
.footer { display: flex; justify-content: space-between; gap: 12px; padding: 17px 34px 23px; color: #939aa5; border-top: 1px solid var(--line); font-size: 10px; letter-spacing: .04em; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin: 2px 0 24px; }
.page-heading h1 { margin: 5px 0 4px; color: #171d27; font-family: Georgia, "Times New Roman", serif; font-size: 31px; font-weight: 500; line-height: 1.14; }
.page-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.back-link { display: inline-block; margin: 0 0 9px; color: #8c713a; font-size: 12px; }
.back-link:hover, .text-link:hover { color: #6c4e14; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 18px; }
.stat-card { position: relative; min-height: 135px; overflow: hidden; padding: 19px 20px; background: var(--white); border: 1px solid #e9eaed; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-card::after { position: absolute; right: -22px; bottom: -44px; width: 112px; height: 112px; border: 1px solid rgba(200,164,91,.18); border-radius: 50%; content: ""; }
.stat-accent { color: white; background: var(--navy-2); border-color: var(--navy-2); }
.stat-accent .stat-label, .stat-accent small { color: #c0c7d0; }
.stat-label { display: block; color: #707986; font-size: 11px; font-weight: 650; }
.stat-card strong { display: block; margin: 10px 0 2px; color: #131924; font-family: Georgia, serif; font-size: 28px; font-weight: 500; line-height: 1.1; }
.stat-accent strong { color: var(--gold-bright); }
.stat-card small { color: #8a919c; font-size: 10px; }
.overview-grid, .detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; margin-bottom: 18px; }
.inner-grid { margin: 0; }
.panel { min-width: 0; margin-bottom: 18px; padding: 20px; background: var(--white); border: 1px solid #e8eaed; border-radius: var(--radius); box-shadow: var(--shadow); }
.overview-grid .panel, .detail-grid .panel { margin: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.panel-heading h2, .login-panel h1, .confirm-dialog h2 { margin: 2px 0 0; color: #18202b; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; line-height: 1.25; }
.panel-heading > small, .muted { color: var(--muted); font-size: 11px; }
.panel-mark { padding: 5px 8px; color: #8e7139; background: #f7f2e8; border-radius: 4px; font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.text-link { color: #8e7139; font-size: 11px; font-weight: 650; white-space: nowrap; }
.metric-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eff0f2; color: #68717e; font-size: 12px; }
.metric-row:last-child { border-bottom: 0; }
.metric-row strong { color: #1a222e; font-size: 12px; font-weight: 650; text-align: right; }
.activity-list { display: grid; }
.activity-item { display: grid; grid-template-columns: 12px minmax(0,1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid #eff0f2; }
.activity-item:last-child { border-bottom: 0; }
.activity-pin { width: 7px; height: 7px; margin-top: 6px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 3px #f7f2e8; }
.activity-item strong { display: block; color: #262e39; font-size: 12px; text-transform: capitalize; }
.activity-item p { margin: 2px 0 3px; color: #707986; font-size: 11px; }
.activity-item small { color: #a0a6af; font-size: 10px; }
.table-panel { padding-bottom: 0; }
.filter-bar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin: 0 0 17px; }
.filter-bar label { min-width: 165px; }
.filter-bar .search-field { flex: 1 1 280px; }
.filter-bar label > span { display: block; }
.table-scroll { width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
th { padding: 11px 13px; color: #838b97; background: #f8f9fa; border-bottom: 1px solid #e8eaed; font-size: 9px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
td { padding: 12px 13px; color: #343c47; border-bottom: 1px solid #eff0f2; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfbf8; }
td > strong { color: #202833; }
.table-subline { display: block; margin-top: 3px; color: #89919d; font-size: 10px; }
.user-cell { display: flex; align-items: center; gap: 9px; min-width: 165px; }
.user-cell strong { display: block; color: #242c37; font-size: 11px; }
.user-cell small { display: block; margin-top: 2px; color: #89919d; font-size: 10px; }
.mono { color: #5c6571; font-family: Consolas, "Courier New", monospace; font-size: 11px; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-height: 22px; padding: 3px 8px; color: #697381; background: #eff1f3; border-radius: 20px; font-size: 9px; font-weight: 750; line-height: 1.2; text-transform: capitalize; white-space: nowrap; }
.badge-active, .badge-completed, .badge-approved, .badge-verified { color: #246b49; background: #e8f4ed; }
.badge-pending, .badge-processing, .badge-started { color: #926114; background: #faf1de; }
.badge-inactive, .badge-expired, .badge-used { color: #66717d; background: #edf0f2; }
.badge-blocked, .badge-suspended, .badge-rejected, .badge-failed, .badge-locked { color: #a34249; background: #f9e9ea; }
.badge-large { min-height: 29px; padding: 5px 12px; font-size: 11px; }
.empty-cell { padding: 28px 12px; color: #8b929d; text-align: center; }
.empty-state { padding: 25px 15px; color: #838b97; background: #fafbfc; border: 1px dashed #dfe2e6; border-radius: 7px; font-size: 12px; text-align: center; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 55px; color: #858d98; border-top: 1px solid #eff0f2; font-size: 10px; }
.pagination { display: flex; align-items: center; gap: 13px; }
.pagination a { color: #8b6d31; font-weight: 650; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 38px; padding: 0 14px; color: #242c37; background: #fff; border: 1px solid #dfe2e6; border-radius: 6px; font-size: 11px; font-weight: 700; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.button:hover { border-color: #c3a35f; transform: translateY(-1px); }
.button-primary { color: #141a24; background: var(--gold-bright); border-color: var(--gold-bright); }
.button-primary:hover { background: #e9cf91; border-color: #e9cf91; }
.button-outline { color: #63502a; background: transparent; border-color: #d8c79d; }
.button-quiet { color: #68717e; background: #f8f9fa; }
.button-danger { color: #fff; background: #a94249; border-color: #a94249; }
.button-danger:hover { background: #8e3139; border-color: #8e3139; }
.button-small { min-height: 30px; padding: 0 9px; font-size: 10px; }
.button-wide { width: 100%; min-height: 45px; }
.button:disabled { cursor: not-allowed; opacity: .55; }
label { display: grid; gap: 6px; color: #58616e; font-size: 10px; font-weight: 650; }
input, select, textarea { width: 100%; min-width: 0; min-height: 38px; padding: 8px 10px; color: #202833; background: white; border: 1px solid #dfe2e6; border-radius: 5px; font-size: 12px; font-weight: 450; }
textarea { min-height: 84px; resize: vertical; }
input::placeholder { color: #a2a8b0; }
input[type="checkbox"] { width: 15px; min-height: 15px; height: 15px; accent-color: #ae8a45; }
input[type="file"] { min-height: 38px; padding: 5px; font-size: 10px; }
input[type="file"]::file-selector-button { min-height: 26px; margin-right: 8px; padding: 0 8px; color: #4d5663; background: #f2f3f5; border: 1px solid #e1e3e6; border-radius: 4px; font: inherit; }
label small { color: #9299a3; font-size: 9px; font-weight: 450; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-grid.two-col { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.span-two { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 5px; }
.form-actions small { color: #9299a3; font-size: 10px; }
.check-label { display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 32px; color: #606a76; }
.check-label input { flex: 0 0 auto; }
.input-prefix { position: relative; display: block; }
.input-prefix b { position: absolute; top: 9px; left: 10px; z-index: 1; color: #858d98; font-size: 12px; font-weight: 500; }
.input-prefix input { padding-left: 26px; }
.inline-actions, .decision-form { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-width: 150px; }
.decision-form input:not([type="hidden"]) { min-width: 130px; min-height: 30px; margin-bottom: 3px; }
.decision-form .button { flex: 0 0 auto; }
.short-input { max-width: 100px; min-height: 31px; }
.payout-detail { display: grid; min-width: 170px; gap: 2px; font-size: 10px; }
.payout-detail strong { color: #2b333e; font-size: 11px; }
.payout-detail span, .payout-detail small { color: #737c88; }
.payout-detail details { margin-top: 5px; }
.payout-detail summary { color: #8b6d31; cursor: pointer; }
.payout-detail pre { max-width: 300px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.break-word { overflow-wrap: anywhere; }
.notice-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 18px; padding: 13px 15px; color: #606a76; background: #f9f5ea; border: 1px solid #ece1c6; border-left: 3px solid var(--gold); border-radius: 6px; font-size: 11px; }
.notice-strip strong { color: #51421f; }
.notice-strip a { color: #806322; font-weight: 700; white-space: nowrap; }
.detail-pairs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 18px; margin: 17px 0; }
.detail-pairs > div { display: grid; gap: 3px; min-width: 0; }
.detail-pairs small { color: #9198a2; font-size: 9px; }
.detail-pairs strong { color: #2b333e; font-size: 11px; font-weight: 650; overflow-wrap: anywhere; }
.detail-pairs.compact { grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 0; }
.profile-main { display: flex; align-items: center; gap: 14px; }
.avatar-large { display: grid; flex: 0 0 56px; width: 56px; height: 56px; place-items: center; color: #4b3a17; background: #ead9ad; border-radius: 50%; font-family: Georgia, serif; font-size: 22px; }
.profile-main h2 { margin: 2px 0; font-size: 18px; font-weight: 650; }
.profile-main p { margin: 0; color: #737c88; font-size: 11px; }
.inline-actions { margin-top: 12px; }
.wallet-balance { margin: 0 0 10px; color: #192333; font-family: Georgia, serif; font-size: 32px; }
.wallet-balance small { display: block; margin-top: 3px; color: #8c939d; font-family: "Aptos", "Segoe UI", sans-serif; font-size: 10px; }
.condition-list { display: grid; gap: 8px; }
.condition-item { padding: 0 13px; background: #fafbfc; border: 1px solid #eceef0; border-radius: 7px; }
.condition-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; cursor: pointer; list-style: none; }
.condition-item summary::-webkit-details-marker { display: none; }
.condition-item summary strong, .condition-item summary small { display: block; }
.condition-item summary strong { color: #28313c; font-size: 12px; }
.condition-item summary small { margin-top: 2px; color: #8b939e; font-family: Consolas, monospace; font-size: 9px; }
.condition-form { padding: 7px 0 15px; }
.settings-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.settings-card { display: grid; align-content: start; gap: 11px; min-width: 0; padding: 15px; background: #fafbfc; border: 1px solid #eceef0; border-radius: 7px; }
.settings-card .panel-heading { margin: 0; }
.settings-card .panel-heading strong { font-size: 11px; }
.package-list, .compact-list { display: grid; gap: 8px; }
.package-row { display: grid; grid-template-columns: 1.3fr 1fr .65fr .65fr auto auto; align-items: end; gap: 10px; padding: 12px; background: #fafbfc; border: 1px solid #eceef0; border-radius: 7px; }
.new-package { margin-top: 11px; border-style: dashed; }
.compact-row { display: grid; gap: 3px; padding: 9px 0; border-bottom: 1px solid #eff0f2; }
.compact-row:last-child { border-bottom: 0; }
.compact-row strong { color: #303844; font-size: 11px; }
.compact-row span, .compact-row small { color: #7b8490; font-size: 10px; }
.compact-edit, .menu-edit { display: grid; grid-template-columns: minmax(85px,.8fr) repeat(2,minmax(100px,1fr)) minmax(90px,.6fr) auto auto; align-items: end; gap: 8px; padding: 11px 0; border-bottom: 1px solid #eff0f2; }
.menu-edit { grid-template-columns: minmax(85px,.8fr) minmax(110px,1fr) minmax(65px,.5fr) auto auto; }
.compact-edit > div { align-self: center; }
.compact-edit > div strong, .compact-edit > div small { display: block; }
.compact-edit > div small { color: #89919d; font-size: 9px; }
.payment-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.payment-card { display: grid; grid-template-columns: minmax(120px,.7fr) minmax(200px,1.3fr); gap: 17px; margin: 0; }
.payment-card .stack-form { min-width: 0; }
.payment-qr { display: grid; align-self: start; min-height: 170px; place-items: center; overflow: hidden; color: #939aa4; background: repeating-linear-gradient(135deg,#f5f6f7 0 8px,#eef0f2 8px 16px); border-radius: 7px; font-size: 10px; text-align: center; }
.payment-qr img { display: block; width: 100%; max-height: 220px; object-fit: contain; }
.qr-placeholder { color: #8d713b; background: #f8f4e9; font-family: Georgia, serif; font-size: 23px; font-weight: 700; }
.stack-form { display: grid; gap: 12px; }
.stack-form p { margin: 0; color: var(--muted); }
.product-list { display: grid; gap: 14px; }
.product-row { display: grid; grid-template-columns: 170px minmax(0,1fr); gap: 18px; margin: 0; }
.product-preview { display: grid; min-height: 160px; place-items: center; overflow: hidden; color: #939aa4; background: #f2f3f5; border-radius: 7px; font-size: 10px; text-align: center; }
.product-preview img { display: block; width: 100%; height: 180px; object-fit: cover; }
.product-form { min-width: 0; }
.product-title { display: flex; justify-content: flex-end; margin-bottom: 9px; }
.product-title > div { display: flex; align-items: center; gap: 9px; }
.product-form .form-actions { margin-top: 11px; }
.flash { margin: 0 0 17px; padding: 11px 14px; border: 1px solid; border-radius: 6px; font-size: 12px; }
.flash-success { color: #246b49; background: #e8f4ed; border-color: #d0e9da; }
.flash-error { color: #973e45; background: #faebec; border-color: #efd2d4; }
.flash-warning { color: #8c641d; background: #fbf3e1; border-color: #efe1be; }
.confirm-dialog { width: min(440px,calc(100% - 28px)); padding: 0; color: var(--ink); background: white; border: 1px solid #dedfe2; border-radius: 10px; box-shadow: 0 24px 80px rgba(7,12,20,.25); }
.confirm-dialog::backdrop { background: rgba(9,14,22,.58); backdrop-filter: blur(3px); }
.confirm-dialog form { padding: 23px; }
.confirm-dialog h2 { margin-top: 7px; }
.confirm-dialog p { margin: 9px 0 20px; color: #717987; font-size: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.two-col { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.login-page { min-height: 100vh; background: radial-gradient(ellipse at 78% 18%, rgba(200,164,91,.16), transparent 32%), linear-gradient(135deg,#111927 0%,#151f2d 52%,#0d131d 100%); }
.login-page::before { position: fixed; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(90deg,transparent,#000 75%); content: ""; }
.login-wrap { position: relative; display: grid; align-content: center; width: min(100% - 28px, 430px); min-height: 100vh; margin: auto; padding: 40px 0; }
.login-brand { margin: 0 auto 25px; }
.login-panel { padding: 31px; background: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; box-shadow: 0 26px 75px rgba(0,0,0,.26); }
.login-panel h1 { margin-top: 8px; font-size: 29px; }
.login-panel > p { margin: 7px 0 22px; color: #7d8590; font-size: 12px; }
.login-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; color: #9198a2; font-size: 10px; }
.login-copyright { margin: 20px 0 0; color: #8b96a5; font-size: 9px; letter-spacing: .17em; text-align: center; }
.sidebar-scrim { display: none; }
@media (max-width: 1200px) {
    .content { padding-right: 24px; padding-left: 24px; }
    .topbar { padding-right: 24px; padding-left: 24px; }
    .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .settings-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .compact-edit { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 850px) {
    .sidebar { transform: translateX(-102%); transition: transform .22s ease; box-shadow: 20px 0 50px rgba(0,0,0,.18); }
    body.nav-open .sidebar { transform: translateX(0); }
    body.nav-open .sidebar-scrim { position: fixed; inset: 0; z-index: 25; display: block; background: rgba(9,14,22,.48); }
    .main-area { margin-left: 0; }
    .menu-toggle { display: inline-grid !important; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; margin-right: 12px; color: #253041; background: white; border: 1px solid var(--line); border-radius: 6px; }
    .topbar { justify-content: flex-start; }
    .topbar-meta { margin-left: auto; }
    .overview-grid, .detail-grid { grid-template-columns: 1fr; }
    .payment-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .content { padding: 23px 14px 35px; }
    .topbar { min-height: 65px; padding: 8px 14px; }
    .topbar-title strong { font-size: 17px; }
    .topbar-meta { width: 32px; overflow: hidden; font-size: 0; white-space: nowrap; }
    .topbar-meta .secure-indicator { flex: 0 0 7px; }
    .footer { padding: 14px; font-size: 9px; }
    .page-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 18px; }
    .page-heading h1 { font-size: 27px; }
    .stats-grid { gap: 9px; }
    .stat-card { min-height: 114px; padding: 14px; }
    .stat-card strong { font-size: 22px; }
    .panel { padding: 15px; }
    .panel-heading { align-items: flex-start; }
    .form-grid { grid-template-columns: 1fr; gap: 12px; }
    .form-grid .span-two { grid-column: auto; }
    .form-actions { align-items: flex-start; flex-direction: column; }
    .settings-card-grid { grid-template-columns: 1fr; }
    .package-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .compact-edit, .menu-edit { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .payment-card { grid-template-columns: 1fr; }
    .payment-qr { min-height: 150px; }
    .product-row { grid-template-columns: 1fr; }
    .product-preview { min-height: 150px; }
    .product-preview img { height: 210px; }
    .table-footer { align-items: flex-start; flex-direction: column; padding: 12px 0; }
    .filter-bar { align-items: stretch; }
    .filter-bar label, .filter-bar .search-field { min-width: 100%; }
    .table-scroll table { min-width: 720px; }
    .profile-main { align-items: flex-start; }
    .detail-pairs.compact { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .login-panel { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}