/*
 * Mangal Cement customer app: "Midnight & Teal" design system.
 * Deep midnight navy, teal for actions, coral for things that need attention.
 * Space Grotesk for figures and titles, Inter for text. Loaded after the template stylesheet.
 */
:root {
  --mx-night: #071A33;
  --mx-ink: #0B1F3A;
  --mx-ink-2: #3D4F66;
  --mx-muted: #7A8BA0;
  --mx-line: #E3E9F1;
  --mx-bg: #F2F5F9;
  --mx-card: #FFFFFF;
  --mx-teal: #00A99D;
  --mx-teal-2: #12C4B4;
  --mx-teal-soft: #E3F7F5;
  --mx-coral: #FF6B4A;
  --mx-coral-soft: #FFEDE8;
  --mx-amber: #F2A93B;
  --mx-ok: #15A06B;
  --mx-err: #D93B3B;
  --mx-r: 22px;
  --mx-r-sm: 14px;
  --mx-shadow: 0 1px 2px rgba(7, 26, 51, .04), 0 10px 30px rgba(7, 26, 51, .07);
  --mx-shadow-lg: 0 24px 50px rgba(7, 26, 51, .22);
  --mx-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --mx-text: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mx-safe-b: env(safe-area-inset-bottom, 0px);
}

/* ================================================================== sign-in */
body.mx-auth { margin: 0; min-height: 100vh; font-family: var(--mx-text); color: var(--mx-ink); -webkit-font-smoothing: antialiased;
  background: radial-gradient(900px 500px at 10% -10%, #0F3A5F 0%, transparent 60%), radial-gradient(700px 500px at 110% 20%, rgba(0, 169, 157, .35) 0%, transparent 60%), var(--mx-night); }
.mx-auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.mx-auth-hero { color: #fff; padding: 56px 56px; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.mx-auth-logo { height: 54px; width: auto; align-self: flex-start; }
.mx-auth-hero h1 { font-family: var(--mx-display); font-size: 2.7rem; line-height: 1.08; letter-spacing: -.02em; margin: 0; }
.mx-auth-hero ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; color: rgba(255, 255, 255, .82); }
.mx-auth-hero li { display: flex; gap: 12px; align-items: center; }
.mx-auth-hero li i { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(18, 196, 180, .16); color: var(--mx-teal-2); }
.mx-auth-card { background: var(--mx-card); margin: 24px; border-radius: 28px; padding: 40px 34px; align-self: center; max-width: 440px; width: calc(100% - 48px); justify-self: center; box-shadow: var(--mx-shadow-lg); }
.mx-auth-mark { height: 46px; display: none; margin-bottom: 18px; }
.mx-auth-card h2 { font-family: var(--mx-display); font-size: 1.8rem; letter-spacing: -.01em; margin: 0 0 4px; }
.mx-sub { color: var(--mx-muted); margin: 0 0 22px; }
.mx-label { display: block; font-size: .8rem; font-weight: 700; color: var(--mx-ink-2); margin: 0 0 6px; }
.mx-input { position: relative; margin-bottom: 14px; }
.mx-input > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--mx-muted); }
.mx-input input { width: 100%; box-sizing: border-box; height: 52px; border: 1.5px solid var(--mx-line); border-radius: var(--mx-r-sm); padding: 0 48px 0 44px; font-size: 1rem; font-family: inherit; color: var(--mx-ink); background: #F8FAFC; transition: border-color .15s, box-shadow .15s, background .15s; }
.mx-input input:focus { outline: none; border-color: var(--mx-teal); background: #fff; box-shadow: 0 0 0 4px rgba(0, 169, 157, .14); }
.mx-input.shake { animation: mxShake .35s; }
@keyframes mxShake { 25% { transform: translateX(-5px) } 75% { transform: translateX(5px) } }
.mx-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--mx-muted); width: 40px; height: 40px; border-radius: 10px; cursor: pointer; }
.mx-eye:hover { background: var(--mx-teal-soft); color: var(--mx-teal); }
.mx-caps { color: #B76E00; font-size: .8rem; font-weight: 600; margin: -6px 0 10px; }
.mx-row { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 20px; font-size: .9rem; }
.mx-row a, .mx-link { color: var(--mx-teal); font-weight: 700; text-decoration: none; }
.mx-btn { display: inline-flex; width: 100%; align-items: center; justify-content: center; gap: 10px; height: 54px; border: 0; border-radius: var(--mx-r-sm); font-family: var(--mx-display); font-size: 1.05rem; font-weight: 700; color: #fff; text-decoration: none; cursor: pointer;
  background: linear-gradient(135deg, var(--mx-teal-2), var(--mx-teal) 55%, #00857C); box-shadow: 0 12px 26px rgba(0, 169, 157, .32); transition: transform .12s, box-shadow .15s, filter .15s; }
.mx-btn:hover { color: #fff; filter: brightness(1.04); box-shadow: 0 16px 30px rgba(0, 169, 157, .38); }
.mx-btn:active { transform: translateY(1px); }
.mx-btn:disabled { opacity: .6; box-shadow: none; cursor: default; }
.mx-btn.ghost { background: #fff; color: var(--mx-ink); border: 1.5px solid var(--mx-line); box-shadow: none; }
.mx-btn.danger { background: #fff; color: var(--mx-err); border: 1.5px solid #F4CACA; box-shadow: none; }
.mx-btn.sm { height: 40px; width: auto; padding: 0 14px; font-size: .9rem; }
.mx-btn.disabled { opacity: .4; pointer-events: none; }
.mx-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: mxSpin .7s linear infinite; }
@keyframes mxSpin { to { transform: rotate(360deg) } }
.mx-alert { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--mx-r-sm); padding: 12px 14px; margin-bottom: 16px; font-size: .9rem; line-height: 1.45; }
.mx-alert.info { background: var(--mx-teal-soft); color: #0B5F58; }
.mx-alert.ok { background: #E6F6EE; color: #0F6B47; }
.mx-alert.warn { background: #FFF4E2; color: #8A5A0B; }
.mx-alert.err { background: #FDEBEB; color: #A12828; }
.mx-trust { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin-top: 22px; color: var(--mx-ink-2); font-size: .8rem; font-weight: 600; }
.mx-trust i { color: var(--mx-teal); }
.mx-fine { text-align: center; color: var(--mx-muted); font-size: .75rem; line-height: 1.6; margin: 14px 0 0; }
@media (max-width: 860px) {
  .mx-auth-wrap { grid-template-columns: 1fr; }
  .mx-auth-hero { padding: 40px 24px 0; gap: 14px; }
  .mx-auth-hero h1 { font-size: 2rem; }
  .mx-auth-hero ul { display: none; }
  .mx-auth-card { margin: 22px 16px 32px; width: auto; padding: 30px 22px; justify-self: stretch; max-width: none; }
}

/* ================================================================== app shell */
body.mx-app { margin: 0; background: var(--mx-bg); color: var(--mx-ink); font-family: var(--mx-text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.mx-top { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 12px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(242, 245, 249, .82); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid rgba(7, 26, 51, .05); }
.mx-icon-btn { width: 42px; height: 42px; flex: none; border-radius: 14px; border: 1px solid var(--mx-line); background: #fff; color: var(--mx-ink); display: grid; place-items: center; font-size: 20px; text-decoration: none; position: relative; cursor: pointer; }
.mx-icon-btn:hover { color: var(--mx-teal); }
.mx-icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--mx-coral); box-shadow: 0 0 0 2px #fff; }
.mx-top-title { flex: 1; min-width: 0; }
.mx-top-title small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mx-muted); }
.mx-top-title h1 { font-family: var(--mx-display); font-size: 1.25rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-top-title .count { font-family: var(--mx-text); font-size: 12px; font-weight: 700; color: var(--mx-teal); background: var(--mx-teal-soft); border-radius: 99px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
.mx-avatar { width: 42px; height: 42px; flex: none; border-radius: 14px; border: 0; background: linear-gradient(135deg, var(--mx-night), #12406A); color: #fff; font-family: var(--mx-display); font-weight: 700; cursor: pointer; }
.mx-main { max-width: 560px; margin: 0 auto; padding: 14px 16px calc(120px + var(--mx-safe-b)); }

/* drawer */
.mx-scrim { position: fixed; inset: 0; background: rgba(7, 26, 51, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); z-index: 1040; opacity: 0; pointer-events: none; transition: opacity .25s; }
.mx-drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: #fff; z-index: 1050; transform: translateX(-102%); transition: transform .3s cubic-bezier(.2, .9, .3, 1); display: flex; flex-direction: column; box-shadow: var(--mx-shadow-lg); }
body.mx-drawer-open .mx-scrim { opacity: 1; pointer-events: auto; }
body.mx-drawer-open .mx-drawer { transform: none; }
.mx-drawer-head { padding: 26px 20px 20px; padding-top: max(26px, env(safe-area-inset-top)); color: #fff; background: radial-gradient(400px 200px at 100% 0, rgba(18, 196, 180, .35), transparent 70%), var(--mx-night); }
.mx-drawer-head .who { font-family: var(--mx-display); font-size: 1.15rem; font-weight: 700; margin-top: 12px; }
.mx-drawer-head .meta { font-size: .8rem; color: rgba(255, 255, 255, .7); }
.mx-drawer nav { flex: 1; overflow-y: auto; padding: 10px; }
.mx-drawer nav a { display: flex; align-items: center; gap: 14px; padding: 12px 12px; border-radius: 14px; color: var(--mx-ink); text-decoration: none; font-weight: 600; }
.mx-drawer nav a i { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--mx-bg); color: var(--mx-ink-2); font-size: 17px; }
.mx-drawer nav a:hover, .mx-drawer nav a.active { background: var(--mx-teal-soft); color: #0B5F58; }
.mx-drawer nav a.active i { background: var(--mx-teal); color: #fff; }
.mx-drawer nav .sep { height: 1px; background: var(--mx-line); margin: 8px 12px; }
.mx-drawer nav a.out { color: var(--mx-err); }
.mx-drawer nav a.out i { background: #FDEBEB; color: var(--mx-err); }

/* dock (bottom navigation) */
.mx-dock { position: fixed; z-index: 200; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--mx-safe-b)); width: calc(100% - 28px); max-width: 520px;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 8px 8px; border-radius: 26px; background: rgba(7, 26, 51, .94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 18px 40px rgba(7, 26, 51, .35); }
.mx-dock a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 18px; color: rgba(255, 255, 255, .62); text-decoration: none; font-size: 11px; font-weight: 600; }
.mx-dock a i { font-size: 21px; line-height: 1; }
.mx-dock a.active { color: #fff; }
.mx-dock a.active i { color: var(--mx-teal-2); }
.mx-dock a.mx-fab { color: #fff; }
.mx-dock a.mx-fab span.ring { width: 56px; height: 56px; margin-top: -30px; border-radius: 20px; display: grid; place-items: center; font-size: 26px;
  background: linear-gradient(135deg, var(--mx-teal-2), var(--mx-teal)); box-shadow: 0 10px 24px rgba(0, 169, 157, .45), 0 0 0 5px var(--mx-bg); }

/* ================================================================== home */
.mx-wallet { position: relative; overflow: hidden; border-radius: 26px; padding: 22px 20px 18px; color: #fff; margin-bottom: 16px; box-shadow: var(--mx-shadow-lg);
  background: radial-gradient(420px 260px at 105% -20%, rgba(18, 196, 180, .55), transparent 65%), radial-gradient(360px 240px at -10% 120%, rgba(255, 107, 74, .25), transparent 65%), linear-gradient(150deg, #0D2B4E, var(--mx-night)); }
.mx-wallet::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 28px solid rgba(255, 255, 255, .05); }
.mx-wallet-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mx-wallet-top .hi { font-size: .85rem; color: rgba(255, 255, 255, .72); }
.mx-wallet-top .name { font-family: var(--mx-display); font-weight: 600; font-size: 1.05rem; }
.mx-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 99px; background: rgba(255, 255, 255, .12); color: #fff; }
.mx-wallet .lbl { margin-top: 18px; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .62); font-weight: 700; }
.mx-wallet .amt-row { display: flex; align-items: center; gap: 10px; }
.mx-wallet .amt { font-family: var(--mx-display); font-size: 2.2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.mx-wallet .eye { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 36px; height: 36px; border-radius: 12px; cursor: pointer; }
.mx-wallet .sub { font-size: .82rem; color: rgba(255, 255, 255, .7); margin-top: 2px; }
.mx-wallet .actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; position: relative; z-index: 1; }
.mx-wallet .actions a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: #fff; font-size: 11.5px; font-weight: 600; }
.mx-wallet .actions a span { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 20px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12); transition: background .15s, transform .15s; }
.mx-wallet .actions a:hover span { background: rgba(18, 196, 180, .3); transform: translateY(-2px); }
.mx-attn { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px 16px; padding: 2px 16px; scrollbar-width: none; }
.mx-attn::-webkit-scrollbar { display: none; }
.mx-attn a { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--mx-line); color: var(--mx-ink); text-decoration: none; font-weight: 600; font-size: .85rem; box-shadow: var(--mx-shadow); }
.mx-attn a i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--mx-coral-soft); color: var(--mx-coral); }
.mx-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.mx-stat { background: #fff; border-radius: var(--mx-r); padding: 16px; box-shadow: var(--mx-shadow); position: relative; overflow: hidden; }
.mx-stat .k { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--mx-ink-2); }
.mx-stat .k i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--mx-teal-soft); color: var(--mx-teal); }
.mx-stat.alt .k i { background: var(--mx-coral-soft); color: var(--mx-coral); }
.mx-stat .v { font-family: var(--mx-display); font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; margin-top: 10px; }
.mx-stat .v small { font-family: var(--mx-text); font-size: .8rem; font-weight: 600; color: var(--mx-muted); margin-left: 3px; }
.mx-stat .s { font-size: .8rem; color: var(--mx-muted); }
.mx-bar { height: 6px; border-radius: 99px; background: var(--mx-bg); margin-top: 12px; overflow: hidden; }
.mx-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--mx-teal-2), var(--mx-teal)); }
.mx-stat.alt .mx-bar span { background: linear-gradient(90deg, #FF9A7E, var(--mx-coral)); }
.mx-section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 2px 10px; }
.mx-section-h h2 { font-family: var(--mx-display); font-size: 1.15rem; margin: 0; }
.mx-section-h a { font-size: .85rem; }
.mx-reserve { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.mx-res { background: #fff; border-radius: var(--mx-r); padding: 14px; box-shadow: var(--mx-shadow); border: 1px solid transparent; }
.mx-res.empty { opacity: .6; box-shadow: none; border-color: var(--mx-line); background: transparent; }
.mx-res .size { display: flex; justify-content: space-between; align-items: center; }
.mx-res .size b { font-family: var(--mx-display); font-size: 1rem; }
.mx-res .size span { font-size: 11px; font-weight: 700; color: var(--mx-teal); background: var(--mx-teal-soft); padding: 3px 8px; border-radius: 99px; }
.mx-res .t { font-family: var(--mx-display); font-size: 1.35rem; font-weight: 700; margin-top: 8px; }
.mx-res .t small { font-family: var(--mx-text); font-size: .75rem; color: var(--mx-muted); font-weight: 600; }
.mx-res .m { font-size: .8rem; color: var(--mx-ink-2); margin-top: 2px; }

/* ================================================================== content pages */
.mx-page { padding-bottom: 8px; }
.mx-hero { position: relative; overflow: hidden; border-radius: var(--mx-r); padding: 20px; margin-bottom: 14px; color: #fff; box-shadow: var(--mx-shadow-lg);
  background: radial-gradient(360px 200px at 110% -20%, rgba(18, 196, 180, .5), transparent 65%), linear-gradient(150deg, #0D2B4E, var(--mx-night)); }
.mx-hero .eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mx-teal-2); }
.mx-hero h2 { font-family: var(--mx-display); font-size: 1.4rem; margin: 4px 0 6px; }
.mx-hero p { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .78); line-height: 1.5; }
.mx-hero .ic { position: absolute; right: 16px; top: 16px; font-size: 28px; color: rgba(255, 255, 255, .25); }
.mx-card { background: #fff; border-radius: var(--mx-r); padding: 18px; margin-bottom: 14px; box-shadow: var(--mx-shadow); }
.mx-card.danger { border: 1.5px solid #F7D3D3; box-shadow: none; }
.mx-card h3 { font-family: var(--mx-display); font-size: 1.08rem; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.mx-card h3 i { color: var(--mx-teal); }
.mx-muted { color: var(--mx-muted); font-size: .85rem; }
.mx-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.mx-tile { background: #fff; border-radius: 16px; padding: 12px; display: flex; gap: 10px; align-items: center; box-shadow: var(--mx-shadow); }
.mx-tile > i { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; background: #E6F6EE; color: var(--mx-ok); }
.mx-tile.todo > i { background: #FFF4E2; color: #B76E00; }
.mx-tile b { display: block; font-size: 13px; }
.mx-tile span { font-size: 12px; color: var(--mx-muted); }
.mx-list { list-style: none; margin: 0; padding: 0; }
.mx-list li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--mx-line); }
.mx-list li:first-child { border-top: 0; }
.mx-list .ic { width: 38px; height: 38px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--mx-teal-soft); color: var(--mx-teal); }
.mx-list li.bad .ic { background: #FDEBEB; color: var(--mx-err); }
.mx-list .main { flex: 1; min-width: 0; }
.mx-list time { font-size: 12px; color: var(--mx-muted); white-space: nowrap; }
.mx-tag { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: var(--mx-teal-soft); color: #0B5F58; vertical-align: middle; }
.mx-tag.coral { background: var(--mx-coral-soft); color: #B23A1E; }
.mx-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 0; }
.mx-switch { width: 54px; height: 32px; border-radius: 99px; border: 0; background: #CBD5E1; position: relative; flex: none; cursor: pointer; transition: background .2s; }
.mx-switch span { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: left .2s; }
.mx-switch.on { background: var(--mx-teal); }
.mx-switch.on span { left: 25px; }
.mx-meter { height: 6px; border-radius: 99px; background: var(--mx-line); margin: -6px 0 12px; overflow: hidden; }
.mx-meter span { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .25s, background .25s; }
.mx-meter span[data-score="1"] { width: 25%; background: var(--mx-err); }
.mx-meter span[data-score="2"] { width: 50%; background: var(--mx-amber); }
.mx-meter span[data-score="3"] { width: 75%; background: #7BB33C; }
.mx-meter span[data-score="4"] { width: 100%; background: var(--mx-ok); }
.mx-rules { list-style: none; padding: 0; margin: 0 0 14px; font-size: .82rem; color: var(--mx-muted); }
.mx-rules li.ok { color: var(--mx-ok); }
.mx-empty { text-align: center; color: var(--mx-muted); background: #fff; border-radius: var(--mx-r); padding: 40px 20px; box-shadow: var(--mx-shadow); }
.mx-empty i { font-size: 38px; color: var(--mx-teal); }
.mx-timeline { list-style: none; margin: 0; padding: 0; }
.mx-day { font-family: var(--mx-display); font-weight: 700; color: var(--mx-ink-2); margin: 16px 2px 8px; font-size: .95rem; }
.mx-ev { display: flex; gap: 12px; position: relative; padding-bottom: 12px; }
.mx-ev::before { content: ''; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--mx-line); }
.mx-ev .dot { width: 40px; height: 40px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--mx-night); color: var(--mx-teal-2); z-index: 1; }
.mx-ev .body { flex: 1; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: var(--mx-shadow); }
.mx-ev .top { display: flex; justify-content: space-between; gap: 8px; }
.mx-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.mx-search { position: relative; margin-bottom: 12px; }
.mx-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--mx-muted); }
.mx-search input { width: 100%; box-sizing: border-box; height: 48px; border: 1.5px solid var(--mx-line); border-radius: 16px; padding: 0 14px 0 42px; background: #fff; font-family: inherit; }
.mx-search input:focus { outline: none; border-color: var(--mx-teal); }
.mx-seg { display: flex; gap: 6px; padding: 4px; background: #E6ECF3; border-radius: 16px; margin-bottom: 12px; overflow-x: auto; }
.mx-seg button { flex: 1 0 auto; border: 0; background: transparent; border-radius: 12px; padding: 9px 12px; font-weight: 700; font-size: .85rem; color: var(--mx-ink-2); cursor: pointer; }
.mx-seg button span { color: var(--mx-muted); font-weight: 600; }
.mx-seg button.active { background: #fff; color: var(--mx-ink); box-shadow: 0 2px 6px rgba(7, 26, 51, .08); }
.mx-prices { list-style: none; margin: 0 0 12px; padding: 0; background: #fff; border-radius: var(--mx-r); overflow: hidden; box-shadow: var(--mx-shadow); }
.mx-prices li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--mx-line); }
.mx-prices li:first-child { border-top: 0; }
.mx-price { font-family: var(--mx-display); font-weight: 700; font-size: 1.15rem; text-align: right; white-space: nowrap; }
.mx-price small { display: block; font-family: var(--mx-text); font-size: 11px; font-weight: 500; color: var(--mx-muted); }
.mx-foot { color: var(--mx-muted); font-size: .8rem; text-align: center; margin: 10px 0 14px; }

/* order confirmation (post/downstream.js) */
.order-done-icon { font-size: 56px; color: var(--mx-teal); }
.order-done h4 { font-family: var(--mx-display); font-weight: 700; }
.order-ref { background: var(--mx-bg); border-radius: 16px; padding: 14px; margin-top: 12px; }

/* template overrides: modals and primary buttons in the Mangal colours */
body.mx-app .modal-content { border: 0; border-radius: 24px; box-shadow: var(--mx-shadow-lg); }
body.mx-app .btn-primary { background: var(--mx-teal); border-color: var(--mx-teal); }
body.mx-app .btn-primary:hover { background: #00968B; border-color: #00968B; }

/* privacy screen (assets/js/session-guard.js) */
.privacy-shield { display: none; position: fixed; inset: 0; z-index: 100000; background: rgba(7, 26, 51, .6); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); align-items: center; justify-content: center; color: #fff; }
.privacy-shield div { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }
.privacy-shield i { font-size: 44px; color: var(--mx-teal-2); }
body.app-hidden .privacy-shield { display: flex; }

:focus-visible { outline: 3px solid rgba(0, 169, 157, .55); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ================================================================== compatibility with the existing pages
   (variables and classes the old frame defined; mapped to the Midnight & Teal palette) */
:root {
  --primary-deep: var(--mx-ink); --primary-dark: var(--mx-night); --primary-accent: var(--mx-teal); --primary-accent-hover: #00877D;
  --accent-soft: var(--mx-teal-soft); --gold-accent: var(--mx-amber); --gold-light: #FFF4E2; --success-green: var(--mx-ok);
  --card-white: #FFFFFF; --white: #FFFFFF; --text-dark: var(--mx-ink); --text-muted: var(--mx-muted); --text-light: #94A3B8;
  --shadow-sm: var(--mx-shadow); --shadow-md: 0 12px 28px rgba(7, 26, 51, .08); --shadow-lg: var(--mx-shadow-lg);
  --radius-xl: 26px; --radius-lg: 20px; --border-light: var(--mx-line); --bg-soft: #F6F9FC; --bg-light: #F7F9FC;
}
.welcome-card { position: relative; overflow: hidden; border-radius: 26px; padding: 22px; margin-bottom: 20px; color: #fff; box-shadow: var(--mx-shadow-lg);
  background: radial-gradient(420px 260px at 105% -20%, rgba(18, 196, 180, .5), transparent 65%), linear-gradient(150deg, #0D2B4E, var(--mx-night)); }
.balance-amount { font-family: var(--mx-display); font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.badge-plant { background: rgba(255, 255, 255, .14); border-radius: 99px; padding: 6px 12px; font-size: 12px; font-weight: 600; }
.stat-card { background: #fff; border-radius: var(--radius-lg); padding: 16px; text-align: center; box-shadow: var(--mx-shadow); transition: transform .2s; }
.stat-card:hover { transform: translateY(-2px); }
.action-btn { background: #fff; border-radius: 20px; padding: 12px 8px; text-align: center; box-shadow: var(--mx-shadow); cursor: pointer; }
.action-btn i { font-size: 22px; color: var(--mx-teal); display: block; margin-bottom: 6px; }
.action-btn span { font-size: 12px; font-weight: 600; color: var(--mx-ink-2); }
/* Customer services: visible dashboard destinations for surveys and order quotations. */
.mx-customer-services{margin:20px 0 18px}
.mx-customer-services .mx-section-h{gap:8px;flex-wrap:wrap}
.mx-customer-services .mx-section-h>span{font-size:.75rem}
.mx-service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px}
.mx-service-card{display:flex;flex-direction:column;min-width:0;padding:18px 16px;background:#fff;border:1px solid var(--mx-line);border-radius:var(--mx-r);box-shadow:var(--mx-shadow);text-decoration:none;color:var(--mx-ink);transition:transform .15s,border-color .15s}
.mx-service-card:hover{color:var(--mx-ink);border-color:var(--mx-teal);transform:translateY(-2px)}
.mx-service-card:focus-visible{outline:3px solid var(--mx-teal);outline-offset:3px}
.mx-service-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;margin-bottom:14px}
.mx-service-icon svg{display:block;width:24px;height:24px;max-width:24px;max-height:24px;flex:none}
.mx-service-icon.feedback{background:var(--mx-teal-soft,#e3f7f4);color:#00857c}
.mx-service-icon.documents{background:#edf2fb;color:#234a7d}
.mx-service-card h3{font-family:var(--mx-display);font-weight:700;font-size:1rem;line-height:1.3;margin:0 0 8px}
.mx-service-card p{font-size:.8rem;line-height:1.5;color:var(--mx-muted);margin:0 0 18px}
.mx-service-action{display:flex;justify-content:space-between;gap:6px;margin-top:auto;font-size:.8rem;font-weight:800;color:#007c73}
.mx-account-notice{display:flex;align-items:flex-start;gap:9px;background:#edf4f7;border:1px solid #dae7ed;border-radius:var(--mx-r-sm);padding:13px 12px}
.mx-account-dot{flex:0 0 7px;height:7px;background:#648397;border-radius:50%;margin-top:6px}
.mx-account-notice>div{min-width:0;flex:1}
.mx-account-notice strong{font-size:.8rem;display:block;color:var(--mx-ink)}
.mx-account-notice p{font-size:.75rem;line-height:1.5;color:var(--mx-muted);margin:4px 0 0}
.mx-account-notice>a{font-size:.75rem;white-space:nowrap;font-weight:800;color:#28526b;text-decoration:none;padding:2px 0}
.mx-account-notice.needs-attention{background:#fff7e7;border-color:#f3dfb8}
.mx-account-notice.needs-attention .mx-account-dot{background:#ba7b13}
@media(max-width:360px){.mx-service-grid{gap:8px}.mx-service-card{padding:14px 11px}.mx-service-card h3{font-size:.9rem}.mx-account-notice{flex-wrap:wrap}.mx-account-notice>a{margin-left:16px}}
/* Keep the balance readable on narrow phones. */
@media(max-width:360px){.mx-wallet .amt{font-size:1.65rem;white-space:nowrap}}
