/* v3.5 local shell. The production style sheet remains intact. */
.header-row{display:flex!important;flex-wrap:nowrap!important;min-height:58px;max-height:68px;gap:10px;padding:6px 12px!important}
.brand{flex:0 0 auto!important}.brand-mark{width:36px;height:36px}.brand h1{font-size:18px!important;white-space:nowrap}.brand-subtitle{display:none}
.product-nav-shell{display:flex;flex:1;min-width:0;flex-direction:row!important;align-items:center!important;width:auto!important;gap:8px}
.product-nav{flex-wrap:nowrap!important;align-items:center;min-width:0;overflow:hidden;gap:1px}
.product-nav .nav-link{display:inline-flex;align-items:center;white-space:nowrap;flex:0 0 auto;padding:8px!important;font-size:12px!important;line-height:1.15}
.product-nav .nav-link::before{display:inline-block;margin-right:6px;font-size:15px;line-height:1}
.product-nav [data-nav-target="features"]::before{content:"▦"}.product-nav [data-nav-target="signals"]::before{content:"◇"}.product-nav [data-nav-target="history"]::before{content:"◷"}.product-nav [data-nav-target="forecast"]::before{content:"✧"}.product-nav [data-nav-target="about"]::before{content:"ⓘ"}
.top-actions{flex-wrap:nowrap!important;align-items:center;min-width:0;gap:6px!important}#api-health,#view-mode-badge{display:none!important}
#user-account{display:none!important}.cx-account-menu[hidden],.cx-account-items[hidden],#cx-zalo-modal[hidden]{display:none!important}
.cx-connection{order:3;display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;border:1px solid currentColor;border-radius:50%;background:color-mix(in srgb,currentColor 10%,transparent);cursor:pointer;color:#a6b7c3;padding:7px}
.cx-connection svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.cx-connection .cx-disconnect-slash{display:none}.cx-connection.connected{color:#14ad7a}.cx-connection.disconnected{color:#e54d57}.cx-connection.disconnected .cx-disconnect-slash{display:block}.cx-connection.checking{animation:cx-breathe 1.4s infinite alternate}@keyframes cx-breathe{to{opacity:.55}}
.cx-account-menu{position:relative;flex:0 0 auto}.cx-account-menu>button,#cx-utilities>summary{border:1px solid var(--border);border-radius:10px;background:var(--surface-soft);padding:8px 11px;color:var(--text);font-size:12px;font-weight:650;white-space:nowrap;cursor:pointer;min-height:34px;list-style:none}.cx-account-menu>button:hover,#cx-utilities>summary:hover{border-color:var(--primary)}
.cx-account-items{position:absolute;right:0;top:calc(100% + 9px);min-width:230px;display:grid;padding:8px;border:1px solid var(--border);border-radius:14px;background:var(--surface-strong);box-shadow:0 22px 55px rgba(0,0,0,.3);z-index:90}.cx-account-items a,.cx-account-items button{display:block;text-align:left;border:0;background:transparent;border-radius:8px;padding:10px 12px;color:var(--text);text-decoration:none;font:600 13px/1.35 system-ui;cursor:pointer;white-space:nowrap}.cx-account-items a:hover,.cx-account-items button:hover{background:var(--surface-soft);color:var(--primary-ink)}.cx-account-items [hidden]{display:none!important}
#cx-utilities{position:relative;flex:0 0 auto}#cx-utilities>summary::-webkit-details-marker{display:none}#cx-utility-items{position:absolute;right:0;top:calc(100% + 8px);width:min(320px,86vw);display:grid;gap:10px;padding:15px;border:1px solid var(--border);border-radius:14px;background:var(--surface-strong);box-shadow:0 22px 55px rgba(0,0,0,.3);z-index:90}#cx-utility-items .switch-cluster{margin:0;min-height:0;display:grid;gap:8px}#cx-utility-items #view-mode-badge{display:none}
@media(max-width:1250px) and (min-width:769px){.product-nav [data-nav-target="history"],.product-nav [data-nav-target="forecast"],.product-nav [data-nav-target="about"]{display:none}.brand h1{font-size:16px!important}.product-nav-shell{justify-content:flex-end!important}}
@media(max-width:1000px) and (min-width:769px){.product-nav .nav-link{font-size:0!important;padding:8px!important}.product-nav .nav-link::before{font-size:18px;margin-right:0}.brand h1{font-size:15px!important}#cx-account-toggle span,#cx-utilities>summary span{display:none}}
@media(max-width:768px){.header-row{min-height:56px;max-height:64px;gap:8px!important}.brand{order:1!important;flex:1 1 auto!important;min-width:0}.brand h1{font-size:16px!important;overflow:hidden;text-overflow:ellipsis}.brand-mark{width:34px!important;height:34px!important}.cx-connection{order:2;flex-basis:34px}.menu-toggle{order:3!important;flex:0 0 38px!important;width:38px!important;height:38px!important;margin-left:0!important;border-radius:10px!important;font-size:19px!important}.product-nav-shell{position:fixed!important;inset:0!important;z-index:80!important;display:grid!important;grid-template-rows:auto auto auto 1fr!important;align-items:start!important;align-content:start!important;width:100vw!important;min-height:100dvh!important;overflow-y:auto!important;transform:translateY(-104%);padding:calc(env(safe-area-inset-top,0px) + 18px) 22px 24px!important;background:var(--surface-strong);box-shadow:none}.product-nav-shell.open{transform:translateY(0)}.product-nav{display:grid!important;overflow:visible!important;gap:6px!important}.product-nav .nav-link{font-size:15px!important;padding:11px!important}.product-nav [data-nav-target="history"],.product-nav [data-nav-target="forecast"],.product-nav [data-nav-target="about"]{display:inline-flex!important}.top-actions{display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important}.cx-account-menu,.cx-account-menu>button{width:100%}.cx-account-items{position:static;box-shadow:none;margin-top:8px}.cx-account-items a,.cx-account-items button{white-space:normal}#cx-utilities{width:100%}#cx-utilities>summary{width:100%}#cx-utility-items{position:static;box-shadow:none;width:100%;margin-top:8px}}
/* Shared window surface and motion. The page underneath stays visible at the top. */
#customer-page{position:fixed;inset:0;z-index:1800;background:transparent;overflow:hidden;display:flex;align-items:flex-end;justify-content:center;padding:0 18px}
#customer-page .cx-scrim{position:absolute;inset:0;background:rgba(3,13,22,.58);backdrop-filter:blur(8px);animation:cx-fade .25s ease both}
#customer-page .cx-shell{position:relative;width:min(1180px,100%);max-width:1180px;max-height:calc(100dvh - 54px);height:calc(100dvh - 54px);overflow-y:auto;overscroll-behavior:contain;background:#091622;border:1px solid #3b5160;border-radius:24px 24px 0 0;padding:0 32px;box-shadow:0 -20px 75px rgba(0,0,0,.35);animation:cx-rise .32s cubic-bezier(.19,.8,.26,1) both;outline:none}
.cx-window-bar{position:sticky;top:0;z-index:4;display:flex;align-items:center;gap:12px;min-height:46px;background:#091622;border-bottom:1px solid #233744}.cx-window-bar>span{font-size:12px;color:#a2b8c7}.cx-window-brand{margin-left:auto;letter-spacing:1px}.cx-close,.cx-dialog-close{display:grid;place-items:center;border:0;border-radius:50%;background:#ef5b57;color:#55120e;font-weight:800;font-size:19px;line-height:1;width:27px;height:27px;min-width:27px;cursor:pointer}.cx-close:hover,.cx-dialog-close:hover{background:#ff7770}.cx-close:focus-visible,.cx-dialog-close:focus-visible{outline:3px solid #fff;outline-offset:3px}
.cx-tabs{display:flex;gap:8px;overflow-x:auto;padding:2px 0 16px;scrollbar-width:thin}.cx-tabs a{white-space:nowrap;padding:10px 14px;border-radius:10px;border:1px solid #2b4554;color:#b6c9d5!important;font-size:13px;font-weight:600;text-decoration:none!important}.cx-tabs a.active{color:#092921!important;background:#79dbc0;border-color:#79dbc0}.cx-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.cx-summary-card{display:flex;flex-direction:column;gap:12px;padding:24px;background:#122b38;border:1px solid #355261;border-radius:14px;text-decoration:none!important;min-width:0}.cx-summary-card:hover{border-color:#77d9bc;transform:translateY(-2px)}.cx-summary-card span{font-size:11px;letter-spacing:1.3px;color:#8ed6c4}.cx-summary-card strong{font-size:25px;color:#eff8f9;overflow-wrap:anywhere}.cx-summary-card small{color:#a7bfca}.cx-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.cx-symbol{display:inline-block;padding:8px 12px;border:1px solid #3a5967;border-radius:8px;margin:4px;font-weight:700}
.cx-support-backdrop{position:fixed;inset:0;z-index:7000;display:grid;place-items:center;background:rgba(1,10,18,.62);backdrop-filter:blur(8px);padding:18px;animation:cx-fade .24s ease both}.cx-support-card{position:relative;width:min(430px,100%);background:#102635;color:#e7f4f6;border:1px solid #446073;border-radius:20px;padding:28px;box-shadow:0 24px 80px #0008;animation:cx-rise .28s ease both}.cx-support-card .cx-close{margin-bottom:22px}.cx-support-card p{line-height:1.7;color:#b9ced7}
.modal-backdrop,.journey-backdrop{padding-top:max(54px,env(safe-area-inset-top))!important;align-items:end!important}.modal-backdrop .modal-card,.journey-backdrop .journey-card{position:relative;max-height:calc(100dvh - 54px)!important;overflow:auto;border-radius:22px 22px 0 0;animation:cx-rise .32s cubic-bezier(.19,.8,.26,1) both}.auth-gate{padding-top:max(54px,env(safe-area-inset-top))!important;align-items:end!important}.auth-gate .auth-card{position:relative;max-height:calc(100dvh - 54px)!important;overflow:auto;border-radius:22px 22px 0 0;animation:cx-rise .32s cubic-bezier(.19,.8,.26,1) both}.cx-dialog-close{position:sticky;top:8px;left:8px;z-index:9;margin:8px 0 0 8px}.journey-backdrop .cx-dialog-close{top:8px}.product-tour [data-tour-close]{background:#ef5b57;border-radius:50%}
@keyframes cx-fade{from{opacity:0}to{opacity:1}}@keyframes cx-rise{from{opacity:.65;transform:translateY(28px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:720px){#customer-page{padding:0 8px}#customer-page .cx-shell{width:100%;height:calc(100dvh - 44px);max-height:calc(100dvh - 44px);padding:0 18px;border-radius:19px 19px 0 0}.cx-header{align-items:flex-start!important;flex-direction:column!important;gap:8px!important}.cx-header nav{display:none}.cx-tabs{gap:6px}.cx-tabs a{padding:9px 11px}.cx-summary-grid{grid-template-columns:1fr 1fr;gap:10px}.cx-summary-card{padding:15px}.cx-summary-card strong{font-size:17px}.cx-section-head{display:block}.modal-backdrop .modal-card,.journey-backdrop .journey-card,.auth-gate .auth-card{width:100%;max-height:calc(100dvh - 44px)!important}.cx-support-card{align-self:end;border-radius:19px 19px 0 0;margin-bottom:-18px}}
@media(max-width:380px){.cx-summary-grid{grid-template-columns:1fr}.brand h1{font-size:14px!important}}
@media(prefers-reduced-motion:reduce){#customer-page .cx-scrim,#customer-page .cx-shell,.cx-support-backdrop,.cx-support-card,.modal-backdrop .modal-card,.journey-backdrop .journey-card,.auth-gate .auth-card{animation:none!important}.product-nav-shell{transition:none!important}}
#customer-page .cx-shell{margin:0 auto!important;flex:0 1 1180px}
.product-header:has(.cx-account-items:not([hidden])),.product-header.cx-utilities-open{z-index:2400!important}
.cx-account-items{background:var(--surface-strong)!important;color:var(--ink)!important;backdrop-filter:none!important}
.cx-account-items a,.cx-account-items button{color:var(--ink)!important}
.cx-account-items a:hover,.cx-account-items button:hover{background:var(--surface-soft);color:var(--primary-ink)!important}
.cx-account-items a,.cx-account-items button{font-size:14px;min-height:40px}
@media(max-width:768px){.cx-account-menu>button{font-size:15px;min-height:44px;text-align:left;padding:12px 14px}}
#auth-gate .auth-card{overflow-y:auto!important;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}
#auth-close{position:sticky;top:8px;left:8px;right:auto;width:27px;height:27px;margin:8px 0 0 8px;border:0;background:#ef5b57;color:#55120e;font-size:19px;font-weight:800;z-index:9}
/* Beta5 notification bell and theme-aware account surfaces. */
#cx-notification-wrap{position:relative;order:3;flex:0 0 auto}
.cx-connection{position:relative;order:0;width:44px;height:44px;flex-basis:44px;border-radius:50%;padding:10px;background:var(--surface-soft)}
.cx-connection svg{width:22px;height:22px}
.cx-notification-count{position:absolute;right:-5px;top:-5px;min-width:19px;height:19px;padding:0 5px;border:2px solid var(--surface-strong);border-radius:99px;background:#e62e3d;color:#fff;font-size:10px;font-weight:800;line-height:15px;text-align:center;box-shadow:0 2px 6px #0004}
.cx-notification-panel{position:absolute;top:calc(100% + 10px);right:0;z-index:3000;width:min(360px,calc(100vw - 24px));max-height:min(520px,75dvh);overflow:auto;padding:14px;border:1px solid var(--border-strong);border-radius:16px;background:var(--surface-strong);color:var(--ink);box-shadow:var(--shadow-lg)}
.cx-notification-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 4px 12px;border-bottom:1px solid var(--border)}
#cx-notification-health{font-size:11px;color:var(--muted);white-space:nowrap}
.cx-bell-notice{padding:12px 8px;border-bottom:1px solid var(--border);border-radius:8px}
.cx-bell-notice.is-unread{background:color-mix(in srgb,var(--primary) 10%,transparent)}
.cx-bell-notice strong{display:block;font-size:13px;color:var(--ink)}
.cx-bell-notice p{margin:6px 0;font-size:12px;line-height:1.5;color:var(--muted)}
.cx-bell-notice small{font-size:10px;color:var(--subtle)}
.cx-bell-notice button{display:block;margin-top:7px;border:0;background:none;color:var(--primary-ink);font:600 11px system-ui;cursor:pointer;padding:2px 0}
.cx-bell-empty{margin:12px 4px;color:var(--muted);font-size:13px}
#cx-notification-all{display:block;padding:12px 6px 3px;text-align:center;color:var(--primary-ink);font-size:12px;font-weight:700}

#customer-page{background:transparent!important;color:var(--ink)!important}
#customer-page .cx-shell{background:var(--surface-strong)!important;color:var(--ink)!important;border-color:var(--border-strong)!important}
#customer-page .cx-window-bar{background:var(--surface-strong)!important;border-color:var(--border)!important}
#customer-page .cx-window-bar>span,#customer-page .cx-muted,#customer-page .cx-hero p,#customer-page .cx-hero small{color:var(--muted)!important}
#customer-page .cx-header{border-color:var(--border)!important}
#customer-page .cx-brand{color:var(--ink)!important}
#customer-page .cx-brand span,#customer-page .cx-eyebrow{color:var(--primary-ink)!important}
#customer-page .cx-plan,#customer-page .cx-section,#customer-page .cx-summary-card,#customer-page .cx-ticker,#customer-page .cx-order,#customer-page .cx-notification,#customer-page .cx-journal-event,#customer-page .cx-journal-snapshot,#customer-page .cx-checkout aside,#customer-page .cx-new-user,#customer-page .cx-admin-pending{background:var(--surface-soft)!important;color:var(--ink)!important;border-color:var(--border)!important}
#customer-page .cx-admin-pending{background:color-mix(in srgb,#e5a943 10%,var(--surface-soft))!important}
#customer-page .cx-plan h2,#customer-page .cx-section h2,#customer-page .cx-notification h2,#customer-page .cx-summary-card strong,#customer-page .cx-ticker strong,#customer-page .cx-order strong,#customer-page .cx-new-user strong{color:var(--ink)!important}
#customer-page .cx-plan p,#customer-page .cx-plan li,#customer-page .cx-section p,#customer-page .cx-section li,#customer-page .cx-notification p,#customer-page .cx-order p,#customer-page .cx-journal-event p,#customer-page .cx-journal-event time,#customer-page .cx-new-user small{color:var(--muted)!important}
#customer-page .cx-button{background:var(--surface-strong);color:var(--ink)!important;border-color:var(--border-strong)}
#customer-page .cx-button.cx-primary{background:linear-gradient(140deg,var(--primary),var(--primary-ink));border-color:var(--primary);color:#fff!important}
#customer-page input:not([type=checkbox]),#customer-page textarea,#customer-page select{background:var(--surface-strong)!important;color:var(--ink)!important;border-color:var(--border-strong)!important}
#customer-page table th,#customer-page table td{color:var(--ink);border-color:var(--border)!important}
#customer-page table th{color:var(--muted)!important}
#customer-page .cx-local{background:color-mix(in srgb,#d99b31 12%,var(--surface-soft));border-color:var(--border);color:var(--muted)}
#customer-page .cx-support-card{background:var(--surface-strong)!important;color:var(--ink)!important;border-color:var(--border-strong)!important}
#customer-page .cx-support-card p{color:var(--muted)!important}
#cx-zalo-modal .cx-zalo-qr-link{display:block;width:min(230px,calc(100vw - 64px));max-height:min(230px,34dvh);aspect-ratio:1;box-sizing:border-box;margin:16px auto;padding:10px;border-radius:14px;background:#fff}
#cx-zalo-modal .cx-zalo-qr-link img{display:block;width:100%;height:100%;aspect-ratio:1;object-fit:contain;image-rendering:pixelated}
#cx-zalo-modal .cx-support-card>.cx-button{display:flex;width:100%}
#customer-page .cx-tabs a{color:var(--muted)!important;border-color:var(--border-strong)!important}
#customer-page .cx-tabs a.active{color:#082b25!important;background:#79dbc0!important;border-color:#79dbc0!important}
@media(max-width:768px){#cx-notification-wrap{order:2}.cx-connection{width:38px;height:38px;flex-basis:38px}.cx-notification-panel{right:-46px;top:calc(100% + 12px)}}

#cx-zalo-modal .cx-support-card{background:var(--surface-strong)!important;color:var(--ink)!important;border-color:var(--border-strong)!important}#cx-zalo-modal .cx-support-card p{color:var(--muted)!important}

@media(max-width:380px),(max-height:560px){#cx-zalo-modal .cx-zalo-qr-link{display:none!important}#cx-zalo-modal .cx-support-card>.cx-button{margin-top:16px}}
#cx-voucher-dialog[hidden]{display:none!important}
#cx-voucher-dialog{z-index:7800}
#cx-voucher-dialog .cx-support-card{align-self:center;margin:0;width:min(430px,100%);max-height:calc(100dvh - 40px);overflow-y:auto;background:var(--surface-strong)!important;color:var(--ink)!important;border-color:var(--border-strong)!important}
#cx-voucher-dialog .cx-support-card p{color:var(--ink)!important}
#cx-voucher-dialog .cx-actions{display:flex;flex-wrap:wrap;gap:10px}
#cx-voucher-dialog .cx-actions .cx-button{flex:1 1 160px}
#cx-voucher-apply input[aria-invalid="true"]{border-color:#ef5b57!important;outline-color:#ef5b57!important}
@media(max-width:720px){#cx-voucher-dialog .cx-support-card{align-self:center;margin:0;border-radius:20px}}

/* Keep the open notification menu above sticky dashboard filters at every viewport. */
.product-header.cx-notification-open{z-index:4200!important}
.cx-watchlist-shortcut{order:4;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border:1px solid var(--border-strong);border-radius:50%;background:var(--surface-soft);color:var(--primary-ink);text-decoration:none;transition:background .16s ease,transform .16s ease}
.cx-watchlist-shortcut:hover{background:color-mix(in srgb,var(--primary) 12%,var(--surface-strong));transform:translateY(-1px)}
.cx-watchlist-shortcut:focus-visible{outline:3px solid var(--primary);outline-offset:3px}
.cx-watchlist-shortcut svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:768px){.cx-watchlist-shortcut{order:3;flex-basis:38px;width:38px;height:38px}.menu-toggle{order:4!important}}
@media(max-width:420px){.header-row{gap:5px!important;padding-inline:8px!important}.brand{gap:6px!important}.brand-mark{width:30px!important;height:30px!important}.brand h1{font-size:12px!important;letter-spacing:-.045em}.cx-connection,.cx-watchlist-shortcut{width:34px;height:34px;flex-basis:34px;padding:7px}.menu-toggle{width:34px!important;height:34px!important;flex-basis:34px!important}}
@media(max-width:768px){#cx-notification-panel.cx-notification-panel{position:fixed;top:calc(env(safe-area-inset-top,0px) + 76px);right:12px;left:auto;width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 92px);z-index:4201}}
