:root{
  --nso-main:#008979;
  --nso-main-dark:#00695f;
  --nso-deep:#003d38;
  --nso-deeper:#002f2b;
  --nso-cream:#fff8d8;
  --nso-cream-2:#fff2b6;
  --nso-yellow:#ffd800;
  --nso-text:#015d55;
  --nso-red:#e51b1b;
}
*{box-sizing:border-box}
html,body{min-height:100%}
body.nso-page{
  margin:0;
  font-family:Arial,Roboto,sans-serif;
  font-size:15px;
  color:var(--nso-text);
  background:#0b5f56 url('/img/bg_truonghocninja_like.jpg') center top/cover fixed no-repeat;
}
body.nso-page::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:rgba(0,65,55,.10);
  z-index:-1;
}
a{color:#0074ff;text-decoration:none}
a:hover{text-decoration:none;color:#e45b00}
.nso-wrapper{
  width:min(980px,calc(100% - 22px));
  margin:18px auto 0;
}
.nso-panel{
  overflow:hidden;
  border:4px solid #004742;
  border-radius:12px 12px 0 0;
  background:var(--nso-main);
  box-shadow:0 5px 18px rgba(0,0,0,.35);
}
.nso-header{
  min-height:345px;
  padding:30px 14px 18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  background:linear-gradient(180deg,#079482 0%,#008979 52%,#008979 100%);
}
.nso-logo{display:inline-flex;align-items:center;justify-content:center;min-height:128px;margin-bottom:8px}
.nso-logo img{max-width:230px;max-height:140px;object-fit:contain;filter:drop-shadow(0 3px 3px rgba(0,0,0,.25))}
.nso-auth-row,.nso-download-row{display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:8px}
.nso-user-row{gap:8px}.nso-coin{display:inline-flex;align-items:center;gap:5px;border:2px solid var(--nso-yellow);border-radius:9px;padding:7px 12px;background:#00564f;color:#ffe35a;font-weight:700;box-shadow:0 0 8px rgba(255,216,0,.35)}
.nso-btn{
  position:relative;
  z-index:2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:132px;
  min-height:39px;
  padding:8px 16px;
  border:2px solid var(--nso-yellow)!important;
  border-radius:8px;
  background:linear-gradient(180deg,#007e73 0%,#005f59 100%)!important;
  color:#fff300!important;
  font-weight:800;
  text-shadow:0 1px 1px rgba(0,0,0,.55);
  box-shadow:0 0 9px rgba(255,216,0,.55),inset 0 1px 0 rgba(255,255,255,.18);
  cursor:pointer;
  text-decoration:none!important;
  user-select:none;
}
.nso-btn:hover,.nso-btn.active{background:linear-gradient(180deg,#009d8e 0%,#006c63 100%)!important;color:#fff!important;transform:translateY(-1px)}
.nso-btn-small{min-width:112px;min-height:34px;padding:6px 14px;font-size:14px}.nso-btn-download{min-width:138px;text-transform:uppercase}
.nso-marquee{height:27px;display:flex;align-items:center;border-top:2px solid #7b9300;border-bottom:2px solid #7b9300;background:#004a44;color:#ffe856;font-size:13px;font-weight:800;white-space:nowrap;text-shadow:0 1px 1px #000}
.nso-nav{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;padding:16px 14px 10px;background:#003e39;border-bottom:0}
.nso-nav .nso-btn{min-width:138px}
.nso-body{min-height:420px;padding:0 16px 48px;background:var(--nso-main)}
.nso-section-title{margin:0 0 10px;padding:12px 0 8px;border-bottom:1px solid rgba(255,255,255,.35);color:#fff;font-size:20px;font-weight:800;text-shadow:0 1px 1px rgba(0,0,0,.5)}
.nso-news-list{display:flex;flex-direction:column;gap:10px}.nso-news-item{display:grid;grid-template-columns:56px 1fr;gap:14px;align-items:center;padding:12px 16px;background:var(--nso-cream);border:1px solid #f0dda6;border-radius:14px;box-shadow:0 2px 6px rgba(0,0,0,.15)}
.nso-news-item img{width:42px;height:42px;object-fit:contain}.nso-news-title{display:block;color:#0074ff!important;font-weight:800;text-transform:none}.nso-news-meta{margin-top:3px;color:#6f7b77!important;font-size:13px}.nso-category-grid{display:grid;grid-template-columns:1fr;gap:10px}.nso-category-item{display:grid;grid-template-columns:56px 1fr;gap:14px;align-items:center;padding:12px 16px;background:var(--nso-cream);border:1px solid #f0dda6;border-radius:14px}.nso-category-item img{width:48px;height:48px;object-fit:contain}.nso-category-title{font-weight:800;color:#e34111!important}.nso-category-desc{font-size:13px;color:#687873!important}.nso-home-note{background:var(--nso-cream);border-radius:14px;border:1px solid #f0dda6;padding:14px 16px;color:var(--nso-text)}
.nso-active-notice{background:#fff2b6;border:1px solid #f0c400;border-radius:10px;padding:10px 12px;margin:0 0 12px;text-align:center;color:#9b2c00;font-weight:700}.nso-active-notice a{color:#0074ff;font-weight:800}
/* Ép các trang con đọc rõ, tránh chữ trắng bị ẩn */
.nso-body .card,.nso-body .card-body,.nso-body .post-detail,.nso-body .container .card,.nso-body .modal-content{color:var(--nso-text)}
.nso-body .card{border-radius:12px!important;background:var(--nso-cream)!important;border:1px solid #f0dda6!important;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.nso-body .card-body{background:transparent!important}.nso-body .card-title,.nso-body h1,.nso-body h2,.nso-body h3,.nso-body h4,.nso-body h5{color:var(--nso-text)!important;text-shadow:none!important;font-weight:800}.nso-body p,.nso-body div,.nso-body span,.nso-body label,.nso-body td,.nso-body th{color:inherit}.nso-body .text-white{color:var(--nso-text)!important}.nso-body .text-muted{color:#60756f!important}.nso-body .text-dark{color:#013f3a!important}.nso-body .text-primary{color:#0074ff!important}.nso-body .text-danger{color:#e51b1b!important}.nso-body .text-success,.nso-body .text-success2{color:#007e70!important}.nso-body .container{max-width:100%!important;padding-left:0!important;padding-right:0!important}.nso-body .row{margin-left:0!important;margin-right:0!important}.nso-body .table-responsive{background:var(--nso-cream);border-radius:8px}.nso-body table,.nso-body .table{width:100%;margin-bottom:0;color:var(--nso-text)!important;background:var(--nso-cream)!important;border-color:#008979!important}.nso-body .table th,.nso-body .table td{background:transparent!important;border-color:#008979!important;color:var(--nso-text)!important;vertical-align:middle}.nso-body .table thead th,.nso-body .header-text{background:#fff0ae!important;color:#015d55!important;font-weight:800!important}.nso-body .table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-accent-bg:rgba(0,137,121,.07);color:inherit!important}.nso-body .btn-outline-success,.nso-body .btn-primary,.nso-body .btn-menu{border:2px solid var(--nso-yellow)!important;border-radius:8px!important;background:linear-gradient(180deg,#007e73 0%,#005f59 100%)!important;color:#fff300!important;font-weight:800!important;box-shadow:0 0 7px rgba(255,216,0,.45)!important}.nso-body .btn-outline-success:hover,.nso-body .btn-outline-success.active,.nso-body .btn-primary:hover,.nso-body .btn-primary.active{color:#fff!important;background:linear-gradient(180deg,#009d8e 0%,#006c63 100%)!important}.nso-body .btn-huybo{background:#6c757d!important;border-color:#6c757d!important;color:#fff!important}.nso-body .top1{color:red!important}.nso-body .top2{color:#ff8800!important}.nso-body .top3{color:#1769ff!important}.nso-body .top4to10{color:#007e70!important}.nso-body .bold{font-weight:800!important}.nso-body .recharge-method-item{background:#fff8d8!important;color:var(--nso-text)!important;border:1px solid #008979!important;border-radius:10px!important}.nso-body input,.nso-body select,.nso-body textarea,.modal input,.modal select,.modal textarea{color:#013f3a!important;background:#fff!important;border:1px solid #00a28f!important}.nso-body input::placeholder,.modal input::placeholder{color:#748b86!important}
/* Modal không phụ thuộc Bootstrap data-api */
.modal.nso-modal,.modal{z-index:10050}.modal.show{display:block!important;background:rgba(0,0,0,.58)}.modal-dialog{pointer-events:auto}.modal-content{border-radius:14px!important;background:var(--nso-cream)!important;color:var(--nso-text)!important;border:3px solid #007e70!important;box-shadow:0 8px 25px rgba(0,0,0,.45)}.modal-body{position:relative}.nso-modal-close{position:absolute;top:8px;right:10px;width:30px;height:30px;border:0;border-radius:50%;background:#d32f2f;color:#fff;font-size:22px;line-height:28px;font-weight:800;cursor:pointer}.nso-modal-title{text-align:center;margin:8px 0 14px;color:#007e70!important}.nso_logo{max-width:180px;max-height:105px;object-fit:contain}.form-signin{width:100%;max-width:420px;padding:15px;margin:0 auto}.modal-backdrop,.nso-custom-backdrop{z-index:10040!important}.nso-custom-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.58)}body.modal-open{overflow:hidden}.swal2-container,.notiflix-confirm,.notiflix-report{z-index:11000!important}.grecaptcha-badge{z-index:10060}
.nso-footer{display:flex;align-items:center;justify-content:center;gap:7px;margin:10px auto 16px;color:#fff;text-shadow:0 1px 2px #000;font-size:12px;text-align:center}.nso-footer img{width:18px;height:18px}
@media (max-width:768px){
  .nso-wrapper{width:calc(100% - 10px);margin-top:8px}.nso-panel{border-width:2px;border-radius:8px 8px 0 0}.nso-header{min-height:250px;padding-top:18px}.nso-logo{min-height:95px}.nso-logo img{max-width:185px;max-height:105px}.nso-nav{gap:8px;padding:12px 8px}.nso-nav .nso-btn,.nso-btn{min-width:calc(50% - 8px);font-size:13px;padding:7px 10px}.nso-auth-row .nso-btn{min-width:105px}.nso-body{padding:0 8px 28px}.nso-news-item,.nso-category-item{grid-template-columns:44px 1fr;padding:10px}.nso-news-item img{width:36px;height:36px}.nso-category-item img{width:40px;height:40px}.nso-body .btn-group{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;width:100%}.nso-body .btn-group .btn{border-radius:8px!important;margin:0!important;padding:8px 5px!important}.nso-body .table th,.nso-body .table td{font-size:13px;padding:8px 7px!important}.modal-dialog{margin:12px!important}.nso-footer{padding:0 8px;align-items:flex-start}.nso-footer img{margin-top:1px}}
.nso-body [style*="color: white"],.nso-body [style*="color:white"],.nso-body [style*="color: #fff"],.nso-body [style*="color:#fff"],.nso-body [style*="color: #ffffff"],.nso-body [style*="color:#ffffff"]{color:var(--nso-text)!important}.nso-body .btn [style*="color"],.nso-body .nso-btn [style*="color"]{color:inherit!important}.nso-body .bg-dark{background:var(--nso-cream)!important;color:var(--nso-text)!important}
