/* Cửa sổ "Top up credits or change your plan" (credits-modal.js). Dùng cả ở trang chủ lẫn trong app; màu theo bảng Lynx: trắng, Cosmic #23212C, không vàng hay cam. */
.cr-ov{position:fixed;inset:0;z-index:9000;display:none;align-items:center;justify-content:center;padding:18px 16px;overflow-y:auto;background-color:rgba(35,33,44,.5);}
.cr-box{position:relative;width:min(760px,100%);box-sizing:border-box;margin:auto;padding:30px 28px 24px;border-radius:22px;background-color:#fff;color:#23212C;box-shadow:0 30px 80px rgba(35,33,44,.35);font-family:inherit;}
.cr-close{position:absolute;top:14px;right:14px;width:36px;height:36px;border:0;border-radius:50%;background-color:#f3f2f7;color:#23212C;font-size:15px;cursor:pointer;}
.cr-box h3{margin:0 40px 18px 0;font-size:clamp(21px,3vw,27px);line-height:1.2;letter-spacing:-.01em;color:#23212C;}
.cr-sec + .cr-sec{margin-top:24px;padding-top:22px;border-top:1px solid rgba(35,33,44,.1);}
.cr-box h4{margin:0 0 4px;font-size:16px;color:#23212C;}
.cr-sub,.cr-fine{margin:0 0 14px;font-size:13.5px;line-height:1.5;color:#5d5a6a;}
.cr-fine{margin:14px 0 0;font-size:12.5px;}
.cr-topups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.cr-top{display:flex;flex-direction:column;align-items:center;gap:3px;padding:16px 10px 14px;border:1px solid rgba(35,33,44,.16);border-radius:16px;background-color:#fff;color:#23212C;font:inherit;cursor:pointer;transition:background-color .25s,border-color .25s,box-shadow .25s,color .25s;}
.cr-top:hover,.cr-top:focus-visible{background-color:#0d111b;border-color:#0d111b;color:#fff;box-shadow:0 10px 26px rgba(35,33,44,.25);}
.cr-big{font-size:28px;font-weight:800;line-height:1.1;}
.cr-big small{font-size:14px;font-weight:500;opacity:.7;}
.cr-note{font-size:13px;opacity:.7;}
.cr-price{margin-top:6px;padding:6px 16px;border-radius:999px;background-color:#23212C;color:#fff;font-size:14px;font-weight:800;}
.cr-top:hover .cr-price,.cr-top:focus-visible .cr-price{background-color:#fff;color:#23212C;}
.cr-toggle{display:inline-flex;gap:4px;margin:10px 0 14px;padding:4px;border-radius:999px;background-color:#f3f2f7;}
.cr-toggle button{padding:7px 16px;border:0;border-radius:999px;background:transparent;color:#23212C;font:inherit;font-size:13.5px;font-weight:700;cursor:pointer;}
.cr-toggle button.on{background-color:#23212C;color:#fff;}
.cr-toggle em{margin-left:4px;font-style:normal;font-size:11px;font-weight:800;opacity:.85;}
.cr-plans{display:grid;gap:10px;}
.cr-plan{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.5fr) auto;align-items:center;gap:14px;padding:14px 16px;border:1px solid rgba(35,33,44,.14);border-radius:16px;background-color:#fff;}
.cr-plan.cur{border:2px solid #23212C;}
.cr-plan b{display:block;font-size:16px;}
.cr-plan span{font-size:13px;color:#5d5a6a;}
.cr-pp{font-size:22px;font-weight:800;}
.cr-pp small{display:block;margin-top:1px;font-size:12px;font-weight:500;color:#5d5a6a;}
.cr-plan .btn{white-space:nowrap;}
/* Nền và màu: ưu tiên cao để quy tắc chung của giao diện (làm nền phần tử trong suốt) không ghi đè */
html.theme-clean:not(#a):not(#b):not(#c):not(#d) .cr-ov{background-color:rgba(35,33,44,.5) !important;}
html.theme-clean:not(#a):not(#b):not(#c):not(#d) .cr-box{background-color:#fff !important;color:#23212C !important;-webkit-text-fill-color:#23212C !important;}
html.theme-clean:not(#a):not(#b):not(#c):not(#d) .cr-box :is(h3,h4,b,.cr-pp){color:#23212C !important;-webkit-text-fill-color:#23212C !important;}
html.theme-clean:not(#a):not(#b):not(#c):not(#d) .cr-box :is(.cr-sub,.cr-fine,.cr-plan span,.cr-pp small,.cr-note){color:#5d5a6a !important;-webkit-text-fill-color:#5d5a6a !important;}
html.theme-clean:not(#a):not(#b):not(#c):not(#d) .cr-close{background-color:#f3f2f7 !important;color:#23212C !important;-webkit-text-fill-color:#23212C !important;border:0 !important;}
html.theme-clean:not(#a):not(#b):not(#c):not(#d) .cr-top{background-color:#fff !important;border:1px solid rgba(35,33,44,.16) !important;color:#23212C !important;-webkit-text-fill-color:#23212C !important;border-radius:16px !important;}
html.theme-clean:not(#a):not(#b):not(#c):not(#d) .cr-top :is(.cr-big,.cr-big small,.cr-note){color:inherit !important;-webkit-text-fill-color:currentColor !important;}
html.theme-clean:not(#a):not(#b):not(#c):not(#d) .cr-top:hover,html.theme-clean:not(#a):not(#b):not(#c):not(#d) .cr-top:focus-visible{background-color:#0d111b !important;border-color:#0d111b !important;color:#fff !important;-webkit-text-fill-color:#fff !important;}
html.theme-clean:not(#a):not(#b):not(#c):not(#d) .cr-top .cr-price{background-color:#23212C !important;color:#fff !important;-webkit-text-fill-color:#fff !important;border-radius:999px !important;}
html.theme-clean:not(#a):not(#b):not(#c):not(#d) .cr-top:hover .cr-price,html.theme-clean:not(#a):not(#b):not(#c):not(#d) .cr-top:focus-visible .cr-price{background-color:#fff !important;color:#23212C !important;-webkit-text-fill-color:#23212C !important;}
html.theme-clean:not(#a):not(#b):not(#c):not(#d) .cr-toggle{background-color:#f3f2f7 !important;border-radius:999px !important;}
html.theme-clean:not(#a):not(#b):not(#c):not(#d) .cr-toggle button{background-color:transparent !important;color:#23212C !important;-webkit-text-fill-color:#23212C !important;border:0 !important;border-radius:999px !important;}
html.theme-clean:not(#a):not(#b):not(#c):not(#d) .cr-toggle button.on{background-color:#23212C !important;color:#fff !important;-webkit-text-fill-color:#fff !important;}
html.theme-clean:not(#a):not(#b):not(#c):not(#d) .cr-plan{background-color:#fff !important;border:1px solid rgba(35,33,44,.14) !important;border-radius:16px !important;}
html.theme-clean:not(#a):not(#b):not(#c):not(#d) .cr-plan.cur{border:2px solid #23212C !important;}
@media (max-width:640px){
  .cr-box{padding:26px 16px 20px;}
  .cr-topups{grid-template-columns:1fr;}
  .cr-top{flex-direction:row;justify-content:space-between;padding:12px 16px;}
  .cr-plan{grid-template-columns:1fr;gap:8px;}
  .cr-plan .btn{width:100%;}
}
