:root{--navy:#0d1b33;--navy2:#142a4d;--gold:#c9a227;--gold2:#e8c85c;--goldSoft:#f7efd6;--ink:#16203a;--inkSoft:#556179;--inkFaint:#8b93a7;--bg:#f6f8fb;--line:#e3e8f0;--green:#0f8a52;--red:#d9435e;--r:18px;--sh:0 16px 40px -26px rgba(13,27,51,.42);--fb:'Be Vietnam Pro',system-ui,sans-serif;--fd:'Playfair Display',Georgia,serif}
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:var(--fb);background:var(--bg);color:var(--ink);line-height:1.7;-webkit-font-smoothing:antialiased}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
a{color:inherit;text-decoration:none}.hide{display:none!important}
h1,h2,h3{font-family:var(--fd);line-height:1.2}
.lgwrap{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 18px;background:linear-gradient(155deg,var(--navy),var(--navy2))}
.lgbrand{text-align:center;margin-bottom:22px}
.lgbrand img{height:68px;width:auto;margin:0 auto 12px;display:block;filter:drop-shadow(0 4px 16px rgba(0,0,0,.4))}
.lgmark{width:64px;height:64px;border-radius:19px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.25);display:grid;place-items:center;margin:0 auto 14px}
.lgbrand h1{font-size:25px;color:#fff;margin-bottom:4px}
.lgbrand p{font-size:13.5px;color:rgba(255,255,255,.7)}
.lgcard{width:100%;max-width:450px;background:#fff;border-radius:20px;box-shadow:0 30px 70px -28px rgba(0,0,0,.6);overflow:hidden;border-top:4px solid var(--gold)}
.lgtabs{display:flex;background:var(--bg);border-bottom:1px solid var(--line)}
.lgtab{flex:1;padding:17px;font-size:15px;font-weight:800;color:var(--inkSoft);border-bottom:3px solid transparent}
.lgtab.on{color:var(--navy);background:#fff;border-bottom-color:var(--gold)}
.lgpanel{display:none;padding:28px 26px}.lgpanel.on{display:block}
.lgpanel h2{font-size:21px;color:var(--navy);margin-bottom:6px}
.lgsub{font-size:14px;color:var(--inkSoft);margin-bottom:20px;line-height:1.65}
.fg{margin-bottom:14px}
.fg label{display:block;font-size:13.5px;font-weight:700;color:var(--inkSoft);margin-bottom:6px}
.fg .rq{color:var(--red)}
.fg small{display:block;font-size:12px;color:var(--inkFaint);margin-top:5px}
.fg input,.fg select,.fg textarea{width:100%;padding:13px 15px;border:1.5px solid var(--line);border-radius:11px;font-family:var(--fb);font-size:15px;color:var(--ink);background:var(--bg);outline:none}
.fg input:focus,.fg select:focus{border-color:var(--gold);background:#fff}
.lbtn{width:100%;padding:16px;border-radius:12px;font-size:15.5px;font-weight:800;background:linear-gradient(120deg,var(--navy2),var(--navy));color:#fff}
.lgmsg{font-size:13.5px;text-align:center;margin-top:13px;font-weight:600;min-height:20px}
.lgmsg.ok{color:var(--green)}.lgmsg.err{color:var(--red)}
.lghint{font-size:13px;color:var(--inkFaint);text-align:center;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.lghint a{color:#a8861e;font-weight:700}
.lgback{margin-top:20px;font-size:13.5px;color:rgba(255,255,255,.62)}
.lgback a[href="/"],.lgback a.btn-back-home{color:#00bbe4;font-weight:700;text-decoration:none;transition:all .2s ease}
.lgback a[href="/"]:hover,.lgback a.btn-back-home:hover{color:#38bdf8;text-decoration:underline;text-shadow:0 0 10px rgba(0,187,228,.5)}
.lgback a:hover{color:var(--gold2)}
/* ================= STICKY HEADER & COMPACT RESPONSIVE DROPDOWN ================= */
.dhead{background:linear-gradient(135deg,#0a1426 0%,#0d1b33 50%,#172a4d 100%);padding:10px 0;position:sticky;top:0;z-index:100;box-shadow:0 4px 20px rgba(10,20,38,.45);border-bottom:1px solid rgba(232,200,92,.22);width:100%;box-sizing:border-box}
.dw{max-width:1180px;margin:0 auto;padding:0 18px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;width:100%;box-sizing:border-box}
.dhead-left{grid-column:1;display:flex;align-items:center;flex-shrink:0}
.dbrand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;flex-shrink:0}
.dbrand img{height:34px;width:auto;display:block;object-fit:contain}

/* Center Nav & Header Dropdown */
.dhead-nav{grid-column:2;display:flex;align-items:center;gap:12px;justify-content:center;min-width:0}
.dnav-dropdown-wrap{position:relative;display:inline-flex;align-items:center;max-width:250px;width:100%;flex-shrink:0}
.dnav-select{width:100%;appearance:none;-webkit-appearance:none;-moz-appearance:none;background:linear-gradient(135deg,rgba(232,200,92,.18) 0%,rgba(255,255,255,.08) 100%);color:#fff;border:1.5px solid rgba(232,200,92,.6);border-radius:999px;padding:7px 32px 7px 14px;font-size:13px;font-weight:700;cursor:pointer;outline:none;transition:all .2s ease;white-space:nowrap;text-overflow:ellipsis;box-shadow:0 2px 8px rgba(0,0,0,.2);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23e8c85c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 11px center;background-size:11px 11px}
.dnav-select:hover,.dnav-select:focus{border-color:#e8c85c;background-color:rgba(232,200,92,.28);box-shadow:0 0 14px rgba(232,200,92,.4)}
.dnav-select option{background:#0d1b33;color:#fff;font-size:14px;padding:8px 10px}

.dhead-desktop-links{display:none!important}
.dhead-link{font-size:12.5px;font-weight:700;display:inline-flex;align-items:center;gap:5px;padding:6px 13px;border-radius:999px;text-decoration:none;transition:all .2s ease;white-space:nowrap}
.dlink-train{color:#fff;background:linear-gradient(135deg,#2563eb,#1d4ed8);border:1px solid #60a5fa;box-shadow:0 2px 8px rgba(37,99,235,.3)}
.dlink-train:hover{background:#1d4ed8;transform:translateY(-1px)}
.dlink-doc{color:#fff;background:linear-gradient(135deg,#0f8a52,#059669);border:1px solid #34d399;box-shadow:0 2px 8px rgba(16,185,129,.3)}
.dlink-doc:hover{background:#059669;transform:translateY(-1px)}
.dlink-pol{color:#e8c85c;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.22)}
.dlink-pol:hover{background:rgba(255,255,255,.18);border-color:#e8c85c;transform:translateY(-1px)}

/* Right Actions (User Pill & Logout Button) */
.dha{grid-column:3;display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-shrink:0}
.dwho-pill{font-size:12.5px;color:rgba(255,255,255,.88);font-weight:600;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);padding:5px 12px;border-radius:999px;max-width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block}

/* NÚT ĐĂNG XUẤT NỔI BẬT KHÔNG THỂ BỊ CHE KHUẤT */
.dout{padding:7px 16px;border-radius:999px;background:linear-gradient(135deg,#ef4444 0%,#dc2626 100%);border:1px solid #f87171;color:#ffffff!important;font-size:13px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;gap:6px;flex-shrink:0;box-shadow:0 3px 10px rgba(220,38,38,.35);transition:all .2s ease;line-height:1.3;white-space:nowrap}
.dout:hover{background:linear-gradient(135deg,#dc2626 0%,#b91c1c 100%);transform:translateY(-1px);box-shadow:0 4px 14px rgba(220,38,38,.5)}
.dout:active{transform:translateY(0)}

/* Scroll margin top cho tất cả card để không bị che khuất dưới Header dính */
.dcard,[id].dcard,[id].cta-mem-banner,[id].zalo-dash-card,[id].dtop,#careerSection,#companyBankSection,#trainingSectionCard,#officialDocCard,#fullPolicyCard,#membershipCard,#treeSectionCard,#pwdCard,#tierBonusCard,#cccdCard,#bankInfoCard,#payoutCard,#affLinksCard,#commHistoryCard,#incomePlanCard,#prospectsCard{scroll-margin-top:76px!important}
.dmain{max-width:1100px;margin:0 auto;padding:22px 20px 60px}
.dtop{background:linear-gradient(135deg,var(--navy),var(--navy2));border-radius:var(--r);padding:24px 26px;color:#fff;margin-bottom:18px}
.dh{font-family:var(--fd);font-size:clamp(21px,3vw,28px)}.dh span{color:var(--gold2)}
.ds{font-size:13.5px;color:rgba(255,255,255,.7);margin-top:5px}.ds b{color:#fff}
.dkpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}
.dk{background:#fff;border-radius:var(--r);padding:20px;box-shadow:var(--sh);border-left:5px solid var(--gold)}
.dk span{display:block;font-size:11.5px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--inkFaint);margin-bottom:7px}
.dk strong{display:block;font-family:var(--fd);font-size:clamp(18px,2.5vw,25px);color:var(--navy);line-height:1.15;word-break:break-word}
.dk small{font-size:12.5px;color:var(--inkFaint);font-weight:600}
.dcard{background:#fff;border-radius:var(--r);box-shadow:var(--sh);padding:24px;margin-bottom:16px}
.dcard h3{font-family:var(--fd);font-size:19px;color:var(--navy);margin-bottom:6px}
.dc{font-size:13.5px;color:var(--inkSoft);margin-bottom:16px;line-height:1.7}
.bar{height:11px;border-radius:999px;background:var(--line);overflow:hidden;margin:14px 0 9px}
.bar span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--navy2),var(--gold2));width:0}
.tw{overflow-x:auto}
.tw table{width:100%;border-collapse:collapse;font-size:14px}
.tw th{background:var(--bg);font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--inkSoft);text-align:left;padding:11px 13px}
.tw td{padding:12px 13px;border-top:1px solid var(--line);color:var(--inkSoft)}
.tw tr.on td{background:var(--goldSoft);color:var(--navy);font-weight:700}
.tw td:last-child{text-align:right;font-weight:800;color:var(--green)}
.dbtn{width:100%;padding:15px;border-radius:12px;font-size:15px;font-weight:800;background:linear-gradient(120deg,var(--gold2),var(--gold));color:#201a05}
.lrow{display:flex;gap:9px;flex-wrap:wrap}
.lrow input{flex:1;min-width:200px;padding:13px 15px;border-radius:11px;border:1.5px solid var(--line);background:var(--bg);font-size:13.5px;color:var(--ink);outline:none}
.dcopy{padding:13px 22px;border-radius:11px;background:linear-gradient(120deg,var(--navy2),var(--navy));color:#fff;font-size:14px;font-weight:800}
.dcopy.done{background:var(--green)}
.shares{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;margin-top:14px}
.sh{padding:14px;border-radius:12px;font-size:13.5px;font-weight:800;color:#fff}
.sh.fb{background:linear-gradient(140deg,#1877F2,#0d5bc4)}
.sh.tt{background:linear-gradient(140deg,#1b1b1b,#000)}
.sh.zl{background:linear-gradient(140deg,#0068FF,#0050c8)}
.node{display:flex;gap:12px;align-items:center;padding:13px 15px;border-radius:12px;background:var(--bg);margin-bottom:9px;border-left:4px solid var(--navy2)}
.node.me{background:linear-gradient(135deg,var(--navy),var(--navy2));border-left-color:var(--gold)}
.node.me .nn{color:#fff}.node.me .nm{color:rgba(255,255,255,.65)}
.node .av{width:40px;height:40px;border-radius:11px;flex-shrink:0;display:grid;place-items:center;background:#fff;color:var(--navy);font-family:var(--fd);font-weight:800;font-size:15px}
.node.me .av{background:linear-gradient(140deg,var(--gold2),var(--gold));color:#201a05}
.node .nb{flex:1;min-width:0}
.node .nn{font-size:15px;font-weight:700;color:var(--navy);display:block}
.node .nm{font-size:12.5px;color:var(--inkFaint);display:block;margin-top:2px}
.node .na{font-family:var(--fd);font-size:16px;font-weight:800;color:var(--green);white-space:nowrap}
.empty{padding:26px 18px;text-align:center;color:var(--inkFaint);font-size:14px;background:var(--bg);border-radius:12px;line-height:1.7}
.cccard{display:flex;gap:14px;align-items:center;background:linear-gradient(135deg,#3b1d6e,#5b21b6);border-radius:13px;padding:18px 20px;color:#fff;margin-bottom:16px}
.cccard .cv{font-family:monospace;font-size:19px;font-weight:800;letter-spacing:.06em}
.cccard .cl{font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.65);display:block;margin-bottom:4px}
.bkcard{display:flex;gap:14px;align-items:center;background:linear-gradient(135deg,var(--navy),var(--navy2));border-radius:13px;padding:18px 20px;color:#fff;margin-bottom:16px}
.bkcard .bl{font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.6);display:block;margin-bottom:4px}
.bkcard .bv{font-family:monospace;font-size:19px;font-weight:800;display:block;margin-bottom:4px}
.bkcard .bn2{font-size:13px;color:rgba(255,255,255,.8);display:block}
.hidebox{background:#fff5f5;border:1.5px dashed var(--red);border-radius:13px;padding:18px;text-align:center;color:#c41030;font-size:14px;font-weight:600;margin-bottom:16px}
@media (max-width:1024px){.dkpis{grid-template-columns:1fr 1fr}}
@media (max-width:760px){.dkpis{grid-template-columns:repeat(2,1fr)!important;gap:10px!important}.shares{grid-template-columns:repeat(3,1fr);gap:8px}.lgpanel{padding:20px 16px}.dcard{padding:18px 14px!important;border-radius:14px!important}}

.dbtn.lk{display:block;text-align:center}
.dlink{display:inline-block;margin-top:12px;font-size:13.5px;font-weight:700;color:#a8861e}
.learnok{background:#e7f7ee;border:1.5px solid #b7e4c9;color:#0a6b3f;border-radius:13px;padding:14px 16px;margin-bottom:14px;font-size:14px}

.paysum{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:14px}
.paysum div{background:var(--bg);border-radius:12px;padding:14px 16px}
.paysum span{display:block;font-size:11.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--inkFaint);margin-bottom:4px}
.paysum b{font-family:var(--fd);font-size:21px;color:var(--navy)}
@media (max-width:760px){.paysum{grid-template-columns:1fr}}

#sponsorNotice{margin-bottom:16px;padding:12px 14px;border-radius:11px;background:#eef6ff;border:1.5px solid #b9d8ff;color:#104f9c;font-size:13.5px;line-height:1.55}
#sponsorNotice b{font-weight:700;color:#0b3b75}
#sponsorNotice.err{background:#fff5f5;border-color:#fca5a5;color:#b91c1c}
.sp-badge{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.28);border-radius:999px;padding:6px 14px;font-size:12.5px;color:rgba(255,255,255,.9);font-weight:600}
.sp-badge b{color:var(--gold2)}
.tree-tabs{display:inline-flex;background:var(--bg);padding:4px;border-radius:10px;border:1px solid var(--line);gap:4px}
.tree-tab{padding:8px 14px;font-size:13px;font-weight:700;color:var(--inkSoft);border-radius:7px;transition:all .15s}
.tree-tab.on{background:#fff;color:var(--navy);box-shadow:0 2px 6px rgba(0,0,0,.08)}
.net-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-bottom:16px}
.nk{background:var(--bg);border-radius:12px;padding:12px 14px;border-left:3px solid var(--gold)}
.nk span{display:block;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--inkFaint);margin-bottom:4px}
.nk strong{display:block;font-family:var(--fd);font-size:18px;color:var(--navy);line-height:1.2}
@media (max-width:760px){.net-kpis{grid-template-columns:repeat(2,1fr)}}
.policy-note{display:flex;gap:12px;background:#eef6ff;border:1.5px solid #b9d8ff;border-radius:12px;padding:14px 16px;margin-bottom:16px;color:#104f9c}
.policy-note b{color:#0b3b75}
.policy-note svg{flex-shrink:0;margin-top:2px}
.aff-box{margin-top:10px}
.aff-head{margin-bottom:10px}
.aff-tag{display:inline-block;padding:4px 10px;border-radius:6px;font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.aff-tag.tag-client{background:#e8f4fd;color:#0e63a8}
.aff-tag.tag-ctv{background:#fdf2e9;color:#c05621}
.aff-desc{display:block;font-size:13px;color:var(--inkSoft);margin-top:5px}
.lvl-badge{display:inline-block;padding:2px 7px;border-radius:5px;font-size:11px;font-weight:800;margin-right:6px}
.lvl-f1{background:#e8f4fd;color:#0e63a8}
.lvl-f2{background:#f3e8ff;color:#7e22ce}
.lvl-f3{background:#ecfdf5;color:#047857}
.lvl-fn{background:#f1f5f9;color:#475569}
.ctv-pill{display:inline-block;font-size:11.5px;padding:2px 7px;border-radius:999px;font-weight:600;margin-left:6px}
.ctv-pill.act{background:#e7f7ee;color:#0a6b3f}
.ctv-pill.pen{background:#fff8e6;color:#a87103}
.ctv-pill.blk{background:#fde8e8;color:#9b1c1c}
.node-sub{border-left:2px dashed #d1d9e6;margin-left:22px;padding-left:14px;margin-top:6px}

/* MODAL CHÚC MỪNG & NHÓM ZALO CTV */
.modal-backdrop{position:fixed;inset:0;background:rgba(13,27,51,.78);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;z-index:9999;padding:20px;overflow-y:auto}
.modal-card{background:#fff;border-radius:24px;max-width:520px;width:100%;padding:30px 26px;box-shadow:0 30px 80px -20px rgba(0,0,0,.5);text-align:center;position:relative;border-top:5px solid var(--gold);animation:popModal .25s ease-out}
@keyframes popModal{from{opacity:0;transform:scale(.92) translateY(12px)}to{opacity:1;transform:scale(1) translateY(0)}}
.modal-badge-ok{width:56px;height:56px;border-radius:50%;background:#e7f7ee;color:var(--green);display:grid;place-items:center;margin:0 auto 12px;box-shadow:0 0 0 8px rgba(15,138,82,.1)}
.modal-card h2{font-size:22px;color:var(--navy);margin-bottom:6px}
.modal-sub{font-size:13.5px;color:var(--inkSoft);margin-bottom:14px;line-height:1.55}
.modal-code-box{background:var(--bg);border:1.5px dashed var(--gold);border-radius:12px;padding:12px;margin-bottom:18px}
.modal-code-box span{font-size:11px;font-weight:800;letter-spacing:.08em;color:var(--inkFaint);display:block}
.modal-code-box strong{font-family:monospace;font-size:22px;color:var(--navy);letter-spacing:.08em;display:block;margin-top:2px}
.zalo-box{background:linear-gradient(145deg,#f0f7ff,#e6f1fe);border:1.5px solid #b3d7ff;border-radius:18px;padding:20px 18px;text-align:center}
.zalo-tag{display:inline-flex;align-items:center;gap:6px;background:#0068ff;color:#fff;font-size:11px;font-weight:800;letter-spacing:.06em;padding:4px 10px;border-radius:999px;margin-bottom:10px}
.zalo-box h3{font-size:17px;color:#0747a6;margin-bottom:6px}
.zalo-desc{font-size:13px;color:#2c5282;line-height:1.55;margin-bottom:14px}
.zalo-qr-wrap{display:inline-block;background:#fff;border-radius:16px;padding:12px;box-shadow:0 8px 24px -10px rgba(0,104,255,.3);margin-bottom:14px;border:1.5px solid #d4e6fc}
.zalo-qr-wrap img{width:180px;height:180px;object-fit:contain;display:block;border-radius:10px;transition:transform .2s ease}
.zalo-qr-wrap a:hover img{transform:scale(1.03)}
.zalo-qr-wrap small{display:block;font-size:11.5px;color:var(--inkSoft);margin-top:8px;font-weight:600}
.zalo-actions{display:flex;flex-direction:column;gap:9px}
.btn-zalo{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:linear-gradient(135deg,#0068ff,#0052cc);color:#fff;font-size:15px;font-weight:800;padding:13px 20px;border-radius:12px;box-shadow:0 8px 20px -8px rgba(0,104,255,.6);transition:all .2s;text-decoration:none}
.btn-zalo:hover{background:linear-gradient(135deg,#0058db,#0045ab);transform:translateY(-1px);color:#fff}
.zalo-link-row{display:flex;gap:8px}
.zalo-link-row input{flex:1;padding:10px 12px;border-radius:9px;border:1px solid #c2dbfe;background:#fff;font-size:12.5px;color:#0052cc;font-family:monospace;outline:none}
.btn-copy-zalo{background:#0068ff;color:#fff;padding:0 16px;border-radius:9px;font-size:12.5px;font-weight:700;flex-shrink:0;transition:background .15s}
.btn-copy-zalo:hover{background:#0053cc}

/* ZALO COMMUNITY CARD IN DASHBOARD */
.zalo-dash-card{background:linear-gradient(140deg,#ffffff,#f0f6ff);border:1.5px solid #bfdbfe;border-radius:var(--r);padding:20px 22px;box-shadow:var(--sh);margin-bottom:18px}
.zdc-layout{display:flex;gap:20px;align-items:center}
.zdc-qr{flex-shrink:0;text-align:center}
.zdc-qr img{width:110px;height:110px;border-radius:12px;border:1px solid #bfdbfe;background:#fff;padding:5px;box-shadow:0 4px 14px -6px rgba(0,104,255,.25);display:block;transition:transform .2s}
.zdc-qr a:hover img{transform:scale(1.04)}
.zdc-qr span{display:block;font-size:11px;font-weight:700;color:#0068ff;margin-top:5px}
.zdc-info{flex:1;min-width:0}
.zdc-badge{display:inline-flex;align-items:center;gap:5px;font-size:10.5px;font-weight:800;letter-spacing:.07em;background:#dbeafe;color:#1d4ed8;padding:3px 8px;border-radius:6px;margin-bottom:6px}
.zdc-info h3{font-size:18px;color:var(--navy);margin-bottom:4px}
.zdc-info p{font-size:13px;color:var(--inkSoft);line-height:1.55;margin-bottom:12px}
.zdc-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.btn-zalo-sm{display:inline-flex;align-items:center;gap:6px;background:#0068ff;color:#fff;font-size:13.5px;font-weight:700;padding:9px 18px;border-radius:9px;box-shadow:0 4px 12px -4px rgba(0,104,255,.5);transition:background .15s;text-decoration:none}
.btn-zalo-sm:hover{background:#0053cc;color:#fff}
.btn-copy-sm{background:#fff;border:1.5px solid #bfdbfe;color:#0068ff;font-size:13px;font-weight:700;padding:8px 16px;border-radius:9px;transition:all .15s}
.btn-copy-sm:hover{background:#eff6ff}
@media (max-width:640px){.zdc-layout{flex-direction:column;text-align:center}.zdc-actions{justify-content:center}}

/* PASSWORD VISIBILITY TOGGLE */
.pwd-wrap{position:relative;display:flex;align-items:center;width:100%}
.pwd-wrap input{width:100%;padding-right:44px!important}
.pwd-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:none;cursor:pointer;color:var(--inkFaint);border-radius:8px;padding:0;transition:color .18s ease,background-color .18s ease;z-index:2;-webkit-tap-highlight-color:transparent}
.pwd-toggle:hover{color:var(--navy);background:rgba(13,27,51,.07)}
.pwd-toggle:focus-visible{outline:2px solid var(--gold);outline-offset:1px}
.pwd-toggle svg{width:20px;height:20px;display:block;pointer-events:none}
.pwd-toggle .eye-off{display:none}
.pwd-toggle.is-shown{color:var(--gold)}
.pwd-toggle.is-shown .eye-on{display:none}
.pwd-toggle.is-shown .eye-off{display:block}

/* ================= THẺ HỌC VÀ THI CTV (NỔI BẬT ĐỎ & XANH) ================= */
.dcard-learn{border-radius:var(--r);padding:24px 26px;box-shadow:var(--sh);margin-bottom:18px;transition:all .3s ease;position:relative;overflow:hidden}

/* Trạng thái 1: BẮT BUỘC / CHƯA ĐẠT (Màu đỏ cảnh báo nổi bật) */
.dcard-learn.is-pending{
  background:linear-gradient(145deg,#ffffff 0%,#fff5f5 100%);
  border:2px solid #fca5a5;
  border-left:7px solid #e11d48;
  box-shadow:0 12px 36px -12px rgba(225,29,72,.28);
}
.learn-badge-warn{
  display:inline-flex;align-items:center;gap:6px;
  background:#ffe4e6;color:#be123c;border:1px solid #fecdd3;
  padding:5px 12px;border-radius:999px;font-size:11.5px;font-weight:800;
  letter-spacing:.06em;text-transform:uppercase;margin-bottom:10px;
}
.dcard-learn.is-pending h3{
  color:#9f1239;font-size:21px;margin-bottom:6px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;
}
.learn-alert-red{
  background:#fff1f2;border:1.5px solid #fda4af;border-radius:14px;
  padding:14px 16px;margin:12px 0 16px;display:flex;gap:12px;align-items:flex-start;
  color:#9f1239;font-size:13.5px;line-height:1.65;
}
.learn-alert-red svg{flex-shrink:0;margin-top:2px;color:#e11d48}
.learn-alert-red b{color:#881337}

/* Trạng thái 2: ĐÃ ĐẠT CHUẨN CTV (Màu xanh lá cây rực rỡ) */
.dcard-learn.is-passed{
  background:linear-gradient(145deg,#ffffff 0%,#f0fdf4 100%);
  border:2px solid #86efac;
  border-left:7px solid #16a34a;
  box-shadow:0 12px 36px -12px rgba(22,163,74,.28);
}
.learn-badge-ok{
  display:inline-flex;align-items:center;gap:6px;
  background:#dcfce7;color:#15803d;border:1px solid #bbf7d0;
  padding:5px 12px;border-radius:999px;font-size:11.5px;font-weight:800;
  letter-spacing:.06em;text-transform:uppercase;margin-bottom:10px;
}
.dcard-learn.is-passed h3{
  color:#166534;font-size:21px;margin-bottom:6px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;
}
.learn-alert-green{
  background:#f0fdf4;border:1.5px solid #86efac;border-radius:14px;
  padding:14px 16px;margin:12px 0 16px;display:flex;gap:12px;align-items:flex-start;
  color:#166534;font-size:13.5px;line-height:1.65;
}
.learn-alert-green svg{flex-shrink:0;margin-top:2px;color:#16a34a}
.learn-alert-green b{color:#14532d}

/* Khối trạng thái & tiến độ học tập */
.learn-stats-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:10px;margin-bottom:16px;
}
.learn-stat-item{
  background:#fff;border-radius:11px;padding:10px 12px;
  border:1px solid rgba(0,0,0,.08);display:flex;flex-direction:column;gap:3px;
}
.learn-stat-lbl{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--inkFaint)}
.learn-stat-val{font-size:14.5px;font-weight:800;color:var(--navy)}
.learn-stat-val.red{color:#e11d48}
.learn-stat-val.green{color:#16a34a}

.learn-prog-bar{
  height:9px;border-radius:999px;background:#e2e8f0;overflow:hidden;margin:10px 0 14px;
}
.learn-prog-bar span{
  display:block;height:100%;border-radius:999px;
  background:linear-gradient(90deg,#e11d48,#f59e0b);transition:width .4s ease;
}
.learn-prog-bar.is-passed span{
  background:linear-gradient(90deg,#16a34a,#22c55e);
}

/* Các nút bấm hành động đỏ & xanh */
.btn-learn-act{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  background:linear-gradient(135deg,#e11d48,#be123c);color:#fff!important;
  font-size:15px;font-weight:800;padding:13px 24px;border-radius:12px;
  box-shadow:0 8px 22px -6px rgba(225,29,72,.5);transition:all .2s ease;
  text-decoration:none;
}
.btn-learn-act:hover{
  background:linear-gradient(135deg,#be123c,#9f1239);
  transform:translateY(-1px);box-shadow:0 12px 28px -6px rgba(225,29,72,.6);
}
.btn-contract-act{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  background:linear-gradient(135deg,#16a34a,#15803d);color:#fff!important;
  font-size:15px;font-weight:800;padding:13px 24px;border-radius:12px;
  box-shadow:0 8px 22px -6px rgba(22,163,74,.5);transition:all .2s ease;
  text-decoration:none;
}
.btn-contract-act:hover{
  background:linear-gradient(135deg,#15803d,#14532d);
  transform:translateY(-1px);box-shadow:0 12px 28px -6px rgba(22,163,74,.6);
}
.btn-learn-review{
  display:inline-flex;align-items:center;gap:6px;margin-left:14px;
  font-size:13.5px;font-weight:700;color:#16a34a;text-decoration:none;
}
.btn-learn-review:hover{color:#15803d;text-decoration:underline}

/* LƯU Ý BẮT BUỘC TRONG MODAL ĐĂNG KÝ THÀNH CÔNG */
.modal-learn-step{
  background:#fff1f2;border:1.5px solid #fda4af;border-left:5px solid #e11d48;border-radius:12px;
  padding:12px 14px;margin:14px 0 16px;text-align:left;
}
.mls-badge{
  font-size:11px;font-weight:800;color:#be123c;letter-spacing:.06em;
  text-transform:uppercase;display:block;margin-bottom:4px;
}
.modal-learn-step p{
  font-size:13px;color:#9f1239;line-height:1.55;margin:0;
}
.modal-learn-step b{color:#881337}
.lbtn-red{
  background:linear-gradient(135deg,#e11d48,#be123c)!important;color:#fff!important;
  box-shadow:0 6px 18px -4px rgba(225,29,72,.45);
}
.lbtn-red:hover{
  background:linear-gradient(135deg,#be123c,#9f1239)!important;
}

/* GÓI THÀNH VIÊN MEMBERSHIP */
.mem-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:14px}
@media(max-width:820px){.mem-grid{grid-template-columns:1fr}}
.mem-col{border:2px solid #e2e8f0;border-radius:14px;padding:18px 16px;background:#fff;display:flex;flex-direction:column}
.mem-col.best{border-color:#3b82f6;background:linear-gradient(180deg,#f8faff 0%,#fff 100%)}
.mem-badge{font-size:11.5px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;padding:4px 10px;border-radius:6px;display:inline-block;align-self:flex-start;margin-bottom:8px}
.mem-badge.silver{background:linear-gradient(135deg, #475569 0%, #64748b 45%, #94a3b8 100%);color:#fff;text-shadow:0 1px 2px rgba(0,0,0,0.4);box-shadow:0 2px 6px rgba(100,116,139,0.3);border:1px solid #cbd5e1}
.mem-badge.gold{background:linear-gradient(135deg, #b45309 0%, #d97706 40%, #eab308 80%, #facc15 100%);color:#fff;text-shadow:0 1px 2px rgba(0,0,0,0.4);box-shadow:0 2px 8px rgba(217,119,6,0.35);border:1px solid #fde047}
.mem-badge.diamond{background:linear-gradient(135deg,#0284c7 0%,#6366f1 35%,#8b5cf6 70%,#d946ef 100%) !important;color:#fff !important;text-shadow:0 1px 2px rgba(0,0,0,0.4) !important;box-shadow:0 2px 8px rgba(124,58,237,0.35) !important;border:1px solid #c084fc !important}
.mem-price{font-size:18px;font-weight:900;color:var(--navy);margin-bottom:12px;padding-bottom:10px;border-bottom:1px dashed #e2e8f0}
.mem-list{list-style:none;padding:0;margin:0 0 16px;flex:1}
.mem-list li{font-size:12.5px;color:#475569;margin-bottom:7px;line-height:1.45;position:relative;padding-left:14px}
.mem-list li::before{content:"✓";position:absolute;left:0;color:#0f8a52;font-weight:800}
.mem-list li b{color:var(--navy)}
.m-badge{font-size:12px;padding:3px 10px;border-radius:999px;font-weight:800;text-transform:uppercase}
.m-badge.free{background:#f1f5f9;color:#475569}
.m-badge.silver{background:linear-gradient(135deg,#475569 0%,#64748b 45%,#94a3b8 100%) !important;color:#ffffff !important;text-shadow:0 1px 2px rgba(0,0,0,0.4) !important;box-shadow:0 2px 6px rgba(100,116,139,0.3) !important;border:1px solid #cbd5e1 !important}
.m-badge.gold{background:linear-gradient(135deg,#b45309 0%,#d97706 40%,#eab308 80%,#facc15 100%) !important;color:#ffffff !important;text-shadow:0 1px 2px rgba(0,0,0,0.4) !important;box-shadow:0 2px 8px rgba(217,119,6,0.35) !important;border:1px solid #fde047 !important}
.m-badge.diamond{background:linear-gradient(135deg,#0284c7 0%,#6366f1 35%,#8b5cf6 70%,#d946ef 100%) !important;color:#ffffff !important;text-shadow:0 1px 2px rgba(0,0,0,0.4) !important;box-shadow:0 2px 8px rgba(124,58,237,0.35) !important;border:1px solid #c084fc !important}

/* ================= KHUNG GÓI BẠC SÁNG LẤP LÁNH (SILVER LUXURY) ================= */
.mem-col.silver-luxury {
  position: relative;
  border-radius: 16px;
  padding: 24px 18px 20px;
  background: radial-gradient(circle at 85% 12%, rgba(203, 213, 225, 0.35) 0%, transparent 50%),
              radial-gradient(circle at 15% 88%, rgba(241, 245, 249, 0.7) 0%, transparent 50%),
              linear-gradient(165deg, #ffffff 0%, #f8fafc 40%, #f1f5f9 80%, #e2e8f0 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 10px 32px -4px rgba(100, 116, 139, 0.22), 0 0 20px rgba(203, 213, 225, 0.45);
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mem-col.silver-luxury::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 25%, #94a3b8 50%, #e2e8f0 75%, #ffffff 100%);
  z-index: -1;
}
.mem-col.silver-luxury:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 42px -4px rgba(100, 116, 139, 0.32), 0 0 26px rgba(203, 213, 225, 0.6);
}

.silver-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #334155 0%, #475569 35%, #64748b 70%, #94a3b8 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 4px 8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(71, 85, 105, 0.3);
}

.silver-header-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 12px;
}
.silver-icon-wrap {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 60%, #475569 100%);
  border: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(71, 85, 105, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.25);
}
.svg-silver-3d {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 5px rgba(203, 213, 225, 0.7));
}

.mem-badge.silver-luxury-badge {
  background: linear-gradient(135deg, #475569 0%, #64748b 45%, #94a3b8 100%) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  letter-spacing: 0.04em !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
  box-shadow: 0 3px 8px rgba(100, 116, 139, 0.3) !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}
.silver-sub-tag {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

.mem-price.silver-price {
  font-size: 20px;
  font-weight: 900;
  color: #1e293b;
  border-bottom: 1.5px dashed #cbd5e1;
  padding-bottom: 10px;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.silver-price .sil-currency {
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, #0f172a 0%, #334155 50%, #64748b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.silver-price .sil-unit {
  font-size: 14px;
  font-weight: 800;
  color: #64748b;
}
.silver-price .sil-usd-tag {
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  color: #334155;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  margin-left: auto;
}

.mem-list.silver-list li {
  color: #1e293b;
  font-size: 12.8px;
  margin-bottom: 8px;
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}
.mem-list.silver-list li::before {
  content: "";
  display: none;
}
.sil-bullet {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 12px;
  filter: drop-shadow(0 1px 2px rgba(100, 116, 139, 0.4));
}
.mem-list.silver-list li b {
  color: #1e293b;
  font-weight: 800;
}

.btn-upgrade-silver {
  background: linear-gradient(135deg, #1e293b 0%, #334155 35%, #475569 70%, #64748b 100%) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  padding: 12px 18px !important;
  border-radius: 10px !important;
  border: none !important;
  box-shadow: 0 6px 18px rgba(71, 85, 105, 0.35), 0 0 10px rgba(203, 213, 225, 0.4) !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-upgrade-silver:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(71, 85, 105, 0.45), 0 0 16px rgba(203, 213, 225, 0.6) !important;
}
.btn-upgrade-silver::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-25deg);
  animation: silverShimmerSweep 3.2s infinite ease-in-out;
}
@keyframes silverShimmerSweep {
  0% { left: -100%; }
  35%, 100% { left: 200%; }
}

/* ================= KHUNG GÓI VÀNG ÓNG ÁNH 24K (GOLD LUXURY) ================= */
.mem-col.gold-luxury {
  position: relative;
  border-radius: 16px;
  padding: 24px 18px 20px;
  background: radial-gradient(circle at 85% 12%, rgba(253, 224, 71, 0.25) 0%, transparent 50%),
              radial-gradient(circle at 15% 88%, rgba(254, 240, 138, 0.35) 0%, transparent 50%),
              linear-gradient(165deg, #fffdf5 0%, #fefce8 35%, #fef9c3 75%, #fef08a 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 12px 36px -4px rgba(202, 138, 4, 0.28), 0 0 22px rgba(250, 204, 21, 0.4);
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mem-col.gold-luxury::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fef08a 0%, #facc15 25%, #eab308 50%, #ca8a04 75%, #fef08a 100%);
  z-index: -1;
}
.mem-col.gold-luxury:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 46px -4px rgba(202, 138, 4, 0.38), 0 0 28px rgba(250, 204, 21, 0.55);
}

.gold-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #92400e 0%, #b45309 30%, #d97706 60%, #eab308 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 4px 8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.35);
}

.gold-header-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 12px;
}
.gold-icon-wrap {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #451a03 0%, #78350f 60%, #92400e 100%);
  border: 1.5px solid #fde047;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.35), inset 0 0 10px rgba(250, 204, 21, 0.3);
}
.svg-gold-3d {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 5px rgba(250, 204, 21, 0.7));
}

.mem-badge.gold-luxury-badge {
  background: linear-gradient(135deg, #b45309 0%, #d97706 40%, #eab308 80%, #facc15 100%) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  letter-spacing: 0.04em !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.35) !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}
.gold-sub-tag {
  font-size: 11px;
  font-weight: 700;
  color: #92400e;
}

.mem-price.gold-price {
  font-size: 20px;
  font-weight: 900;
  color: #78350f;
  border-bottom: 1.5px dashed #fde047;
  padding-bottom: 10px;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.gold-price .gld-currency {
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, #78350f 0%, #b45309 45%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gold-price .gld-unit {
  font-size: 14px;
  font-weight: 800;
  color: #92400e;
}
.gold-price .gld-usd-tag {
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, #fef9c3, #fef08a);
  color: #854d0e;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #facc15;
  margin-left: auto;
}

.mem-list.gold-list li {
  color: #1e293b;
  font-size: 12.8px;
  margin-bottom: 8px;
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}
.mem-list.gold-list li::before {
  content: "";
  display: none;
}
.gld-bullet {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 12px;
  filter: drop-shadow(0 1px 2px rgba(217, 119, 6, 0.4));
}
.mem-list.gold-list li b {
  color: #92400e;
  font-weight: 800;
}

.btn-upgrade-gold {
  background: linear-gradient(135deg, #92400e 0%, #b45309 30%, #d97706 65%, #eab308 100%) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  padding: 12px 18px !important;
  border-radius: 10px !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4), 0 0 12px rgba(250, 204, 21, 0.35) !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-upgrade-gold:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 26px rgba(217, 119, 6, 0.5), 0 0 18px rgba(250, 204, 21, 0.5) !important;
}
.btn-upgrade-gold::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-25deg);
  animation: goldShimmerSweep 3.2s infinite ease-in-out;
}
@keyframes goldShimmerSweep {
  0% { left: -100%; }
  35%, 100% { left: 200%; }
}

/* ================= KHUNG GÓI KIM CƯƠNG ĐẲNG CẤP HOÀNG GIA (LUXURY DIAMOND) ================= */
.mem-col.diamond-luxury {
  position: relative;
  border-radius: 16px;
  padding: 24px 18px 20px;
  background: radial-gradient(circle at 85% 12%, rgba(192, 132, 252, 0.18) 0%, transparent 50%),
              radial-gradient(circle at 15% 88%, rgba(56, 189, 248, 0.18) 0%, transparent 50%),
              linear-gradient(165deg, #f8faff 0%, #f1f5fd 35%, #f5f3ff 75%, #faf5ff 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 14px 40px -6px rgba(99, 102, 241, 0.28), 0 0 22px rgba(168, 85, 247, 0.22);
  transition: all 0.3s ease;
  overflow: hidden;
}
.mem-col.diamond-luxury::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 25%, #c084fc 50%, #f472b6 75%, #06b6d4 100%);
  z-index: -1;
}
.mem-col.diamond-luxury:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px -4px rgba(99, 102, 241, 0.38), 0 0 28px rgba(168, 85, 247, 0.32);
}

/* Ribbon vương miện trên cùng */
.diamond-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #0284c7 0%, #6366f1 35%, #9333ea 70%, #ec4899 100%);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 4px 8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}
.diamond-ribbon .ribbon-sparkle {
  font-size: 11px;
  animation: sparkleTwinkle 1.8s infinite ease-in-out alternate;
}
@keyframes sparkleTwinkle {
  0% { opacity: 0.6; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.15) rotate(10deg); }
}

/* Header box chứa icon 3D và badge */
.diamond-header-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 12px;
}
.diamond-icon-wrap {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #312e81 100%);
  border: 1.5px solid #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35), inset 0 0 10px rgba(56, 189, 248, 0.2);
}
.svg-diamond-3d {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 6px rgba(168, 85, 247, 0.6));
}

/* Badge Kim Cương Thượng Hạng */
.mem-badge.diamond-luxury-badge {
  background: linear-gradient(135deg, #0284c7 0%, #6366f1 35%, #8b5cf6 70%, #d946ef 100%) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  letter-spacing: 0.04em !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4) !important;
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.35) !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}
.mem-sub-tag {
  font-size: 11px;
  font-weight: 700;
  color: #6d28d9;
  letter-spacing: 0.02em;
}

/* Giá Kim Cương */
.mem-price.diamond-price {
  font-size: 20px;
  font-weight: 900;
  color: #1e1b4b;
  border-bottom: 1.5px dashed #c084fc;
  padding-bottom: 10px;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.diamond-price .dia-currency {
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, #0369a1 0%, #4338ca 40%, #7e22ce 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.diamond-price .dia-unit {
  font-size: 14px;
  font-weight: 800;
  color: #4b5563;
}
.diamond-price .dia-usd-tag {
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, #ede9fe, #e0e7ff);
  color: #6d28d9;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #c4b5fd;
  margin-left: auto;
}

/* Danh sách đặc quyền Kim Cương */
.mem-list.diamond-list li {
  color: #1e293b;
  font-size: 12.8px;
  margin-bottom: 8px;
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}
.mem-list.diamond-list li::before {
  content: "";
  display: none;
}
.dia-bullet {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 12px;
  filter: drop-shadow(0 1px 2px rgba(147, 51, 234, 0.4));
}
.mem-list.diamond-list li b {
  color: #4338ca;
  font-weight: 800;
}

/* Nút nâng cấp thành viên Kim Cương lấp lánh (Diamond CTA Button) */
.btn-upgrade-diamond {
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 30%, #7c3aed 65%, #c026d3 100%) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  padding: 12px 18px !important;
  border-radius: 10px !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.42), 0 0 12px rgba(56, 189, 248, 0.3) !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-upgrade-diamond:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 26px rgba(124, 58, 237, 0.55), 0 0 18px rgba(56, 189, 248, 0.45) !important;
}
.btn-upgrade-diamond::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-25deg);
  animation: diamondShimmerSweep 3s infinite ease-in-out;
}
@keyframes diamondShimmerSweep {
  0% { left: -100%; }
  35%, 100% { left: 200%; }
}

/* Quick navigation pills on CTV Dashboard */
.dash-quick-nav{display:flex;gap:10px;margin-bottom:18px;overflow-x:auto;padding-bottom:4px}
.dnav-pill{display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border-radius:999px;font-size:13px;font-weight:700;color:var(--navy);background:#fff;border:1.5px solid #cbd5e1;white-space:nowrap;box-shadow:0 2px 6px rgba(0,0,0,.04);text-decoration:none;transition:all .2s ease}
.dnav-pill:hover,.dnav-pill.active{background:var(--navy);color:#e8c85c;border-color:var(--navy);box-shadow:0 4px 12px rgba(13,27,51,.25)}

/* Dynamic QR Controls & Copiers */
.btn-qr-tier{padding:6px 14px;font-size:12.5px;border-radius:8px;border:1.5px solid #cbd5e1;background:#fff;cursor:pointer;font-weight:700;color:#334155;transition:all .18s ease;display:inline-flex;align-items:center;gap:6px;user-select:none}
.btn-qr-tier:hover{border-color:#0f8a52;color:#0f8a52;background:#f0fdf4}
.btn-qr-tier.active{border-color:#0f8a52;background:#ecfdf5;color:#065f46;box-shadow:0 2px 8px rgba(15,138,82,.18)}
.btn-modal-tab{flex:1;min-width:115px;padding:8px 10px;font-size:12.5px;font-weight:700;border-radius:8px;border:1.5px solid #cbd5e1;background:#fff;color:#334155;cursor:pointer;transition:all .18s ease;text-align:center;user-select:none}
.btn-modal-tab:hover{border-color:#0f8a52;color:#0f8a52}
.btn-modal-tab.active{border-color:#0f8a52;background:#0f8a52;color:#fff;box-shadow:0 3px 10px rgba(15,138,82,.25)}
.btn-modal-tab.tab-dia-luxury {
  border-color: #c084fc;
  color: #6d28d9;
}
.btn-modal-tab.tab-dia-luxury:hover {
  background: #faf5ff;
  border-color: #a855f7;
  color: #581c87;
}
.btn-modal-tab.tab-dia-luxury.active {
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 35%, #7c3aed 70%, #c026d3 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4) !important;
}
.btn-copy-mini{font-size:11.5px;font-weight:700;padding:3px 9px;background:#e2e8f0;color:#1e293b;border:none;border-radius:5px;cursor:pointer;transition:all .15s ease;display:inline-flex;align-items:center;gap:4px;user-select:none}
.btn-copy-mini:hover{background:#0f8a52;color:#fff}

/* Suggest Upgrade Buttons & Benefit Links next to Membership Badge */
.btn-head-upgrade {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.4;
  border: none;
  outline: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.btn-head-upgrade:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.btn-head-upgrade.suggest-free {
  background: linear-gradient(135deg, #0d1b33 0%, #1e3a8a 100%);
  color: #f8fafc;
  border: 1.5px solid #60a5fa;
}
.btn-head-upgrade.suggest-free:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  border-color: #93c5fd;
}
.btn-head-upgrade.suggest-silver {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  color: #ffffff;
  border: 1.5px solid #fde68a;
}
.btn-head-upgrade.suggest-silver:hover {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  color: #fff;
}
.btn-head-upgrade.suggest-gold {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #ffffff;
  border: 1.5px solid #bfdbfe;
}
.btn-head-upgrade.suggest-gold:hover {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}
.badge-discount-chip {
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-left: 2px;
}
.head-benefit-link {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f8a52;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.head-benefit-link:hover {
  color: #059669;
  text-decoration: none;
  transform: translateX(2px);
}
.badge-max-tier {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1.5px solid #93c5fd;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}

/* Call to action membership banner */
.cta-mem-banner {
  background: linear-gradient(135deg, #0d1b33 0%, #1e293b 100%);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  border: 1.5px solid #334155;
  box-shadow: 0 4px 20px rgba(13,27,51,0.12);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.cta-mem-banner::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(232,200,92,0.18) 0%, rgba(232,200,92,0) 70%);
  pointer-events: none;
}
.cta-mem-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #e8c85c;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cta-mem-desc {
  font-size: 13px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.5;
}
.cta-mem-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-cta-view {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-cta-view:hover {
  background: rgba(255,255,255,0.2);
  color: #e8c85c;
}
.btn-cta-up {
  background: linear-gradient(135deg, #0f8a52, #10b981);
  color: #fff;
  border: none;
  font-size: 12.5px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16,185,129,0.35);
  transition: all 0.2s ease;
}
.btn-cta-up:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16,185,129,0.45);
}

/* Glow highlight effect when jumping to membershipCard */
@keyframes glowMembership {
  0% { box-shadow: 0 0 0 0 rgba(232, 200, 92, 0.7); border-color: #e8c85c; }
  50% { box-shadow: 0 0 24px 6px rgba(232, 200, 92, 0.55); border-color: #f59e0b; }
  100% { box-shadow: 0 0 0 0 rgba(232, 200, 92, 0); }
}
.highlight-membership-card {
  animation: glowMembership 1.8s ease-in-out 2;
  border-color: #e8c85c !important;
}

/* ================= RESPONSIVE ĐIỆN THOẠI & MENU HEADER 2 TẦNG CHUYÊN NGHIỆP ================= */
@media (max-width: 860px) {
  .dhead-desktop-links {
    display: none !important; /* Ẩn các nút dài, thay bằng Dropdown trên Header */
  }
}

@media (max-width: 768px) {
  .dhead {
    padding: 8px 0 10px !important;
  }
  .dw {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto auto !important;
    row-gap: 8px !important;
    column-gap: 10px !important;
    align-items: center !important;
    padding: 0 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HÀNG 1 - BÊN TRÁI: LOGO CÔNG TY NWS */
  .dhead-left {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-self: start !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  .dbrand {
    display: inline-flex !important;
    align-items: center !important;
  }
  .dbrand img {
    height: 32px !important;
    width: auto !important;
    max-width: 140px !important;
    display: block !important;
    object-fit: contain !important;
  }

  /* HÀNG 1 - BÊN PHẢI: NÚT NGÔN NGỮ + NÚT ĐĂNG XUẤT */
  .dha {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-self: end !important;
    gap: 8px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }
  .dwho-pill {
    display: none !important; /* Đã có Tên CTV ở thẻ chào mừng bên dưới */
  }
  .dout {
    padding: 6px 13px !important;
    font-size: 12px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    gap: 5px !important;
  }
  .dout svg {
    width: 13px !important;
    height: 13px !important;
  }

  /* HÀNG 2 - TRẢI DÀI 100% BỀ NGANG RIÊNG BIỆT: MENU DANH MỤC CTV */
  .dhead-nav {
    grid-column: 1 / span 2 !important;
    grid-row: 2 !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  .dnav-dropdown-wrap {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  .dnav-select {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    padding: 9px 36px 9px 14px !important;
    border-radius: 10px !important;
    border: 1.5px solid rgba(232,200,92,.75) !important;
    background: linear-gradient(135deg, rgba(232,200,92,.18) 0%, rgba(13,27,51,.95) 100%) !important;
    color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23e8c85c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px 12px !important;
    box-sizing: border-box !important;
    box-shadow: 0 3px 12px rgba(0,0,0,.35) !important;
  }
  .dhead-desktop-links {
    display: none !important;
  }

  /* Ẩn thanh pill nav cuộn ngang vì đã có dropdown trên header */
  .dash-quick-nav {
    display: none !important;
  }

  /* Ổn định layout, tránh giật di chuyển khi tải */
  .dmain {
    padding: 14px 10px 80px !important;
  }
  .dcard, [id].dcard, [id].cta-mem-banner, [id].zalo-dash-card, [id].dtop,
  #careerSection, #companyBankSection, #trainingSectionCard, #officialDocCard,
  #fullPolicyCard, #membershipCard, #treeSectionCard, #pwdCard, #tierBonusCard,
  #cccdCard, #bankInfoCard, #payoutCard, #affLinksCard, #commHistoryCard {
    scroll-margin-top: 105px !important;
  }
  .dtop {
    padding: 16px 14px !important;
    border-radius: 14px !important;
  }
  .dh {
    font-size: 19px !important;
    line-height: 1.25 !important;
  }
  .ds {
    font-size: 12.5px !important;
  }
  .cta-mem-banner {
    padding: 14px 14px !important;
    border-radius: 12px !important;
  }
  .cta-mem-title {
    font-size: 14px !important;
  }
  .cta-mem-desc {
    font-size: 12.5px !important;
  }
  .cta-mem-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }
  .btn-cta-view, .btn-cta-up {
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 380px) {
  .dw {
    padding: 0 10px !important;
  }
  .dbrand img {
    height: 28px !important;
    max-width: 130px !important;
  }
  .dout {
    padding: 5px 10px !important;
    font-size: 11.5px !important;
  }
  .dnav-select {
    font-size: 12px !important;
    padding: 7px 30px 7px 11px !important;
  }
}

/* =====================================================================
 * HỢP ĐỒNG CTV MẪU CHUẨN PHÁP LÝ & KÝ SỐ VNPT SMARTCA
 * ===================================================================== */
.contract-modal-wrap {
  max-width: 960px !important;
  width: 96% !important;
  max-height: 94vh !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  border-top: 6px solid #0f8a52 !important;
  background: #ffffff !important;
  box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.45) !important;
}

.contract-modal-header {
  padding: 14px 22px;
  background: #0d1b33;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 2px solid #0f8a52;
}

.contract-modal-body {
  padding: 24px;
  overflow-y: auto;
  background: #f8fafc;
  flex: 1;
}

.contract-paper {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  font-family: 'Times New Roman', Times, serif, 'Be Vietnam Pro', sans-serif;
  color: #1e293b;
  line-height: 1.7;
  font-size: 15px;
}

.contract-country {
  text-align: center;
  margin-bottom: 22px;
}
.contract-country .c-title1 {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  color: #0d1b33;
  letter-spacing: 0.05em;
}
.contract-country .c-title2 {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  margin-top: 3px;
}
.contract-country .c-line {
  width: 140px;
  height: 1.5px;
  background: #0d1b33;
  margin: 6px auto 14px;
}
.contract-doc-num {
  font-size: 13.5px;
  color: #64748b;
  font-style: italic;
  margin-top: 4px;
}

.contract-main-title {
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  color: #0d1b33;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 18px 0 6px;
}
.contract-sub-title {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #0f8a52;
  margin-bottom: 22px;
  font-style: italic;
}

.contract-legal-preamble {
  font-size: 14px;
  color: #475569;
  font-style: italic;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 3px solid #cbd5e1;
  line-height: 1.65;
}

.contract-party-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #0d1b33;
  text-transform: uppercase;
  margin: 18px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contract-grid-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px 16px;
  font-size: 14.5px;
  margin-bottom: 14px;
}
.contract-grid-info div {
  line-height: 1.6;
}

.contract-clause-title {
  font-size: 15px;
  font-weight: 800;
  color: #065f46;
  margin: 18px 0 6px;
}

.contract-seal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1.5px dashed #cbd5e1;
}

.contract-seal-col {
  text-align: center;
}
.contract-seal-col .seal-role {
  font-size: 14.5px;
  font-weight: 800;
  color: #0d1b33;
  text-transform: uppercase;
}
.contract-seal-col .seal-sub {
  font-size: 13px;
  color: #64748b;
  font-style: italic;
  margin: 3px 0 12px;
}

.vnpt-smartca-stamp-box {
  border: 2px dashed #059669;
  background: #f0fdf4;
  border-radius: 12px;
  padding: 12px 14px;
  color: #065f46;
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
  margin: 12px auto;
  max-width: 320px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}

.ctv-sign-stamp-box {
  border: 2px dashed #2563eb;
  background: #eff6ff;
  border-radius: 12px;
  padding: 12px 14px;
  color: #1e40af;
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
  margin: 12px auto;
  max-width: 320px;
}

.ctv-sign-stamp-box.signed {
  border-color: #059669;
  background: #ecfdf5;
  color: #065f46;
}

.contract-modal-footer {
  padding: 12px 22px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

@media print {
  body * {
    visibility: hidden !important;
  }
  #contractModal,
  #contractModal * {
    visibility: visible !important;
  }
  #contractModal {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    background: transparent !important;
    padding: 0 !important;
  }
  .contract-modal-wrap {
    max-width: 100% !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
  }
  .contract-modal-header,
  .contract-modal-footer,
  .contract-notice-box {
    display: none !important;
  }
  .contract-paper {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}

/* ================= BẢNG THÔNG BÁO CHÀO MỪNG CTV - VÀNG ÁNH KIM HOÀNG GIA ================= */
#welcomeCtvModal #wcCtvName {
  font-size: 18.5px !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
  display: inline-block !important;
  color: #ffd700 !important;
  background: linear-gradient(135deg, #ffffff 0%, #fff0a8 20%, #ffd700 45%, #f59e0b 75%, #e8c85c 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 2px 8px rgba(232,200,92,0.65)) drop-shadow(0 0 16px rgba(245,158,11,0.45)) !important;
  text-transform: uppercase !important;
}

/* ================= BẢNG KẾ HOẠCH THU NHẬP MONG MUỐN & KPI CTV ================= */
.ip-card {
  border: 2px solid #c9a227;
  border-top: 6px solid #0d1b33;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf7 100%);
  position: relative;
}
.ip-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  border-bottom: 1.5px solid #e2e8f0;
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.ip-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #fef3c7, #fffbeb);
  color: #92400e;
  border: 1px solid #fcd34d;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.ip-head h2 {
  font-family: var(--fd);
  font-size: clamp(21px, 3vw, 26px);
  color: var(--navy);
  margin: 0 0 6px;
}
.ip-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ip-step-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 12px;
}
.ip-step-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--gold2);
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}
.ip-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 900px) {
  .ip-form-grid { grid-template-columns: 1fr; }
}
.ip-input-box {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.ip-input-box:focus-within {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, .14);
}
.ip-input-box label {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.ip-money-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.ip-money-wrap input {
  width: 100%;
  padding: 11px 58px 11px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  background: #fff;
  outline: none;
  font-family: var(--fb);
}
.ip-money-wrap input:focus {
  border-color: var(--gold);
}
.ip-currency-tag {
  position: absolute;
  right: 10px;
  font-size: 12px;
  font-weight: 800;
  color: #0f8a52;
  background: #ecfdf5;
  padding: 3px 8px;
  border-radius: 6px;
  pointer-events: none;
}
.ip-input-box select {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  outline: none;
}
.ip-usd-hint {
  margin-top: 7px;
  font-size: 12.5px;
  color: #475569;
  font-weight: 600;
}
.ip-usd-hint b {
  color: #0f8a52;
}
.ip-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
}
.ip-presets-lbl {
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  margin-right: 4px;
}
.ip-preset-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
}
.ip-preset-btn:hover {
  border-color: var(--gold);
  background: #fffbeb;
}
.ip-preset-btn.active {
  background: var(--navy);
  color: var(--gold2);
  border-color: var(--navy);
}

/* 3 lựa chọn định hướng giới thiệu */
.ip-ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
@media (max-width: 860px) {
  .ip-ref-grid { grid-template-columns: 1fr; }
}
.ip-ref-card {
  position: relative;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ip-ref-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(13, 27, 51, .2);
}
.ip-ref-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ip-ref-card.selected {
  border-color: #0f8a52;
  background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 100%);
  box-shadow: 0 10px 24px -12px rgba(15, 138, 82, .35);
}
.ip-ref-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ip-ref-ico {
  font-size: 22px;
}
.ip-ref-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  text-transform: uppercase;
}
.ip-ref-card.selected .ip-ref-badge {
  background: #0f8a52;
  color: #fff;
}
.ip-ref-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
}
.ip-ref-desc {
  font-size: 12.8px;
  color: #475569;
  line-height: 1.55;
}

/* 3 phương án hệ thống đề xuất */
.ip-opts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media (max-width: 960px) {
  .ip-opts-grid { grid-template-columns: 1fr; }
}
.ip-opt-card {
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all .2s ease;
  position: relative;
}
.ip-opt-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -14px rgba(13, 27, 51, .25);
}
.ip-opt-card.selected {
  border-color: var(--gold);
  background: linear-gradient(180deg, #fffdf4 0%, #ffffff 100%);
  box-shadow: 0 14px 32px -12px rgba(201, 162, 39, .38);
}
.ip-opt-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.ip-opt-tag.t1 { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.ip-opt-tag.t2 { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.ip-opt-tag.t3 { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.ip-opt-name {
  font-family: var(--fd);
  font-size: 17.5px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}
.ip-opt-sub {
  font-size: 12.8px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 10px;
}
.ip-opt-metrics {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.8px;
  line-height: 1.65;
  color: #334155;
}
.ip-opt-metrics div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px dashed #e2e8f0;
  padding: 3px 0;
}
.ip-opt-metrics div:last-child {
  border-bottom: none;
}
.ip-opt-metrics b {
  color: var(--navy);
  text-align: right;
}
.ip-opt-btn {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 800;
  background: #f1f5f9;
  color: var(--navy);
  border: 1.5px solid #cbd5e1;
  transition: all .15s;
}
.ip-opt-card.selected .ip-opt-btn {
  background: linear-gradient(135deg, #0d1b33, #172a4d);
  color: #fde047;
  border-color: #0d1b33;
}

/* Bảng Kế Hoạch Thu Nhập Mong Muốn (KPI Table) */
.ip-plan-box {
  background: #ffffff;
  border: 2px solid #0d1b33;
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 12px 32px -18px rgba(13, 27, 51, .32);
}
.ip-plan-banner {
  background: linear-gradient(135deg, #0d1b33 0%, #172a4d 65%, #0f8a52 100%);
  color: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.ip-plan-banner h3 {
  font-family: var(--fd);
  font-size: 20px;
  color: #fde047;
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.ip-plan-banner p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .88);
}
.ip-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
@media (max-width: 820px) {
  .ip-kpi-strip { grid-template-columns: repeat(2, 1fr); }
}
.ip-kpi-tile {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--gold);
  border-radius: 11px;
  padding: 12px 13px;
}
.ip-kpi-tile span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}
.ip-kpi-tile strong {
  display: block;
  font-family: var(--fd);
  font-size: 17px;
  color: var(--navy);
  line-height: 1.2;
}
.ip-kpi-tile small {
  display: block;
  font-size: 11.5px;
  color: #0f8a52;
  font-weight: 700;
  margin-top: 3px;
}
.ip-kpi-table td:last-child {
  text-align: left !important;
  font-weight: 600 !important;
  color: #334155 !important;
}
.ip-kpi-table tr.ip-row-highlight td {
  background: #f0fdf4;
  color: #065f46;
  font-weight: 800;
}
.ip-kpi-prog {
  height: 7px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 5px;
  min-width: 80px;
}
.ip-kpi-prog > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0f8a52, #c9a227);
  border-radius: 999px;
}
.ip-plan-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #cbd5e1;
}
.ip-note-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
.ip-note-row input {
  flex: 1;
  min-width: 240px;
  padding: 11px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13.5px;
  background: #f8fafc;
}
.ip-note-row input:focus {
  border-color: var(--gold);
  background: #fff;
  outline: none;
}
.ip-btn-save {
  background: linear-gradient(135deg, #0f8a52, #059669);
  color: #fff;
  padding: 12px 22px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 6px 18px -6px rgba(15, 138, 82, .5);
  transition: transform .15s;
}
.ip-btn-save:hover { transform: translateY(-1px); }
.ip-btn-print {
  background: linear-gradient(135deg, #0d1b33, #1e3a8a);
  color: #fde047;
  padding: 12px 20px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 800;
}
.ip-btn-link {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 12.8px;
  font-weight: 700;
}

/* ================= DANH SÁCH KH TIỀM NĂNG & ĐO LƯỜNG 10-5-3-1 ================= */
.pros-card {
  border: 2px solid #0f8a52;
  box-shadow: 0 16px 45px -12px rgba(15, 138, 82, .18);
  border-radius: 18px;
  padding: 26px;
  background: #ffffff;
  margin-bottom: 24px;
}
.pros-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 2px solid #ecfdf5;
  margin-bottom: 22px;
}
.pros-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.pros-head h2 {
  font-size: 24px;
  color: #064e3b;
  margin: 0 0 6px;
  font-weight: 900;
}
.pros-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* BANNER CÔNG THỨC 10 - 5 - 3 - 1 */
.p10531-banner {
  background: linear-gradient(135deg, #0d1b33 0%, #064e3b 60%, #022c22 100%);
  border-radius: 16px;
  padding: 24px 22px;
  color: #fff;
  box-shadow: 0 12px 36px -8px rgba(6, 78, 59, .4);
  margin-bottom: 24px;
  border: 1.5px solid #10b981;
}
.p10531-top {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 20px;
}
.p10531-badge {
  display: inline-block;
  background: rgba(253, 224, 71, .18);
  border: 1.5px solid #fde047;
  color: #fde047;
  font-size: 11.5px;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.p10531-title {
  font-size: 28px;
  color: #fef08a;
  margin: 0 0 8px;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
  letter-spacing: .04em;
}
.p10531-sub {
  font-size: 13.5px;
  color: #d1fae5;
  margin: 0;
  line-height: 1.55;
}
.p10531-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.p10531-step-card {
  flex: 1;
  min-width: 190px;
  max-width: 230px;
  background: rgba(255, 255, 255, .08);
  border: 1.5px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  transition: transform .2s, border-color .2s;
}
.p10531-step-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, .14);
}
.p10531-step-card.step-10 { border-color: #38bdf8; }
.p10531-step-card.step-5  { border-color: #60a5fa; }
.p10531-step-card.step-3  { border-color: #f59e0b; }
.p10531-step-card.step-1  { border-color: #fde047; background: rgba(253, 224, 71, .15); }

.p10531-num {
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}
.step-10 .p10531-num { color: #38bdf8; }
.step-5  .p10531-num { color: #93c5fd; }
.step-3  .p10531-num { color: #fcd34d; }
.step-1  .p10531-num { color: #fde047; text-shadow: 0 0 12px rgba(253, 224, 71, .6); }

.p10531-step-icon { font-size: 24px; margin-bottom: 6px; }
.p10531-step-name {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  letter-spacing: .02em;
  margin-bottom: 6px;
}
.p10531-step-desc {
  font-size: 11.5px;
  color: #e2e8f0;
  line-height: 1.45;
  min-height: 48px;
}
.p10531-step-foot {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 10.5px;
  font-weight: 800;
  color: #a7f3d0;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.p10531-step-arrow {
  color: #fde047;
  font-size: 20px;
  font-weight: 900;
  opacity: .8;
}
.p10531-quote {
  background: rgba(0, 0, 0, .25);
  border-left: 4px solid #fde047;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #f1f5f9;
  line-height: 1.5;
  margin-top: 16px;
}

/* BẢNG ĐO LƯỜNG KẾT NỐI HÀNG NGÀY */
.conn-tracker-box {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 24px;
}
.conn-tracker-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.conn-tracker-eyebrow {
  font-size: 11px;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.conn-tracker-title {
  font-size: 18px;
  color: #0d1b33;
  font-weight: 900;
  margin: 0;
}
.conn-date-picker-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
}
.conn-counters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.conn-counter-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.03);
  transition: border-color .15s, box-shadow .15s;
}
.conn-counter-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.conn-counter-card.card-step-10 { border-top: 4px solid #0284c7; }
.conn-counter-card.card-step-5  { border-top: 4px solid #2563eb; }
.conn-counter-card.card-step-3  { border-top: 4px solid #d97706; }
.conn-counter-card.card-step-1  { border-top: 4px solid #059669; background: #f0fdf4; }

.conn-counter-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.conn-counter-lbl {
  font-size: 13px;
  font-weight: 800;
  color: #0d1b33;
}
.conn-counter-target {
  font-size: 11.5px;
  color: #64748b;
}
.conn-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 6px;
}
.conn-step-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1.5px solid #cbd5e1;
  background: #f1f5f9;
  color: #0d1b33;
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s;
}
.conn-step-btn:hover {
  background: #0d1b33;
  color: #fde047;
  border-color: #0d1b33;
}
.conn-num-inp {
  width: 72px;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  color: #0d1b33;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 4px;
}
.conn-counter-hint {
  font-size: 11px;
  color: #64748b;
  text-align: center;
}

.conn-progress-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.conn-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 6px;
}
.conn-status-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
}
.conn-status-tag.ok {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}
.conn-status-tag.warn {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.conn-progress-bar-wrap {
  height: 10px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}
.conn-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 6px;
  transition: width .3s ease;
}
.conn-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.conn-history-wrap {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #cbd5e1;
}

/* DANH SÁCH KHÁCH HÀNG TIỀM NĂNG */
.pros-list-box {
  margin-top: 24px;
}
.pros-list-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.pros-toolbar-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-pros-action {
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 12.8px;
  font-weight: 800;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s;
}
.btn-pros-action:hover { transform: translateY(-1px); }
.btn-add-man {
  background: linear-gradient(135deg, #0f8a52, #059669);
  color: #fff;
  border-color: #0f8a52;
}
.btn-import-smart {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #93c5fd;
}
.btn-import-vcf {
  background: #faf5ff;
  color: #6d28d9;
  border-color: #ddd6fe;
}
.btn-export-csv {
  background: #f8fafc;
  color: #334155;
  border-color: #cbd5e1;
}

.pros-stats-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.pros-stat-pill {
  flex: 1;
  min-width: 130px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
}
.pros-stat-pill:hover,
.pros-stat-pill.active {
  border-color: #0f8a52;
  background: #ecfdf5;
}
.pros-stat-num {
  font-size: 20px;
  font-weight: 900;
  color: #0d1b33;
  display: block;
}
.pros-stat-lbl {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 700;
}
.pros-stat-pill.step-10.active { border-color: #0284c7; background: #f0f9ff; }
.pros-stat-pill.step-5.active  { border-color: #2563eb; background: #eff6ff; }
.pros-stat-pill.step-3.active  { border-color: #d97706; background: #fffbeb; }
.pros-stat-pill.step-1.active  { border-color: #059669; background: #f0fdf4; }

.pros-filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}
.pros-search-box {
  flex: 1;
  min-width: 240px;
}
.pros-search-box input {
  width: 100%;
  padding: 9px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 9px;
  font-size: 13.5px;
}
.pros-filter-selects {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pros-filter-selects select {
  padding: 9px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 9px;
  font-size: 13px;
  background: #fff;
}

/* GIAI ĐOẠN BADGES */
.stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}
.stage-10  { background: #e0f2fe; color: #0369a1; border: 1px solid #7dd3fc; }
.stage-5   { background: #e0e7ff; color: #3730a3; border: 1px solid #a5b4fc; }
.stage-3   { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.stage-1   { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.stage-won { background: #fef08a; color: #713f12; border: 1.5px solid #eab308; }

.pros-row-btn {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  border: 1px solid #cbd5e1;
  background: #fff;
  cursor: pointer;
  margin: 0 2px;
}
.pros-row-btn:hover { background: #f1f5f9; }
.pros-row-btn.del:hover { background: #fef2f2; border-color: #fca5a5; color: #dc2626; }





