/* MONSTER AOV palette and operational layout, adapted from uplever/ui_palette.py.
   Scoped to the home page and Chung suc; product pages keep their existing UI. */
body.monster-ui {
  --bg:#101c2f;--bg-soft:#14233a;--panel:#192b45;--panel-strong:#223956;
  --line:#385271;--line-soft:#304865;--text:#f4f7ff;--muted:#c0d0e4;
  --cyan:#5bb6f7;--cyan-2:#8bd0ff;--blue:#227ac0;--green:#36e7ae;
  --gold:#e9c77f;--field:#14253d;--border:#385271;--red:#ff607c;
  margin:0;min-height:100vh;padding:134px 24px 20px 282px;
  background:var(--bg);color:var(--text);font-family:'Segoe UI',Arial,sans-serif;
  font-size:14px;line-height:1.6;transition:background .15s,color .15s;
}
body.monster-light {
  --bg:#f1f5fa;--bg-soft:#e8eff7;--panel:#fff;--panel-strong:#eaf1f8;
  --line:#d3dfec;--line-soft:#e1e9f2;--text:#24374b;--muted:#52677e;
  --cyan:#146ca9;--cyan-2:#137fb2;--blue:#1f7bb9;--green:#087f60;
  --gold:#90661d;--field:#f5f8fc;--border:#d3dfec;--red:#cf3853;
}
.monster-ui *, .monster-ui *::before, .monster-ui *::after { box-sizing:border-box }
.monster-ui [hidden] { display:none!important }
.monster-topbar {
  position:fixed;inset:0 0 auto;z-index:90;min-height:108px;
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  padding:12px 28px;background:#13243b;color:#f4f7ff;border-bottom:1px solid #354b66;
}
.monster-light .monster-topbar { background:#fff;color:var(--text);border-color:var(--line);box-shadow:0 2px 12px #1c405609 }
.monster-light .monster-identity small,.monster-light .monster-brand-label small,.monster-light #monster-theme { color:var(--muted) }
.monster-light .monster-brand-label { color:var(--gold) }
.monster-identity { display:flex;align-items:center;gap:19px;text-decoration:none;color:inherit;min-width:0 }
.monster-identity img { width:78px;height:78px;object-fit:contain;flex-shrink:0 }
.monster-identity strong { display:block;font-size:20px;letter-spacing:.035em;line-height:1.35;font-weight:800 }
.monster-identity small { display:block;font-size:10px;letter-spacing:.12em;margin-top:10px;color:#b0c2dd }
.monster-identity i { font-style:normal;color:#e0bc72;margin:0 10px }
.monster-header-tools { display:flex;align-items:flex-end;gap:26px }
.monster-brand-label { color:#e0bc72;font-size:12px;letter-spacing:.06em;text-align:right;font-weight:700 }
.monster-brand-label small { display:block;color:#a4b4d0;font-size:10px;letter-spacing:0;margin-top:5px;font-weight:400 }
#monster-theme { display:flex;align-items:center;gap:8px;min-height:36px;padding:5px 0;background:none;border:0;color:#dde7f7;font:13px 'Segoe UI',Arial,sans-serif;cursor:pointer;white-space:nowrap }
.theme-track { display:block;width:34px;height:18px;border-radius:20px;background:#30435c;padding:2px;transition:background .15s }
.theme-track::before { content:'';display:block;width:14px;height:14px;background:#e4ebf5;border-radius:50%;transition:transform .15s }
[aria-pressed=true] .theme-track { background:#087f60 }
[aria-pressed=true] .theme-track::before { transform:translateX(16px) }
.monster-ui #monter-main-sidebar {
  top:132px;bottom:22px;left:22px;width:236px;height:auto;border:1px solid var(--line);
  border-radius:14px;background:var(--panel);padding:15px 12px;color:var(--text);gap:11px;font-size:14px;font-family:'Segoe UI',Arial,sans-serif;
}
.monster-ui #monter-main-sidebar .global-brand { display:none }
.monster-ui #monter-main-sidebar .global-profile { background:var(--field);border-color:var(--line);padding:13px;min-height:88px;align-content:center }
.monster-ui #monter-main-sidebar .global-profile strong { color:var(--text);font-size:16px;font-weight:650 }
.monster-ui #monter-main-sidebar #global-account-balance { color:var(--green);font-size:14px;margin-top:4px }
.monster-ui #monter-main-sidebar button { background:var(--panel);border-color:var(--line);color:var(--text);font-size:13px }
.monster-ui #monter-main-sidebar .global-label { font-size:11px;color:var(--muted);letter-spacing:.08em;margin:7px 10px 0 }
.monster-ui #monter-main-sidebar .global-links a { color:var(--muted);font-size:15px;padding:9px 12px;min-height:40px;font-weight:500;border-radius:8px }
.monster-ui #monter-main-sidebar .global-links a:hover { color:var(--text);background:var(--field);border-color:var(--line) }
.monster-ui #monter-main-sidebar .global-links a.current { background:#163c5d;color:#a9dbff;border-color:#3a83ba;font-weight:700 }
.monster-ui #monter-main-sidebar .global-products { gap:6px }
.monster-ui #monter-main-sidebar .global-products a { color:var(--text);background:var(--field);border-color:var(--line);font-size:12px;min-height:36px;font-weight:600 }
.monster-ui main.wrap { width:100%;max-width:1260px;margin:0 auto;padding-top:0 }
.monster-ui .store-hero { padding-top:0 }
.monster-ui .store-heading {
  position:relative;display:flex;align-items:center;justify-content:space-between;gap:24px;
  padding:28px 30px;margin-bottom:22px;border:1px solid var(--line);border-radius:14px;
  background:var(--panel);box-shadow:none;overflow:hidden;
}
.monster-ui .store-heading::after { content:'';position:absolute;inset:0 auto 0 0;width:4px;background:#087f60 }
.monster-ui .store-heading .eyebrow { color:var(--gold);font-size:10px;letter-spacing:.13em }
.monster-ui .marquee-title { overflow:visible;mask-image:none;max-width:none }
.monster-ui .marquee-title h1 { display:block;padding:0;animation:none!important;transform:none!important;white-space:normal!important;width:auto!important;font-size:clamp(24px,2.6vw,36px);line-height:1.25;letter-spacing:-.035em;margin:9px 0;color:var(--text) }
.monster-ui #monter-main-sidebar { scrollbar-width:thin;scrollbar-color:var(--line) var(--panel) }
.monster-ui .store-heading p { color:var(--muted);font-size:12px;line-height:1.7;margin:0;max-width:600px }
.monster-ui .store-status { background:var(--field);color:var(--green);border:1px solid var(--line);border-radius:8px;font-size:10px;white-space:nowrap;box-shadow:none }
.monster-ui .product-picker { gap:16px }
.monster-ui .pick-card { border-color:var(--line);border-radius:13px;background:var(--panel);box-shadow:none }
.monster-ui .pick-card::before,.monster-ui .pick-card::after { display:none }
.monster-ui .pick-inner { background:none }
.monster-ui .pick-tag { color:var(--gold);background:var(--field);border:1px solid var(--line) }
.monster-ui .pick-card h2 { color:var(--text);font-size:20px }
.monster-ui .pick-meta,.monster-ui .pick-meta b,.monster-ui .pick-features li { color:var(--muted) }
.monster-ui .pick-features li::before { color:var(--green) }
.monster-ui .pick-actions .primary { background:#087f60;color:#fff;box-shadow:none;border:1px solid #119773 }
.monster-ui .pick-actions .secondary { background:var(--field);color:var(--text);border-color:var(--line) }
.monster-ui .section-head h2,.monster-ui .section-title,.monster-ui .download-title,.monster-ui .package-main h2 { color:var(--text) }
.monster-ui .section-head p,.monster-ui footer { color:var(--muted) }
.monster-ui .package-group,.monster-ui .download-card,.monster-ui .linkcard,.monster-ui .support-row { border-color:var(--line);box-shadow:none }
.monster-light .package-group,.monster-light .download-card,.monster-light .linkcard { background:var(--panel);color:var(--text) }
.monster-light .package-banner,.monster-light .home-plan-card { background:var(--field);border-color:var(--line) }
.monster-light .package-main p,.monster-light .home-plan-card p,.monster-light .home-plan-card h4 { color:var(--text) }
.monster-light .package-summary-list li,.monster-light .home-plan-duration,.monster-light .home-price-line strong { color:var(--text) }
.monster-light .package-kicker,.monster-light .home-plan-top span { color:var(--gold) }
.monster-light .home-plan-details,.monster-light .home-plan-price { background:var(--panel);border-color:var(--line) }
.monster-light .home-plan-details summary,.monster-light .home-plan-details p,.monster-light .home-price-line small { color:var(--muted) }
.monster-ui .cs-workspace { max-width:1400px;margin:0 auto;background:transparent;min-height:calc(100dvh - 154px) }
.monster-ui .cs-topbar { padding:0 2px 20px;background:none;border:0;font-size:11px;color:var(--muted) }
.monster-ui .cs-content { padding:0 }
.monster-ui .heading { margin:0 0 23px;align-items:flex-end }
.monster-ui .heading h1 { font-size:30px;letter-spacing:-.035em;margin:5px 0;color:var(--text) }
.monster-ui .eyebrow { color:var(--gold);font-size:10px;letter-spacing:.12em }
.monster-ui .muted { color:var(--muted) }
.monster-ui .panel { background:var(--panel);border:1px solid var(--line);border-radius:13px;padding:23px;box-shadow:none }
.monster-ui .panel h2 { font-size:18px;color:var(--text);margin-bottom:18px;font-family:inherit;font-weight:650 }
.monster-ui h1,.monster-ui h3 { font-family:inherit }
.monster-ui .stats { gap:7px;margin-bottom:18px;padding:10px;background:var(--panel);border:1px solid var(--line);border-radius:11px }
.monster-ui button.stat { position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:var(--field);border:1px solid var(--line);border-radius:7px;padding:10px 14px;min-height:65px;cursor:pointer;transition:background .16s,border-color .16s,transform .16s,box-shadow .16s }
.monster-ui button.stat span { color:var(--muted);font-size:12px;line-height:1.3;font-weight:500 }
.monster-ui button.stat strong { color:var(--text);font-size:17px;letter-spacing:.025em;margin:0;line-height:1.25;font-variant-numeric:tabular-nums }
.monster-ui button.stat[data-summary-filter="Đang chạy"] :is(strong,span),.monster-ui button.stat[data-summary-filter="Đã xong"] :is(strong,span) { color:#35ecac }
.monster-ui button.stat[data-summary-filter="Đang chờ"] :is(strong,span) { color:#f2ca75 }
.monster-light button.stat[data-summary-filter="Đang chạy"] :is(strong,span),.monster-light button.stat[data-summary-filter="Đã xong"] :is(strong,span) { color:#087f60 }
.monster-light button.stat[data-summary-filter="Đang chờ"] :is(strong,span) { color:#946416 }
.monster-ui button.stat:hover { background:var(--panel-strong);border-color:#4b83af;transform:translateY(-1px) }
.monster-ui button.stat:active { transform:translateY(1px) }
.monster-ui button.stat.selected { background:#1b6caf;border-color:#8bd0ff;box-shadow:inset 0 0 0 2px #70bdf3 }
.monster-ui button.stat.selected :is(strong,span) { color:white }
.monster-ui .run-panel { border-left:3px solid #087f60;gap:18px }
.monster-ui #run-state { font-size:15px;color:var(--text) }
.monster-ui label { color:var(--muted);font-size:13px }
.monster-ui input:not([type=checkbox]),.monster-ui textarea,.monster-ui select { background:var(--field);color:var(--text);border:1px solid var(--line);border-radius:7px;font:14px/1.6 'Segoe UI',Arial,sans-serif;padding:10px 12px;min-height:42px }
.monster-ui #job-target[readonly] { background:var(--panel-strong);color:var(--text);border-color:var(--line);opacity:1;font-weight:600 }
.monster-ui small.muted,.monster-ui .point-label { font-size:12px;color:var(--muted) }
.monster-ui input:focus,.monster-ui textarea:focus,.monster-ui select:focus { outline:2px solid #4ca7df;outline-offset:2px }
.monster-ui .primary,.monster-ui button.primary { background:#087f60;color:#fff;border:1px solid #119773;border-radius:7px;box-shadow:none;min-height:40px;font-weight:700 }
.monster-ui .primary:hover { background:#09956f }
.monster-ui .secondary,.monster-ui .tabs button,.monster-ui .filters button { background:var(--field);border:1px solid var(--line);color:var(--text);border-radius:7px;box-shadow:none }
.monster-ui .tabs { display:flex;gap:6px;padding:6px;background:var(--field);border:1px solid var(--line);border-radius:10px;width:fit-content;max-width:100%;overflow:auto;margin:0 0 20px }
.monster-ui .tabs button { border:0;white-space:nowrap;font:600 14px/1.4 'Segoe UI',Arial,sans-serif;min-height:38px;padding:8px 15px }
.monster-ui .tabs button.selected,.monster-ui .filters button.selected { background:#1b72b5;color:#fff;border-color:#56b2ee }
.monster-ui .tabs button,.monster-ui .filters button,.monster-ui .actions button { transition:background .16s,border-color .16s,box-shadow .16s,transform .16s }
.monster-ui .tabs button:hover,.monster-ui .filters button:hover { border-color:#5bb6f7;box-shadow:inset 0 0 0 1px #5bb6f733 }
.monster-ui .tabs button.selected { box-shadow:inset 0 0 0 2px #85caff }
.monster-ui .filters button[data-filter="Đang chạy"]:not(.selected),.monster-ui .filters button[data-filter="Đã xong"]:not(.selected) { color:var(--green) }
.monster-ui .filters button[data-filter="Đang chờ"]:not(.selected) { color:var(--gold) }
.monster-ui .danger { background:#442638;color:#ffacbc;border:1px solid #754058;border-radius:7px }
.monster-ui button:disabled { opacity:.48;cursor:not-allowed }
.monster-ui .table-scroll { border:1px solid var(--line);border-radius:9px;max-width:100% }
.monster-ui th { background:var(--panel-strong);color:var(--text);font-size:13px;padding:13px 12px;font-weight:650 }
.monster-ui td { color:var(--text);border-color:var(--line);font-size:14px;padding:13px 12px;vertical-align:middle }
.monster-ui #job-rows td:nth-child(6),.monster-ui .table-scroll:has(#job-rows) th:nth-child(6) { text-align:center }
.monster-ui tbody tr:hover { background:var(--field) }
.monster-ui td .code { color:var(--cyan-2) }
.monster-ui .pill { display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;min-height:29px;min-width:70px;padding:5px 10px;border-radius:7px;font:600 12px/1.25 'Segoe UI',Arial,sans-serif;white-space:nowrap;text-align:center }
.monster-ui .pill.running { color:#4cf4ba;background:#103b34 }
.monster-ui .pill.done { color:#65efba;background:#143e32 }
.monster-light .pill { color:#2e607c;background:#e7f0fa }
.monster-light .pill.running,.monster-light .pill.done { color:#076345;background:#def4e9;border:1px solid #bbe7d2 }
.monster-ui .progress-wrap span { display:grid;place-items:center;line-height:1;font-family:inherit }
.monster-ui .logs,.monster-ui pre { background:var(--field);border-color:var(--line);color:var(--muted) }
.monster-ui .cs-footer { padding:20px 0;color:var(--muted) }
.monster-ui #notice { top:124px }
.monster-ui :focus-visible { outline:2px solid #5bb6f7;outline-offset:3px }
@media(min-width:1600px){body.monster-ui{padding-left:306px;padding-right:36px}.monster-ui #monter-main-sidebar{width:248px;left:28px}}
@media(max-width:1050px){.monster-brand-label{display:none}.monster-ui .store-heading{padding:24px}.monster-ui .store-status{display:none}}
@media(max-width:800px){
  body.monster-ui{padding:132px 14px 20px}
  .monster-topbar{min-height:86px;padding:10px 16px;gap:10px}
  .monster-identity{gap:10px}.monster-identity img{width:58px;height:58px}
  .monster-identity strong{font-size:14px}.monster-identity small{font-size:8px;letter-spacing:.04em;margin-top:6px}
  .monster-identity i{margin:0 4px}.monster-header-tools{gap:0}.theme-caption{display:none}
  .monster-ui #monter-menu-toggle{top:86px;height:32px;min-height:32px;padding:0 18px;font-size:10px;background:#0b1733;border-color:#263b5c;z-index:89;color:#c6d9f2}
  .monster-ui #monter-main-sidebar{top:0;bottom:0;left:0;width:264px;height:100dvh;border-radius:0;z-index:1001;padding-top:16px}
  .monster-ui .store-heading{padding:22px 20px}.monster-ui .marquee-title h1{font-size:25px}
  .monster-ui .panel{padding:18px}.monster-ui .heading h1{font-size:26px}
  .monster-ui .stats{gap:7px;padding:8px}.monster-ui button.stat{padding:10px 12px}.monster-ui button.stat strong{font-size:17px}
  .monster-ui .tabs{width:100%}.monster-ui .tabs button{padding:8px 11px;font-size:11px}
  .monster-ui .cs-topbar{padding:0 0 15px;font-size:10px}.monster-ui #notice{top:126px;left:14px;right:14px}
}
@media(prefers-reduced-motion:reduce){.monster-ui *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(min-width:801px){.monster-ui #monter-main-sidebar{left:0;width:258px;border-left:0;border-radius:0 14px 14px 0}}
@media(min-width:1600px){.monster-ui #monter-main-sidebar{left:0;width:276px}}
.monster-ui #monter-main-sidebar .event-section-title{display:flex;align-items:center;gap:10px;margin:16px 8px 2px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:var(--gold);font-size:13px;font-weight:750;letter-spacing:.14em;line-height:1.5;cursor:default}
.monster-ui #monter-main-sidebar .event-section-title::after{content:'';height:1px;flex:1;background:var(--line)}
