:root {
    --ink: #07111f;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-strong: rgba(15, 27, 46, 0.72);
    --line: rgba(255, 255, 255, 0.14);
    --text: #eef3f8;
    --muted: #9aa8ba;
    --gold: #e4c48a;
    --good: #5eead4;
    --bad: #fb7185;
    --info: #7dd3fc;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
@font-face {
    font-family: "Noto Sans Myanmar";
    src: url("../fonts/NotoSansMyanmar-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Noto Sans Myanmar";
    src: url("../fonts/NotoSansMyanmar-Medium.woff2") format("woff2");
    font-weight: 500 700;
    font-style: normal;
    font-display: swap;
}
body {
    margin: 0;
    color: var(--text);
    font-family: "Noto Sans Myanmar", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
    background:
        radial-gradient(1200px 600px at -10% -10%, rgba(228, 196, 138, 0.18), transparent 50%),
        radial-gradient(900px 500px at 110% 0%, rgba(56, 189, 248, 0.16), transparent 45%),
        radial-gradient(800px 500px at 50% 120%, rgba(16, 185, 129, 0.12), transparent 40%),
        var(--ink);
}
a { color: inherit; }
.glass {
    background: var(--glass);
    border: 1px solid var(--line);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
}
.shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 248px;
    flex: none;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
    padding: 16px 12px;
    background: rgba(7, 17, 31, 0.55);
    border-right: 1px solid var(--line);
    backdrop-filter: blur(18px);
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
}
.nav-link svg { width: 18px; height: 18px; }
.nav-link.active, .nav-link:hover { background: rgba(255,255,255,0.08); color: white; }
.main { flex: 1; min-width: 0; }
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(7, 17, 31, 0.6);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}
.content { padding: 16px; }
.field, .btn, select.field {
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.06);
    color: white;
    padding: 9px 12px;
    font-size: 14px;
    width: 100%;
}
.field:focus { outline: 2px solid rgba(228, 196, 138, 0.45); }
.btn {
    width: auto;
    cursor: pointer;
    font-weight: 650;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}
.btn-gold { background: linear-gradient(180deg, #f0d7a8, #d4b483); color: #1c1408; border-color: transparent; }
.btn-ghost { background: transparent; }
.btn-bad { background: rgba(251, 113, 133, 0.16); color: #fecdd3; }
.btn-good { background: rgba(94, 234, 212, 0.16); color: #ccfbf1; }
.table-wrap { overflow: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td { padding: 8px 10px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.08); white-space: nowrap; }
table.data th { color: var(--muted); font-weight: 650; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.pill { border-radius: 999px; padding: 2px 8px; font-size: 11px; border: 1px solid var(--line); }
.pill-paid { color: #99f6e4; background: rgba(45, 212, 191, 0.12); }
.pill-partial { color: #fde68a; background: rgba(250, 204, 21, 0.12); }
.pill-unpaid, .pill-cancelled { color: #fecdd3; background: rgba(251, 113, 133, 0.12); }
.stat-value { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.muted { color: var(--muted); }
label.lbl { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.grid-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.card { border-radius: 18px; padding: 14px; }
.flash { border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; }
.flash-ok { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); }
.flash-bad { background: rgba(244, 63, 94, 0.14); border: 1px solid rgba(244, 63, 94, 0.3); }
nav[role="navigation"] svg { width: 16px; }
nav[role="navigation"] a, nav[role="navigation"] span { color: #e2e8f0 !important; }
@media (max-width: 1024px) {
    .grid-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sidebar { position: fixed; z-index: 40; transform: translateX(-105%); transition: transform .2s ease; }
    .sidebar.open { transform: none; }
    .backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 30; }
}
@media (max-width: 640px) {
    .grid-stats { grid-template-columns: 1fr; }
    .content { padding: 12px; }
    .hide-sm { display: none; }
}
html[lang="my"] body { line-height: 1.65; }
html[lang="my"] .sidebar { width: 272px; }
html[lang="my"] .nav-link { min-height: 40px; line-height: 1.45; }
html[lang="my"] .btn, html[lang="my"] .field, html[lang="my"] select.field { min-height: 42px; line-height: 1.45; }
html[lang="my"] table.data th, html[lang="my"] table.data td { white-space: normal; line-height: 1.5; vertical-align: top; }
html[lang="my"] .pill { line-height: 1.5; padding: 3px 8px; }
.locale-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.locale-switch form { margin: 0; }
.locale-switch button { width: auto; border: 0; border-radius: 0; background: transparent; color: var(--muted); padding: 6px 10px; font-size: 13px; cursor: pointer; }
.locale-switch button.on { background: rgba(228, 196, 138, 0.2); color: white; }
@media print {
    .sidebar, .topbar, .no-print { display: none !important; }
    body { background: white; color: black; }
    .glass { box-shadow: none; background: white; }
}
