:root {
  --nso-brown-950: #211006;
  --nso-brown-900: #321408;
  --nso-brown-800: #4b1d09;
  --nso-brown-700: #6b280b;
  --nso-orange: #c9772b;
  --nso-orange-bright: #d4893f;
  --nso-gold: #ffc83d;
  --nso-cream: #fffaf3;
  --nso-paper: #fffaf3;
  --nso-text: #4a2a10;
  --nso-muted: #9b7a60;
  --nso-border: #f0cfa6;
  --nso-shadow: 0 18px 40px rgba(107, 58, 16, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.nso-theme {
  min-height: 100vh;
  margin: 0;
  color: var(--nso-text);
  background: #ffd2a8;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
}

.nso-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 0, #ffe3c6, #ffd2a8 55%, #f7c08e);
}
.nso-background::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: radial-gradient(rgba(95, 48, 15, .18) .7px, transparent .7px);
  background-size: 18px 18px;
}

.nso-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 80px;
  color: #fff;
  background: #6b3a10;
  border-bottom: 1px solid rgba(0, 0, 0, .35);
  box-shadow: 0 4px 14px rgba(60, 25, 5, .35);
  backdrop-filter: blur(14px);
}
.nso-header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.nso-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none !important; flex: 0 0 auto; }
.nso-brand img { width: 58px; height: 58px; border-radius: 14px; box-shadow: 0 4px 18px rgba(0, 0, 0, .25); transition: transform .25s ease; }
.nso-brand:hover img { transform: rotate(-3deg) scale(1.06); }
.nso-brand span { display: flex; flex-direction: column; line-height: 1.05; }
.nso-brand strong { color: var(--nso-gold); font-size: 20px; letter-spacing: .5px; }
.nso-brand small { margin-top: 5px; color: #d7c3b5; font-size: 11px; }

.nso-desktop-nav { display: flex; align-items: center; gap: 3px; }
.nso-desktop-nav a { padding: 11px 13px; color: #e9d9cd; border-radius: 9px; font-weight: 650; text-decoration: none; transition: .2s ease; white-space: nowrap; }
.nso-desktop-nav a:hover, .nso-desktop-nav a.active { color: var(--nso-gold); background: rgba(255, 255, 255, .08); }
.nso-desktop-nav i { margin-right: 5px; color: #f0b06a; }

.nso-account-actions { display: flex; align-items: center; gap: 8px; }
.nso-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 11px; padding: 10px 17px; font-weight: 750; line-height: 1.2; text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.nso-btn:hover { transform: translateY(-2px); }
.nso-btn-primary { color: #fff !important; background: linear-gradient(135deg, #d4893f, #9a4f12); box-shadow: 0 9px 20px rgba(154, 79, 18, .32); }
.nso-btn-primary:hover { filter: brightness(1.07); box-shadow: 0 13px 24px rgba(154, 79, 18, .38); }
.nso-btn-ghost { color: #fff !important; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .05); }
.nso-btn-outline { color: #fff !important; border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .1); backdrop-filter: blur(5px); }
.nso-btn-large { min-width: 150px; height: 52px; padding: 0 24px; border-radius: 13px; font-size: 17px; }
.nso-user-pill { display: flex; align-items: center; gap: 8px; color: #fff !important; text-decoration: none !important; }
.nso-user-pill img { width: 42px; height: 42px; object-fit: contain; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.nso-user-pill span { display: flex; flex-direction: column; max-width: 100px; }
.nso-user-pill small { color: #d9c3b6; font-size: 10px; }
.nso-user-pill strong { color: var(--nso-gold); overflow: hidden; text-overflow: ellipsis; }

.nso-mobile-header { display: none; }
.nso-mobile-account-actions { display: flex; align-items: center; gap: 8px; }
.nso-mobile-logout { display: none; }

.nso-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background:
    radial-gradient(circle at 72% 45%, rgba(255, 196, 130, .35), transparent 28rem),
    linear-gradient(115deg, #6b3a10 0%, #8f4f18 55%, #6b3a10 100%);
}
.nso-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .08;
  background-image: linear-gradient(30deg, transparent 45%, #ffd9a8 46%, transparent 48%), linear-gradient(-30deg, transparent 45%, #ffb23f 46%, transparent 48%);
  background-size: 52px 90px;
}
.nso-hero-shade { position: absolute; inset: auto 0 0; height: 130px; background: linear-gradient(transparent, rgba(60,25,5,.35)); }
.nso-hero-inner { position: relative; z-index: 2; width: min(1180px, calc(100% - 32px)); min-height: 520px; margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 28px; }
.nso-hero-copy { padding: 45px 0; color: #fff; }
.nso-eyebrow { display: inline-flex; padding: 8px 15px; color: #ffe3c6; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 227, 198, .55); border-radius: 999px; font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: .7px; }
.nso-wordmark { display: block; width: min(360px, 90%); height: auto; margin: 24px 0 18px; filter: drop-shadow(0 10px 10px rgba(0,0,0,.3)); }
.nso-hero-copy p { max-width: 550px; margin: 0 0 26px; color: #fff3e6; font-size: 18px; line-height: 1.7; }
.nso-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.nso-hero-art { align-self: end; display: flex; align-items: flex-end; justify-content: flex-end; }
.nso-hero-art img { display: block; width: min(630px, 100%); height: auto; filter: drop-shadow(0 18px 20px rgba(0,0,0,.35)); animation: nsoFloat 5s ease-in-out infinite; }
@keyframes nsoFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.nso-download-panel { position: relative; z-index: 5; width: min(1080px, calc(100% - 32px)); margin: -36px auto 36px; padding: 20px 24px; display: flex; align-items: center; gap: 24px; background: #fffaf3; border: 1px solid var(--nso-border); border-radius: 20px; box-shadow: 0 18px 40px rgba(107,58,16,.28), 0 2px 0 #fff inset; }
.nso-download-heading { display: flex; align-items: center; gap: 13px; min-width: 255px; }
.nso-download-heading > span:last-child { display: flex; flex-direction: column; }
.nso-download-heading strong { color: #b5651d; font-size: 18px; font-weight: 800; }
.nso-download-heading small { color: var(--nso-muted); font-size: 11px; margin-top: 3px; }
.nso-download-icon { width: 47px; height: 47px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #d4893f, #9a4f12); border-radius: 13px; font-size: 20px; box-shadow: 0 8px 20px rgba(107,58,16,.3); }
.nso-download-links { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.nso-download-links a { min-height: 62px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #4a2a10; background: #fff; border: 1.5px solid #ecd0b0; border-radius: 13px; text-decoration: none !important; transition: .2s ease; }
.nso-download-links a:hover { color: #6b3a10; border-color: #c9772b; transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(201,119,43,.16); }
.nso-download-links i { color: #c2824a; font-size: 21px; }
.nso-download-links span { display: flex; flex-direction: column; font-weight: 800; }
.nso-download-links small { color: var(--nso-muted); font-size: 9px; font-weight: 500; }

.nso-member-bar { width: min(1080px, calc(100% - 32px)); margin: 20px auto; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fffaf3; border: 1px solid var(--nso-border); border-radius: 20px; box-shadow: 0 18px 40px rgba(107,58,16,.22), 0 2px 0 #fff inset; }
.nso-member-info, .nso-member-links { display: flex; align-items: center; gap: 16px; }
.nso-member-info img { width: 50px; height: 50px; object-fit: contain; }
.nso-member-info span { display: flex; flex-direction: column; padding-right: 15px; border-right: 1px solid var(--nso-border); }
.nso-member-info small { color: #b98557; font-size: 10px; text-transform: uppercase; }
.nso-member-info strong { color: #b5651d; font-size: 13px; }
.nso-member-links { gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.nso-member-links a { padding: 8px 11px; color: #8a4a17; background: #fbeedd; border: 1px solid #f0cfa6; border-radius: 10px; font-size: 12px; font-weight: 700; text-decoration: none; }
.nso-member-links a:hover { color: #fff; background: linear-gradient(135deg, #d4893f, #9a4f12); border-color: transparent; }

.nso-page-main { min-height: 300px; padding: 0 16px 45px; }
.nso-inner .nso-page-main { padding-top: 34px; }
.nso-page-content { width: min(1080px, 100%); margin: 0 auto; }
.nso-page-content > main { display: block; }

/* Make the legacy PHP content feel like the imported Ninja Mobile interface. */
.nso-page-content .alert,
.nso-page-content .card,
.nso-page-content .bg-light {
  color: var(--nso-text);
  background: var(--nso-paper) !important;
  border-color: var(--nso-border) !important;
}
.nso-page-content > .alert,
.nso-page-content > main > .alert,
.nso-page-content > .card {
  border-radius: 20px !important;
  box-shadow: 0 18px 40px rgba(107, 58, 16, .22), 0 2px 0 #fff inset !important;
}
.nso-page-content .alert .alert { border: 1.5px solid #ecd0b0 !important; border-radius: 13px !important; box-shadow: none !important; }
.nso-page-content .alert .alert .alert { background: #fff !important; transition: border-color .2s, box-shadow .2s; }
.nso-page-content .alert .alert .alert:hover { border-color: #c9772b !important; box-shadow: 0 0 0 4px rgba(201,119,43,.16) !important; }
.nso-page-content h1, .nso-page-content h2, .nso-page-content h3, .nso-page-content h4, .nso-page-content h5 { color: #b5651d; font-weight: 800; }
.nso-page-content hr { border: 0; border-top: 1px dashed #ecd0b0; opacity: 1; }
.nso-page-content a:not(.btn) { color: #b5651d; }
.nso-page-content font[style*="blue"], .nso-page-content b[style*="blue"] { color: #8a4a17 !important; }
.nso-page-content .box_name_eman { color: #9b7a60; font-size: 13px; }
.nso-page-content .btn-action, .nso-page-content .btn-download, .nso-page-content .btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, #d4893f, #9a4f12) !important;
  border: 0 !important;
  border-radius: 13px !important;
  font-weight: 800;
  box-shadow: 0 9px 20px rgba(154, 79, 18, .28);
}
.nso-page-content .form-control { min-height: 48px; color: #4a2a10; border: 1.5px solid #ecd0b0; border-radius: 13px !important; background: #fff; }
.nso-page-content .form-control:focus { border-color: #c9772b; box-shadow: 0 0 0 4px rgba(201,119,43,.16); }
.nso-page-content table { color: var(--nso-text); }

.nso-footer { padding: 32px 16px 105px; color: #d9c5b8; background: #291106; border-top: 4px solid #9a4f12; }
.nso-footer-inner { width: min(1080px, 100%); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.nso-footer-brand { display: flex; align-items: center; gap: 12px; }
.nso-footer-brand img { width: 52px; height: 52px; border-radius: 12px; }
.nso-footer-brand span { display: flex; flex-direction: column; }
.nso-footer-brand strong { color: var(--nso-gold); }
.nso-footer-brand small { margin-top: 3px; }
.nso-footer-links { display: flex; gap: 18px; }
.nso-footer-links a { color: #ead9ce; text-decoration: none; font-weight: 650; }
.nso-footer-links a:hover { color: var(--nso-gold); }
.nso-footer p { margin: 0; font-size: 12px; }

.nso-zalo { position: fixed; right: 20px; bottom: 24px; z-index: 1500; width: 60px; height: 60px; display: grid; place-items: center; background: #fff; border-radius: 50%; box-shadow: 0 8px 22px rgba(0,104,255,.35), 0 0 0 3px rgba(0,104,255,.12); text-decoration: none !important; transition: transform .2s, box-shadow .2s; animation: nsoZaloBounce 3s ease-in-out infinite; }
.nso-zalo::before { content: ""; position: absolute; inset: -2px; border: 2px solid rgba(0,104,255,.55); border-radius: 50%; pointer-events: none; animation: nsoZaloRing 2s ease-out infinite; }
.nso-zalo img { width: 40px; height: 40px; display: block; }
.nso-zalo:hover { transform: scale(1.08); box-shadow: 0 12px 28px rgba(0,104,255,.45), 0 0 0 3px rgba(0,104,255,.18); animation: none; }
.nso-zalo-tip { position: absolute; right: 72px; top: 50%; transform: translateY(-50%) translateX(6px); padding: 7px 12px; color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; background: #0068ff; border-radius: 10px; box-shadow: 0 6px 16px rgba(0,104,255,.3); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.nso-zalo-tip::after { content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; background: #0068ff; transform: translateY(-50%) rotate(45deg); }
.nso-zalo:hover .nso-zalo-tip { opacity: 1; transform: translateY(-50%) translateX(0); }
@keyframes nsoZaloRing { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes nsoZaloBounce { 0%, 88%, 100% { transform: translateY(0); } 92% { transform: translateY(-6px); } 96% { transform: translateY(0); } }
.nso-bottom-nav { display: none; }

/* Dedicated download page */
.nso-download-page { display: flex; flex-direction: column; gap: 34px; }
.nso-download-page-hero { position: relative; min-height: 330px; padding: 42px 45px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: center; color: #fff; background: radial-gradient(circle at 78% 25%, rgba(255,196,130,.4), transparent 23rem), linear-gradient(120deg, #6b3a10, #9a4f12); border: 1px solid #f0cfa6; border-radius: 20px; box-shadow: var(--nso-shadow); }
.nso-download-page-hero::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(30deg, transparent 45%, #ffb23f 46%, transparent 48%), linear-gradient(-30deg, transparent 45%, #ffb23f 46%, transparent 48%); background-size: 44px 76px; }
.nso-download-page-copy { position: relative; z-index: 2; }
.nso-download-page-copy h1 { margin: 20px 0 12px; color: #fff; font-size: clamp(35px, 5vw, 55px); line-height: 1; }
.nso-download-page-copy > p { max-width: 590px; margin: 0; color: #fff3e6; font-size: 16px; line-height: 1.65; }
.nso-download-badges { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 9px; }
.nso-download-badges span { padding: 7px 10px; color: #ffe3be; background: rgba(255,255,255,.08); border: 1px solid rgba(255,207,142,.22); border-radius: 8px; font-size: 11px; font-weight: 700; }
.nso-download-badges i { margin-right: 4px; color: var(--nso-gold); }
.nso-download-page-hero > img { position: absolute; z-index: 1; right: -5px; bottom: -16px; width: min(530px, 52%); filter: drop-shadow(0 18px 20px rgba(0,0,0,.4)); }
.nso-version-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; }
.nso-version-heading span, .nso-section-kicker { color: #c9772b; font-size: 11px; font-weight: 900; letter-spacing: 1.2px; }
.nso-version-heading h2, .nso-install-guide h2 { margin: 5px 0 0; color: #b5651d; font-size: 28px; }
.nso-version-heading p { max-width: 470px; margin: 0; color: var(--nso-muted); text-align: right; }
.nso-version-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.nso-version-card { position: relative; min-width: 0; padding: 24px 20px 20px; display: flex; flex-direction: column; background: #fffaf3; border: 1px solid var(--nso-border); border-radius: 20px; box-shadow: 0 14px 32px rgba(107,58,16,.18), 0 2px 0 #fff inset; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.nso-version-card:hover { transform: translateY(-5px); border-color: #c9772b; box-shadow: var(--nso-shadow); }
.nso-version-card.recommended { border: 2px solid var(--nso-orange); }
.nso-recommended { position: absolute; top: -12px; right: 14px; padding: 5px 9px; color: #fff; background: linear-gradient(135deg, #d4893f, #9a4f12); border-radius: 99px; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; }
.nso-version-icon { width: 55px; height: 55px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #d4893f, #9a4f12); border-radius: 18px; font-size: 27px; box-shadow: 0 8px 20px rgba(107,58,16,.3); }
.nso-version-title { margin-top: 17px; }
.nso-version-title small { color: #c9772b; font-weight: 900; letter-spacing: .8px; }
.nso-version-title h3 { margin: 2px 0 0; color: #b5651d; font-size: 20px; }
.nso-version-card > p { min-height: 63px; margin: 12px 0; color: var(--nso-muted); font-size: 13px; line-height: 1.55; }
.nso-version-note { margin-bottom: 17px; color: #8c7566; font-size: 10px; }
.nso-version-note i { color: #c2824a; }
.nso-version-button { margin-top: auto; padding: 14px 10px; color: #fff !important; background: linear-gradient(135deg, #d4893f, #9a4f12); border-radius: 13px; text-align: center; font-size: 14px; font-weight: 800; text-decoration: none !important; box-shadow: 0 9px 20px rgba(154,79,18,.3); }
.nso-version-button:hover { filter: brightness(1.08); }
.nso-install-area { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.nso-install-guide, .nso-download-help { padding: 30px; background: #fffaf3; border: 1px solid var(--nso-border); border-radius: 20px; box-shadow: 0 14px 32px rgba(107,58,16,.18), 0 2px 0 #fff inset; }
.nso-install-guide ol { margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; }
.nso-install-guide li { display: flex; align-items: flex-start; gap: 11px; }
.nso-install-guide li > strong { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #d4893f, #9a4f12); border-radius: 10px; }
.nso-install-guide li span { display: flex; flex-direction: column; }
.nso-install-guide li b { color: #8a4a17; }
.nso-install-guide li small { margin-top: 4px; color: var(--nso-muted); line-height: 1.5; }
.nso-download-help { color: #fff; background: linear-gradient(145deg, #8f4f18, #6b3a10); border-color: #6b3a10; }
.nso-help-icon { width: 45px; height: 45px; display: grid; place-items: center; color: #5a2209; background: var(--nso-gold); border-radius: 13px; font-size: 23px; }
.nso-download-help h3 { margin: 17px 0 8px; color: #fff; font-size: 20px; }
.nso-download-help p { color: #f6e2cf; font-size: 13px; line-height: 1.55; }
.nso-download-help > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
.nso-download-help a { padding: 9px 11px; color: #fff !important; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; font-size: 11px; font-weight: 750; text-decoration: none !important; }
.nso-download-warning { padding: 15px 18px; display: flex; align-items: center; gap: 12px; color: #77400d; background: #fff3dc; border: 1px solid #ecd0b0; border-radius: 13px; }
.nso-download-warning > i { color: #e59c00; font-size: 21px; }
.nso-download-warning p { margin: 0; font-size: 12px; }

@media (max-width: 1020px) {
  .nso-desktop-nav a { padding: 10px 8px; font-size: 13px; }
  .nso-account-actions .nso-logout { display: none; }
  .nso-brand strong { font-size: 17px; }
  .nso-hero-inner { grid-template-columns: .8fr 1.2fr; }
  .nso-download-panel { align-items: stretch; flex-direction: column; }
  .nso-download-heading { min-width: 0; }
  .nso-member-bar { align-items: flex-start; flex-direction: column; }
  .nso-version-grid { grid-template-columns: repeat(2, 1fr); }
  .nso-download-page-hero > img { opacity: .6; width: 58%; }
}

@media (max-width: 767px) {
  body.nso-theme { font-size: 14px; padding-bottom: 70px; }
  .nso-header { display: none; }
  .nso-mobile-header { position: sticky; top: 0; z-index: 1000; height: 64px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; background: #6b3a10; border-bottom: 1px solid rgba(0,0,0,.35); box-shadow: 0 4px 14px rgba(60,25,5,.35); }
  .nso-mobile-header .nso-brand { gap: 8px; }
  .nso-mobile-header .nso-brand img { width: 41px; height: 41px; border-radius: 10px; }
  .nso-mobile-header .nso-brand strong { font-size: 13px; }
  .nso-mobile-header .nso-brand small { margin-top: 3px; font-size: 8px; }
  .nso-mobile-login { padding: 8px 10px; color: #fff !important; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; font-size: 11px; font-weight: 750; text-decoration: none !important; }
  .nso-mobile-avatar img { width: 43px; height: 43px; object-fit: contain; }
  .nso-mobile-logout { padding: 8px 9px; display: inline-flex; align-items: center; gap: 5px; color: #fff !important; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.25); border-radius: 9px; font-size: 10px; font-weight: 750; text-decoration: none !important; }
  .nso-hero { min-height: auto; padding-bottom: 18px; }
  .nso-hero-inner { min-height: 0; width: min(100% - 28px, 560px); padding: 28px 0 0; display: flex; flex-direction: column; gap: 5px; }
  .nso-hero-copy { padding: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .nso-eyebrow { padding: 6px 11px; font-size: 10px; }
  .nso-wordmark { width: 205px; margin: 14px auto 10px; }
  .nso-hero-copy p { margin-bottom: 15px; font-size: 13px; line-height: 1.5; }
  .nso-hero-actions { justify-content: center; }
  .nso-btn-large { min-width: 125px; padding: 11px 14px; font-size: 14px; }
  .nso-hero-art { order: 2; width: 100%; justify-content: center; }
  .nso-hero-art img { width: min(460px, 100%); }
  .nso-download-panel { width: calc(100% - 24px); margin: -5px auto 24px; padding: 14px; gap: 13px; border-radius: 14px; }
  .nso-download-icon { width: 40px; height: 40px; }
  .nso-download-links { grid-template-columns: repeat(2, 1fr); }
  .nso-download-links a { min-height: 54px; justify-content: flex-start; padding: 0 12px; }
  .nso-member-bar { width: calc(100% - 24px); margin: 14px auto; padding: 11px; }
  .nso-member-info { width: 100%; display: grid; grid-template-columns: 45px 1fr 1fr; gap: 8px; }
  .nso-member-info img { width: 43px; height: 43px; grid-row: span 2; }
  .nso-member-info span { padding: 0; border: 0; }
  .nso-member-info span:last-child { display: none; }
  .nso-member-links { width: 100%; justify-content: flex-start; gap: 5px; }
  .nso-member-links a { flex: 1 1 30%; padding: 8px 5px; text-align: center; font-size: 10px; }
  .nso-page-main, .nso-inner .nso-page-main { padding: 15px 10px 28px; }
  .nso-page-content > .alert, .nso-page-content > main > .alert, .nso-page-content > .card { border-radius: 17px !important; }
  .nso-footer { padding: 26px 14px 24px; }
  .nso-footer-inner { flex-direction: column; text-align: center; gap: 14px; }
  .nso-footer-links { gap: 12px; flex-wrap: wrap; justify-content: center; }
  .nso-zalo { right: 14px; bottom: calc(86px + env(safe-area-inset-bottom)); width: 54px; height: 54px; }
  .nso-zalo img { width: 36px; height: 36px; }
  .nso-zalo-tip { display: none; }
  .nso-bottom-nav { position: fixed !important; left: 0; right: 0; bottom: 0; z-index: 2000; transform: translateZ(0); -webkit-transform: translateZ(0); height: calc(68px + env(safe-area-inset-bottom, 0px)); padding: 7px 5px env(safe-area-inset-bottom, 0px); display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255,250,243,.98); border-top: 1px solid var(--nso-border); box-shadow: 0 -7px 20px rgba(61,25,6,.13); backdrop-filter: blur(12px); }
  .nso-bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #9b7a60; font-size: 10px; font-weight: 650; text-decoration: none !important; }
  .nso-bottom-nav i { font-size: 19px; }
  .nso-bottom-nav .nso-bottom-main { color: #b5651d; }
  .nso-bottom-nav .nso-bottom-main i { width: 44px; height: 44px; margin-top: -24px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #d4893f, #9a4f12); border: 4px solid #fffaf3; border-radius: 50%; box-shadow: 0 5px 15px rgba(154,79,18,.32); }
  .nso-download-page { gap: 24px; }
  .nso-download-page-hero { min-height: 470px; padding: 27px 20px; display: block; border-radius: 16px; text-align: center; }
  .nso-download-page-copy { display: flex; flex-direction: column; align-items: center; }
  .nso-download-page-copy h1 { margin-top: 15px; font-size: 36px; }
  .nso-download-page-copy > p { font-size: 13px; }
  .nso-download-badges { justify-content: center; margin-top: 15px; }
  .nso-download-badges span { padding: 5px 7px; font-size: 9px; }
  .nso-download-page-hero > img { right: 50%; bottom: -5px; width: min(430px, 112%); max-width: none; opacity: 1; transform: translateX(50%); }
  .nso-version-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .nso-version-heading h2, .nso-install-guide h2 { font-size: 23px; }
  .nso-version-heading p { text-align: left; font-size: 12px; }
  .nso-version-grid { grid-template-columns: 1fr; gap: 12px; }
  .nso-version-card { padding: 18px; display: grid; grid-template-columns: 55px 1fr; column-gap: 14px; }
  .nso-version-title { margin: 3px 0 0; }
  .nso-version-card > p, .nso-version-note, .nso-version-button { grid-column: 1 / -1; }
  .nso-version-card > p { min-height: 0; margin: 12px 0 8px; }
  .nso-version-note { margin-bottom: 13px; }
  .nso-install-area { grid-template-columns: 1fr; }
  .nso-install-guide, .nso-download-help { padding: 21px 18px; }
  .nso-install-guide ol { grid-template-columns: 1fr; }
  .nso-download-warning { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ===== Auth pages (đăng ký / đăng nhập) – bảng màu này nay dùng chung cho toàn site ===== */
body.nso-auth-page .nso-page-main { padding-top: 0; }
.nso-auth, .nso-page-content > main.nso-auth { display: flex; justify-content: center; padding: 46px 0 20px; }
.nso-auth-card { width: min(440px, 100%); padding: 32px 30px 26px; background: #fffaf3; border: 1px solid #f0cfa6; border-radius: 20px; box-shadow: 0 18px 40px rgba(107,58,16,.28), 0 2px 0 #fff inset; animation: nsoAuthIn .45s ease both; }
@keyframes nsoAuthIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.nso-auth-head { text-align: center; margin-bottom: 22px; }
.nso-auth-head img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 8px 20px rgba(107,58,16,.3); }
.nso-auth-head h1 { margin: 14px 0 4px; color: #b5651d !important; font-size: 26px; font-weight: 800; }
.nso-auth-head p { margin: 0; color: #b98557; font-size: 13px; }
.nso-field { position: relative; display: block; margin: 0 0 13px; }
.nso-field > i.fa { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #c2824a; font-size: 16px; pointer-events: none; }
.nso-field input { width: 100%; height: 52px; padding: 0 48px 0 44px; color: #4a2a10; font-weight: 650; background: #fff; border: 1.5px solid #ecd0b0; border-radius: 13px; outline: none; transition: border-color .2s, box-shadow .2s; }
.nso-field input::placeholder { color: #b9a08a; font-weight: 500; }
.nso-field input:focus { border-color: #c9772b; box-shadow: 0 0 0 4px rgba(201,119,43,.16); }
.nso-field:focus-within > i.fa { color: #a85a14; }
.nso-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; color: #b98557; background: none; border: 0; border-radius: 10px; }
.nso-eye:hover { color: #6b3a10; background: #fbeedd; }
.nso-auth-hint { margin: -2px 2px 16px; color: #a88a73; font-size: 12px; line-height: 1.5; }
.nso-auth-hint.is-error { color: #c0392b; font-weight: 700; }
.nso-auth-icon { width: 72px; height: 72px; margin: 0 auto; display: grid; place-items: center; color: #fff; font-size: 30px; background: linear-gradient(135deg, #d4893f, #9a4f12); border-radius: 18px; box-shadow: 0 8px 20px rgba(107,58,16,.3); }
.nso-auth-head p b { color: #8a4a17; }
.nso-auth-foot a i { margin-right: 4px; }
.nso-auth-submit { width: 100%; height: 52px; margin-top: 4px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #fff; font-size: 17px; font-weight: 800; background: linear-gradient(135deg, #d4893f, #9a4f12); border: 0; border-radius: 13px; box-shadow: 0 9px 20px rgba(154,79,18,.32); transition: transform .2s, box-shadow .2s, filter .2s; }
.nso-auth-submit:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 13px 24px rgba(154,79,18,.38); }
.nso-auth-submit:active { transform: translateY(0); }
.nso-auth-foot { margin-top: 20px; padding-top: 16px; text-align: center; color: #9b7a60; font-size: 14px; border-top: 1px dashed #ecd0b0; }
.nso-auth-foot a { color: #b5651d !important; font-weight: 800; text-decoration: none; }
.nso-auth-foot a:hover { text-decoration: underline; }
.nso-auth-card .alert { margin: 0 0 16px; border-radius: 12px !important; font-size: 13px; }
@media (max-width: 767px) { .nso-auth { padding: 22px 0 8px; } .nso-auth-card { padding: 26px 20px 22px; border-radius: 17px; } .nso-auth-head h1 { font-size: 23px; } }

/* ===== Nạp tiền PayOS ===== */
.nso-pay [hidden] { display: none !important; }
.nso-page-content > main.nso-pay { display: block; padding: 8px 0 10px; }
.nso-pay-hero { margin-bottom: 18px; padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #fff; background: radial-gradient(circle at 85% 20%, rgba(255,196,130,.4), transparent 18rem), linear-gradient(120deg, #6b3a10, #9a4f12); border-radius: 20px; box-shadow: 0 18px 40px rgba(107,58,16,.28); }
.nso-pay-kicker { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; color: #ffe3c6; font-size: 12px; font-weight: 800; background: rgba(255,255,255,.12); border: 1px solid rgba(255,227,198,.45); border-radius: 99px; }
.nso-pay-hero h1 { margin: 10px 0 4px; color: #fff !important; font-size: 30px; font-weight: 900; }
.nso-pay-hero p { margin: 0; color: #fff3e6; font-size: 14px; }
.nso-pay-balance { min-width: 190px; padding: 14px 18px; text-align: right; background: rgba(255,255,255,.12); border: 1px solid rgba(255,227,198,.35); border-radius: 16px; }
.nso-pay-balance small { display: block; color: #ffe3c6; font-size: 12px; font-weight: 700; }
.nso-pay-balance strong { color: #ffc83d; font-size: 28px; font-weight: 900; }
.nso-pay-balance span { margin-left: 4px; color: #ffe3c6; font-weight: 700; }
.nso-pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.nso-pay-card { padding: 24px; background: #fffaf3; border: 1px solid #f0cfa6; border-radius: 20px; box-shadow: 0 18px 40px rgba(107,58,16,.18), 0 2px 0 #fff inset; }
.nso-pay-card h2 { margin: 0 0 16px; display: flex; align-items: center; gap: 10px; color: #b5651d !important; font-size: 20px; font-weight: 800; }
.nso-pay-card h3 { margin: 0 0 12px; color: #b5651d !important; font-size: 16px; font-weight: 800; }
.nso-pay-card h3 i { margin-right: 6px; color: #c2824a; }
.nso-pay-step { width: 30px; height: 30px; display: inline-grid; place-items: center; color: #fff; font-size: 15px; background: linear-gradient(135deg, #d4893f, #9a4f12); border-radius: 10px; }
.nso-pay-bonus { margin: -4px 0 16px; padding: 10px 14px; color: #77400d; font-size: 14px; background: #fff3dc; border: 1px dashed #e3b67e; border-radius: 13px; }
.nso-pay-bonus i { margin-right: 6px; color: #c9772b; }
.nso-pay-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.nso-pay-chip { padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #4a2a10; background: #fff; border: 1.5px solid #ecd0b0; border-radius: 13px; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.nso-pay-chip b { font-size: 16px; font-weight: 800; }
.nso-pay-chip small { color: #b98557; font-size: 12px; font-weight: 700; }
.nso-pay-chip:hover { border-color: #c9772b; transform: translateY(-2px); }
.nso-pay-chip.is-active { color: #fff; background: linear-gradient(135deg, #d4893f, #9a4f12); border-color: transparent; box-shadow: 0 9px 20px rgba(154,79,18,.3); }
.nso-pay-chip.is-active small { color: #ffe3c6; }
.nso-pay-input input { padding-right: 64px; font-size: 16px; }
.nso-pay-input input::-webkit-outer-spin-button, .nso-pay-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nso-pay-unit { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #b98557; font-size: 13px; font-weight: 800; }
.nso-pay-receive { margin: 2px 2px 6px; color: #8a4a17; font-size: 15px; }
.nso-pay-receive b { color: #b5651d; font-size: 20px; font-weight: 900; }
.nso-pay-formerr, .nso-pay-alert { margin-top: 12px; padding: 11px 14px; font-size: 14px; border-radius: 13px; }
.nso-pay-formerr, .nso-pay-alert.is-err { color: #9b2c1f; background: #fdeceb; border: 1px solid #f3c2bd; }
.nso-pay-alert.is-ok { color: #1f6b3a; background: #e9f7ee; border: 1px solid #b9e2c7; }
.nso-pay > .nso-pay-alert { margin: 0 0 16px; }
.nso-pay-status { margin-bottom: 16px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; border-radius: 13px; }
.nso-pay-status.is-wait { color: #8a4a17; background: #fff3dc; }
.nso-pay-status.is-off, .nso-pay-status.is-err { color: #9b2c1f; background: #fdeceb; }
.nso-pay-dot { width: 10px; height: 10px; flex: 0 0 auto; background: #d4893f; border-radius: 50%; animation: nsoPulse 1.2s ease-in-out infinite; }
.nso-pay-status.is-off .nso-pay-dot, .nso-pay-status.is-err .nso-pay-dot { background: #c0392b; animation: none; }
@keyframes nsoPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(212,137,63,.55); } 50% { box-shadow: 0 0 0 7px rgba(212,137,63,0); } }
.nso-pay-qrwrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: center; }
.nso-pay-qr { padding: 14px; text-align: center; background: #fff; border: 1.5px solid #ecd0b0; border-radius: 16px; }
.nso-pay-qr #nsoQr { width: 220px; height: 220px; margin: 0 auto; display: grid; place-items: center; }
.nso-pay-qr #nsoQr img, .nso-pay-qr #nsoQr canvas { width: 220px !important; height: 220px !important; }
.nso-pay-qr small { display: block; margin-top: 8px; color: #b98557; font-size: 12px; font-weight: 700; }
.nso-pay-info { margin: 0; display: grid; gap: 8px; }
.nso-pay-info > div { padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid #f0dcc4; border-radius: 12px; }
.nso-pay-info dt { flex: 0 0 auto; color: #9b7a60; font-size: 13px; font-weight: 600; white-space: nowrap; }
.nso-pay-info dd { margin: 0; display: flex; align-items: center; gap: 6px; color: #4a2a10; font-weight: 800; text-align: right; word-break: break-all; }
.nso-pay-strong { color: #b5651d; font-size: 16px; }
.nso-copy { width: 30px; height: 30px; flex: 0 0 auto; color: #b5651d; background: #fbeedd; border: 1px solid #f0cfa6; border-radius: 9px; cursor: pointer; }
.nso-copy:hover { color: #fff; background: #c9772b; }
.nso-copy.is-done { color: #fff; background: #2e8b57; border-color: #2e8b57; }
.nso-pay-warn { margin-top: 16px; padding: 11px 14px; color: #77400d; font-size: 13px; line-height: 1.55; background: #fff3dc; border: 1px solid #ecd0b0; border-radius: 13px; }
.nso-pay-warn i { margin-right: 4px; color: #c9772b; }
.nso-pay-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.nso-pay-btn { min-height: 46px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff !important; font-weight: 800; text-decoration: none !important; background: linear-gradient(135deg, #d4893f, #9a4f12); border: 0; border-radius: 13px; box-shadow: 0 9px 20px rgba(154,79,18,.28); cursor: pointer; }
.nso-pay-btn.is-ghost { color: #8a4a17 !important; background: #fbeedd; border: 1px solid #f0cfa6; box-shadow: none; }
.nso-pay-actions .nso-pay-btn { flex: 1 1 180px; }
.nso-pay-done { text-align: center; }
.nso-pay-done h2 { justify-content: center; margin-top: 12px; }
.nso-pay-done p { color: #8a4a17; }
.nso-pay-result-icon { width: 76px; height: 76px; margin: 0 auto; display: grid; place-items: center; color: #fff; font-size: 34px; border-radius: 50%; }
.nso-pay-result-icon.is-ok { background: linear-gradient(135deg, #3fb36b, #1f7a45); box-shadow: 0 10px 24px rgba(31,122,69,.3); animation: nsoPop .5s ease both; }
.nso-pay-result-icon.is-wait { background: linear-gradient(135deg, #d4893f, #9a4f12); }
.nso-pay-result-icon.is-off { background: linear-gradient(135deg, #b9a08a, #8a6c55); }
@keyframes nsoPop { from { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } to { transform: scale(1); opacity: 1; } }
.nso-pay-side { display: grid; gap: 18px; }
.nso-pay-steps { margin: 0; padding-left: 20px; color: #6b4a30; font-size: 14px; line-height: 1.6; }
.nso-pay-steps li { margin-bottom: 6px; }
.nso-pay-note { margin: 12px 0 0; padding-top: 12px; color: #9b7a60; font-size: 13px; border-top: 1px dashed #ecd0b0; }
.nso-pay-admin p { font-size: 13px; color: #6b4a30; }
.nso-pay-admin code { display: block; margin-top: 4px; padding: 6px 8px; color: #8a4a17; font-size: 12px; background: #fff; border: 1px solid #f0dcc4; border-radius: 8px; word-break: break-all; }
.nso-pay-admin small { display: block; margin-top: 10px; color: #a88a73; font-size: 12px; }
.nso-pay-admin .nso-pay-btn { width: 100%; }
.nso-pay-off { text-align: center; }
.nso-pay-off > i { font-size: 40px; color: #c2824a; }
.nso-pay-off h2 { justify-content: center; margin-top: 10px; }
.nso-pay-admin-note { margin-top: 12px; padding: 10px 12px; color: #9b2c1f; font-size: 13px; background: #fdeceb; border-radius: 12px; }
.nso-pay-history { margin-top: 18px; }
.nso-pay-table { display: grid; gap: 8px; }
.nso-pay-row { padding: 11px 14px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 12px; background: #fff; border: 1px solid #f0dcc4; border-radius: 13px; }
.nso-pay-row b { color: #4a2a10; }
.nso-pay-row small { display: block; color: #b9a08a; font-size: 12px; font-weight: 600; }
.nso-pay-row-coin { color: #b5651d; font-weight: 800; }
.nso-pay-badge { padding: 5px 10px; font-size: 12px; font-weight: 800; white-space: nowrap; border-radius: 99px; }
.nso-pay-badge.is-ok { color: #1f6b3a; background: #e3f5ea; }
.nso-pay-badge.is-wait { color: #8a4a17; background: #fff0d6; }
.nso-pay-badge.is-off { color: #7d6655; background: #f1e8de; }
.nso-pay-badge.is-err { color: #9b2c1f; background: #fdeceb; }
.nso-pay-empty { margin: 0; color: #a88a73; font-size: 14px; }
.nso-pay-result h1 { margin: 14px 0 6px; color: #b5651d !important; font-size: 24px; font-weight: 800; text-align: center; }
.nso-pay-result > p { color: #8a4a17; text-align: center; }
.nso-pay-result-code { margin: 0 0 16px; padding: 9px; color: #9b7a60; font-size: 13px; text-align: center; background: #fff; border: 1px dashed #ecd0b0; border-radius: 12px; }
.nso-pay-result .nso-auth-submit { text-decoration: none; }
@media (max-width: 991px) { .nso-pay-grid { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .nso-pay-hero { padding: 20px; flex-direction: column; align-items: flex-start; }
  .nso-pay-hero h1 { font-size: 25px; }
  .nso-pay-balance { width: 100%; text-align: left; }
  .nso-pay-card { padding: 18px; border-radius: 17px; }
  .nso-pay-qrwrap { grid-template-columns: 1fr; }
  .nso-pay-qr { max-width: 260px; margin: 0 auto; }
  .nso-pay-row { grid-template-columns: 1fr auto; }
  .nso-pay-row-coin { grid-column: 1; }
  .nso-pay-row .nso-pay-badge { grid-row: 1 / span 2; grid-column: 2; }
}

/* ===== Trang cấu hình PayOS (admin) ===== */
.nso-payos-config { width: min(500px, 100%); }
.nso-payos-label { display: block; margin: 0 2px 6px; color: #8a4a17; font-size: 13px; font-weight: 800; }
.nso-payos-state { margin-bottom: 18px; padding: 11px 14px; font-size: 14px; font-weight: 700; border-radius: 13px; }
.nso-payos-state i { margin-right: 6px; }
.nso-payos-state.is-ok { color: #1f6b3a; background: #e9f7ee; border: 1px solid #b9e2c7; }
.nso-payos-state.is-off { color: #8a4a17; background: #fff3dc; border: 1px solid #ecd0b0; }
.nso-payos-config .nso-auth-hint a { color: #b5651d; font-weight: 800; }
.nso-payos-save { width: 100%; height: 46px; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #8a4a17; font-weight: 800; background: #fbeedd; border: 1px solid #f0cfa6; border-radius: 13px; cursor: pointer; }
.nso-payos-save:hover { background: #f6e1c6; }
.nso-pay-off .nso-pay-btn { margin-top: 12px; }

/* ===== Trang tài khoản ===== */
.nso-acc { width: min(500px, 100%); }
.nso-acc-head { margin-bottom: 20px; text-align: center; }
.nso-acc-avatar { width: 88px; height: 88px; margin: 0 auto; display: grid; place-items: center; background: #fff; border: 3px solid #f0cfa6; border-radius: 50%; box-shadow: 0 8px 20px rgba(107,58,16,.22); overflow: hidden; }
.nso-acc-avatar img { width: 64px; height: 64px; object-fit: contain; }
.nso-acc-head h1 { margin: 12px 0 0; color: #b5651d !important; font-size: 26px; font-weight: 800; word-break: break-all; }
.nso-acc-list { margin: 0; display: grid; gap: 8px; }
.nso-acc-list > div { min-height: 50px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid #f0dcc4; border-radius: 13px; }
.nso-acc-list dt { flex: 0 0 auto; color: #9b7a60; font-size: 14px; font-weight: 600; white-space: nowrap; }
.nso-acc-list dt i { width: 18px; margin-right: 6px; color: #c2824a; text-align: center; }
.nso-acc-list dd { margin: 0; color: #4a2a10; font-weight: 800; text-align: right; word-break: break-all; }
.nso-acc-list dd small { color: #9b7a60; font-weight: 700; }
.nso-acc-strong { color: #b5651d !important; font-size: 17px; }
.nso-acc-empty { color: #b9a08a; font-weight: 600; }
.nso-acc-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; font-size: 13px; font-weight: 800; white-space: nowrap; border-radius: 99px; }
.nso-acc-badge.is-ok { color: #fff; background: #22a35a; box-shadow: 0 4px 10px rgba(34,163,90,.25); }
.nso-acc-badge.is-err { color: #fff; background: #d93a2b; box-shadow: 0 4px 10px rgba(217,58,43,.25); }
.nso-acc-actions { margin-top: 20px; display: grid; gap: 10px; }
.nso-acc-actions .nso-auth-submit { margin-top: 0; text-decoration: none !important; }
.nso-acc-logout { height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #c0392b !important; font-weight: 800; text-decoration: none !important; background: #fff; border: 1.5px solid #f1c3bd; border-radius: 13px; transition: background .2s, color .2s; }
.nso-acc-logout:hover { color: #fff !important; background: #d93a2b; border-color: #d93a2b; }
a.nso-auth-submit, a.nso-auth-submit:hover { color: #fff !important; text-decoration: none !important; }

/* ===== Thanh tài khoản: 4 ô chức năng ===== */
.nso-member-tiles { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px !important; flex: 1 1 auto; max-width: 560px; }
.nso-member-tiles a { min-height: 74px; padding: 10px 6px !important; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; font-size: 13px !important; font-weight: 800; color: #8a4a17 !important; background: #fff !important; border: 1px solid #f0cfa6 !important; border-radius: 15px !important; transition: transform .2s, box-shadow .2s, background .2s; }
.nso-member-tiles a i { width: 38px; height: 38px; margin: 0 !important; display: grid; place-items: center; color: #fff; font-size: 17px; background: linear-gradient(135deg, #d4893f, #9a4f12); border-radius: 12px; box-shadow: 0 6px 14px rgba(154,79,18,.28); }
.nso-member-tiles a:nth-child(2) i { background: linear-gradient(135deg, #f2c14e, #c8860f); }
.nso-member-tiles a:nth-child(3) i { background: linear-gradient(135deg, #b678e8, #6b3fb3); }
.nso-member-tiles a:nth-child(4) i { background: linear-gradient(135deg, #3fb36b, #1f7a45); }
.nso-member-tiles a:hover { color: #6b3a10 !important; transform: translateY(-3px); box-shadow: 0 10px 22px rgba(107,58,16,.16); }
@media (max-width: 767px) { .nso-member-tiles { width: 100%; max-width: none; gap: 8px !important; } .nso-member-tiles a { min-height: 70px; font-size: 12px !important; } .nso-member-tiles a i { width: 34px; height: 34px; font-size: 15px; } }

/* ===== Đổi lượng / Đổi xu / Cầu nguyện / Cửa hàng ===== */
.nso-gs-wallet { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.nso-gs-wallet > div { min-width: 120px; padding: 12px 16px; text-align: right; background: rgba(255,255,255,.12); border: 1px solid rgba(255,227,198,.35); border-radius: 15px; }
.nso-gs-wallet small { display: block; color: #ffe3c6; font-size: 12px; font-weight: 700; }
.nso-gs-wallet strong { color: #ffc83d; font-size: 22px; font-weight: 900; }
.nso-gs-notice { margin: -6px 0 16px; padding: 10px 14px; color: #77400d; font-size: 13px; font-weight: 700; background: #fff3dc; border: 1px dashed #e3b67e; border-radius: 13px; }
.nso-gs-notice i { margin-right: 6px; color: #c9772b; }
.nso-gs .nso-pay-chip b { font-size: 15px; }
.nso-gs .nso-pay-side .nso-pay-btn { width: 100%; margin-top: 12px; }
.nso-gs-center { text-align: center; justify-content: center; }
/* Gacha */
.nso-gs-altar { text-align: center; background: radial-gradient(circle at 50% 30%, #fff 0, #fffaf3 45%, #fbeedd 100%); }
.nso-gs-orb { width: 120px; height: 120px; margin: 6px auto 14px; display: grid; place-items: center; color: #fff; font-size: 50px; background: radial-gradient(circle at 35% 30%, #ffe08a, #d4893f 55%, #8a4a17); border-radius: 50%; box-shadow: 0 0 0 10px rgba(212,137,63,.12), 0 0 40px rgba(255,190,90,.6); animation: nsoOrb 3s ease-in-out infinite; }
@keyframes nsoOrb { 0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 0 0 10px rgba(212,137,63,.12), 0 0 40px rgba(255,190,90,.55); } 50% { transform: translateY(-8px) scale(1.03); box-shadow: 0 0 0 16px rgba(212,137,63,.08), 0 0 60px rgba(255,190,90,.8); } }
.nso-gs-pulls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 12px; }
.nso-gs-pull { position: relative; width: 100%; min-height: 76px; padding: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #fff; background: linear-gradient(135deg, #d4893f, #9a4f12); border: 0; border-radius: 16px; box-shadow: 0 10px 22px rgba(154,79,18,.32); cursor: pointer; transition: transform .2s, filter .2s; }
.nso-gs-pull.is-ten { background: linear-gradient(135deg, #b678e8, #6b3fb3); box-shadow: 0 10px 22px rgba(107,63,179,.32); }
.nso-gs-pull span { font-size: 16px; font-weight: 900; }
.nso-gs-pull b { font-size: 13px; color: #ffe9c9; }
.nso-gs-pull em { position: absolute; top: -9px; right: 10px; padding: 2px 8px; font-style: normal; font-size: 11px; font-weight: 900; color: #fff; background: #d93a2b; border-radius: 99px; }
.nso-gs-pull:hover { transform: translateY(-2px); filter: brightness(1.07); }
.nso-gs-pool { display: grid; gap: 6px; }
.nso-gs-pool-row { padding: 8px 10px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; font-size: 13px; background: #fff; border: 1px solid #f0dcc4; border-left-width: 4px; border-radius: 10px; }
.nso-gs-pool-row b { color: #8a4a17; }
.nso-gs-pool-row i { color: #c2824a; text-align: center; }
.is-legend { border-left-color: #e0a106 !important; } .is-epic { border-left-color: #8e44ad !important; } .is-rare { border-left-color: #2e86de !important; } .is-common { border-left-color: #b9a08a !important; }
.nso-gs-results { margin-bottom: 18px; }
.nso-gs-reveal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.nso-gs-prize { padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: #fff; border: 2px solid #f0dcc4; border-radius: 15px; opacity: 0; animation: nsoFlip .55s ease forwards; }
.nso-gs-prize i { width: 46px; height: 46px; display: grid; place-items: center; font-size: 22px; color: #fff; border-radius: 50%; background: #b9a08a; }
.nso-gs-prize b { color: #4a2a10; font-size: 13px; line-height: 1.3; }
.nso-gs-prize small { font-size: 11px; font-weight: 800; text-transform: uppercase; color: #9b7a60; }
.nso-gs-prize.is-rare { border-color: #9cc6f0; } .nso-gs-prize.is-rare i { background: #2e86de; } .nso-gs-prize.is-rare small { color: #2e86de; }
.nso-gs-prize.is-epic { border-color: #cfa6e6; background: #fbf5ff; } .nso-gs-prize.is-epic i { background: #8e44ad; } .nso-gs-prize.is-epic small { color: #8e44ad; }
.nso-gs-prize.is-legend { border-color: #f2c94c; background: #fffbea; box-shadow: 0 0 22px rgba(242,201,76,.55); } .nso-gs-prize.is-legend i { background: linear-gradient(135deg, #f7d154, #d18b00); } .nso-gs-prize.is-legend small { color: #c07f00; }
@keyframes nsoFlip { 0% { opacity: 0; transform: perspective(500px) rotateY(90deg) scale(.8); } 100% { opacity: 1; transform: perspective(500px) rotateY(0) scale(1); } }
.nso-gs-hist-items { color: #6b4a30; font-size: 13px; }
/* Cửa hàng */
.nso-gs-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.nso-gs-item { padding: 16px 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: #fff; border: 1px solid #f0dcc4; border-radius: 16px; transition: transform .2s, box-shadow .2s; }
.nso-gs-item:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(107,58,16,.14); }
.nso-gs-item-icon { width: 58px; height: 58px; display: grid; place-items: center; color: #fff; font-size: 26px; background: linear-gradient(135deg, #d4893f, #9a4f12); border-radius: 16px; box-shadow: 0 8px 18px rgba(154,79,18,.25); }
.nso-gs-item-icon.is-xu { background: linear-gradient(135deg, #f2c14e, #c8860f); }
.nso-gs-item-icon.is-luong { background: linear-gradient(135deg, #5fb8f0, #2366b5); }
.nso-gs-item-icon.is-yen { background: linear-gradient(135deg, #3fb36b, #1f7a45); }
.nso-gs-item-name { margin-top: 4px; color: #4a2a10; font-size: 15px; line-height: 1.3; }
.nso-gs-item-type { color: #b98557; font-size: 12px; font-weight: 700; }
.nso-gs-item-price { color: #b5651d; font-size: 19px; font-weight: 900; }
.nso-gs-item-price span { font-size: 12px; color: #9b7a60; }
.nso-gs-qty { display: grid; grid-template-columns: 34px 1fr 34px; gap: 6px; width: 100%; margin: 2px 0 4px; }
.nso-gs-qty button { height: 34px; color: #8a4a17; font-size: 18px; font-weight: 900; background: #fbeedd; border: 1px solid #f0cfa6; border-radius: 10px; cursor: pointer; }
.nso-gs-qty input { height: 34px; min-width: 0; text-align: center; color: #4a2a10; font-weight: 800; border: 1px solid #ecd0b0; border-radius: 10px; }
.nso-gs-item .nso-pay-btn { width: 100%; min-height: 42px; }
/* Trang admin */
.gs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.gs-grid label { display: grid; gap: 6px; color: #8a4a17; font-size: 13px; font-weight: 800; }
.gs-grid small { color: #a88a73; font-weight: 600; }
.gs-help { margin: 10px 0; color: #8a6c55; font-size: 13px; }
.gs-table-wrap { overflow-x: auto; margin: 6px 0 12px; }
.gs-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0 6px; }
.gs-table th { padding: 0 6px; color: #9b7a60; font-size: 12px; font-weight: 800; text-align: left; }
.gs-table td { padding: 4px; vertical-align: top; }
.gs-table .form-control { min-height: 40px !important; font-size: 14px; }
.gs-table td:nth-child(1) { width: 26%; } .gs-table td:nth-child(3) { width: 18%; }
.gs-item-name { display: block; margin-top: 3px; color: #2e8b57; font-size: 11px; font-weight: 700; }
.gs-c { text-align: center; vertical-align: middle !important; }
.gs-lock { width: 18px; height: 18px; }
.gs-del { width: 34px; height: 34px; color: #c0392b; background: #fdeceb; border: 1px solid #f3c2bd; border-radius: 10px; cursor: pointer; }
.gs-save { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); margin-top: 18px; z-index: 5; }
.nso-gs-admin .nso-pay-card { margin-bottom: 18px; }
@media (max-width: 767px) {
  .nso-gs-wallet { width: 100%; justify-content: stretch; }
  .nso-gs-wallet > div { flex: 1 1 0; min-width: 0; padding: 10px; text-align: left; }
  .nso-gs-wallet strong { font-size: 17px; }
  .nso-gs-reveal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nso-gs-shop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nso-gs-item { padding: 12px 10px; }
  .nso-gs-pulls { grid-template-columns: 1fr; }
  .gs-save { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
.nso-member-tiles a { height: 100%; align-self: stretch; }
.nso-member-tiles a span { white-space: nowrap; }
@media (max-width: 420px) { .nso-member-tiles a { font-size: 11.5px !important; padding: 8px 2px !important; } }
.gs-table td:nth-child(2) { width: 120px; min-width: 120px; } .gs-table td:nth-child(2) .form-control { padding-left: 8px; padding-right: 4px; }

/* Icon SVG cho 4 ô (luôn hiện, không cần thư viện icon) */
.nso-tile-ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, #d4893f, #9a4f12); box-shadow: 0 6px 14px rgba(154,79,18,.28); }
.nso-tile-ico svg { width: 24px; height: 24px; }
.nso-member-tiles a:nth-child(1) .nso-tile-ico { background: linear-gradient(135deg, #5fb8f0, #2366b5); box-shadow: 0 6px 14px rgba(35,102,181,.3); }
.nso-member-tiles a:nth-child(2) .nso-tile-ico { background: linear-gradient(135deg, #f2c14e, #c8860f); box-shadow: 0 6px 14px rgba(200,134,15,.3); }
.nso-member-tiles a:nth-child(3) .nso-tile-ico { background: linear-gradient(135deg, #b678e8, #6b3fb3); box-shadow: 0 6px 14px rgba(107,63,179,.3); }
.nso-member-tiles a:nth-child(4) .nso-tile-ico { background: linear-gradient(135deg, #3fb36b, #1f7a45); box-shadow: 0 6px 14px rgba(31,122,69,.3); }
.nso-member-tiles a:hover .nso-tile-ico { transform: scale(1.06); }
@media (max-width: 767px) { .nso-tile-ico { width: 38px; height: 38px; } .nso-tile-ico svg { width: 22px; height: 22px; } }

/* Icon vật phẩm trong game (ảnh pixel phóng to giữ nét) */
.nso-gs-img { display: block; width: 40px; height: 40px; object-fit: contain; image-rendering: pixelated; image-rendering: crisp-edges; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.nso-gs-item-icon.has-img { background: radial-gradient(circle at 50% 40%, #fff 0, #fbeedd 70%); border: 1px solid #f0cfa6; box-shadow: inset 0 0 0 3px #fff, 0 8px 18px rgba(154,79,18,.18); }
.nso-gs-item-icon.has-img .nso-gs-img { width: 44px; height: 44px; }
.nso-gs-prize-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 22px; background: #b9a08a; }
.nso-gs-prize-ico.has-img { background: radial-gradient(circle at 50% 40%, #fff 0, #f6ead9 75%); border: 2px solid #ecd0b0; }
.nso-gs-prize-ico .nso-gs-img { width: 38px; height: 38px; }
.nso-gs-prize.is-rare .nso-gs-prize-ico:not(.has-img) { background: #2e86de; } .nso-gs-prize.is-rare .nso-gs-prize-ico.has-img { border-color: #2e86de; }
.nso-gs-prize.is-epic .nso-gs-prize-ico:not(.has-img) { background: #8e44ad; } .nso-gs-prize.is-epic .nso-gs-prize-ico.has-img { border-color: #8e44ad; }
.nso-gs-prize.is-legend .nso-gs-prize-ico:not(.has-img) { background: linear-gradient(135deg, #f7d154, #d18b00); } .nso-gs-prize.is-legend .nso-gs-prize-ico.has-img { border-color: #e0a106; box-shadow: 0 0 14px rgba(242,201,76,.7); }
.nso-gs-pool-row { grid-template-columns: 30px 1fr auto !important; }
.nso-gs-pool-ico { width: 30px; height: 30px; display: grid; place-items: center; color: #c2824a; }
.nso-gs-pool-ico .nso-gs-img { width: 26px; height: 26px; }
.gs-item-ico { width: 18px; height: 18px; margin-right: 4px; vertical-align: middle; object-fit: contain; image-rendering: pixelated; }

.nso-gs-svg { display: block; width: 38px; height: 38px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.2)); }
.nso-gs-pool-ico .nso-gs-svg { width: 24px; height: 24px; }
.nso-gs-prize-ico .nso-gs-svg { width: 34px; height: 34px; }

/* Gacha: phần thưởng Cực hiếm + điểm tinh tú */
.nso-gs-feature-title { margin-bottom: 12px; color: #b5651d; font-size: 18px; font-weight: 900; text-align: center; }
.nso-gs-feature-title i { color: #e0a106; margin-right: 4px; }
.nso-gs-feature { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 16px; }
.nso-gs-feature-item { width: 128px; padding: 14px 10px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: linear-gradient(180deg, #fffbea, #fff); border: 2px solid #f2c94c; border-radius: 16px; box-shadow: 0 0 18px rgba(242,201,76,.45); animation: nsoGlow 2.4s ease-in-out infinite; }
.nso-gs-feature-item b { color: #6b3a10; font-size: 14px; line-height: 1.3; }
.nso-gs-feature-ico { width: 64px; height: 64px; display: grid; place-items: center; color: #fff; font-size: 26px; border-radius: 50%; background: linear-gradient(135deg, #f7d154, #d18b00); }
.nso-gs-feature-ico.has-img { background: radial-gradient(circle at 50% 40%, #fff 0, #fff3cf 75%); border: 2px solid #e0a106; }
.nso-gs-feature-ico .nso-gs-img { width: 46px; height: 46px; }
.nso-gs-feature-ico .nso-gs-svg { width: 40px; height: 40px; }
@keyframes nsoGlow { 0%, 100% { box-shadow: 0 0 14px rgba(242,201,76,.35); transform: translateY(0); } 50% { box-shadow: 0 0 26px rgba(242,201,76,.7); transform: translateY(-3px); } }
.nso-gs-pity { margin: 4px 0 16px; padding: 12px 14px; text-align: left; background: #fff; border: 1px solid #f0dcc4; border-radius: 14px; }
.nso-gs-pity-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: #8a4a17; font-weight: 800; }
.nso-gs-pity-head i { color: #e0a106; margin-right: 4px; }
.nso-gs-pity-head b { color: #b5651d; font-size: 16px; }
.nso-gs-pity-bar { height: 12px; overflow: hidden; background: #f6ead9; border-radius: 99px; }
.nso-gs-pity-bar i { display: block; height: 100%; min-width: 4px; background: linear-gradient(90deg, #f7d154, #e0a106, #c06a00); border-radius: 99px; transition: width .6s ease; }
.nso-gs-pity small { display: block; margin-top: 8px; color: #9b7a60; font-size: 12px; }
.nso-gs-pity-tag { padding: 2px 8px; font-style: normal; font-size: 10px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #f7d154, #d18b00); border-radius: 99px; }
.nso-gs-rar { display: inline-block; margin-left: 6px; padding: 1px 7px; font-size: 10px; font-weight: 800; border-radius: 99px; vertical-align: middle; }
.nso-gs-rar.is-common { color: #7d6655; background: #f1e8de; }
.nso-gs-rar.is-rare { color: #fff; background: #2e86de; }
.nso-gs-rar.is-legend { color: #fff; background: linear-gradient(135deg, #f7d154, #d18b00); }
.nso-gs-pool-row.is-rare { border-left-color: #2e86de !important; }
@media (max-width: 767px) { .nso-gs-feature-item { width: calc(50% - 6px); } }
.gs-table[data-list=gacha] { min-width: 880px; }
.gs-rarity { min-width: 110px; }

/* ===== Bảng kích hoạt tài khoản (sau đăng ký / đăng nhập) ===== */
.nso-act-modal { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 16px; background: rgba(40,18,4,.55); backdrop-filter: blur(3px); animation: nsoActFade .2s ease both; }
.nso-act-modal.is-closing { animation: nsoActFade .2s ease reverse both; }
body.nso-act-open { overflow: hidden; }
.nso-act-card { position: relative; width: min(400px, 100%); padding: 30px 24px 22px; text-align: center; background: #fffaf3; border: 1px solid #f0cfa6; border-radius: 22px; box-shadow: 0 24px 60px rgba(40,18,4,.4), 0 2px 0 #fff inset; animation: nsoActPop .3s cubic-bezier(.2,.9,.3,1.2) both; }
.nso-act-x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; color: #9b7a60; font-size: 24px; line-height: 1; background: none; border: 0; border-radius: 10px; cursor: pointer; }
.nso-act-x:hover { color: #6b3a10; background: #fbeedd; }
.nso-act-icon { width: 70px; height: 70px; margin: 0 auto 12px; display: grid; place-items: center; background: linear-gradient(135deg, #f7d154, #d18b00); border-radius: 50%; box-shadow: 0 0 0 8px rgba(247,209,84,.2), 0 10px 24px rgba(209,139,0,.35); }
.nso-act-icon svg { width: 36px; height: 36px; }
.nso-act-card h2 { margin: 0 0 8px; color: #b5651d !important; font-size: 23px; font-weight: 900; }
.nso-act-card > p { margin: 0 0 16px; color: #6b4a30; font-size: 15px; line-height: 1.55; }
.nso-act-card > p b { color: #b5651d; }
.nso-act-progress { margin-bottom: 18px; padding: 12px 14px; text-align: left; background: #fff; border: 1px solid #f0dcc4; border-radius: 14px; }
.nso-act-progress-head { display: flex; justify-content: space-between; margin-bottom: 8px; color: #8a4a17; font-size: 13px; font-weight: 700; }
.nso-act-progress-head b { color: #b5651d; }
.nso-act-bar { height: 10px; overflow: hidden; background: #f6ead9; border-radius: 99px; }
.nso-act-bar i { display: block; height: 100%; min-width: 4px; background: linear-gradient(90deg, #d4893f, #9a4f12); border-radius: 99px; }
.nso-act-progress small { display: block; margin-top: 8px; color: #9b7a60; font-size: 12px; }
.nso-act-actions { display: grid; gap: 10px; }
.nso-act-actions .nso-auth-submit { margin: 0; }
.nso-act-close { height: 46px; color: #8a4a17; font-weight: 800; background: #fbeedd; border: 1px solid #f0cfa6; border-radius: 13px; cursor: pointer; }
.nso-act-close:hover { background: #f6e1c6; }
@keyframes nsoActFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nsoActPop { from { opacity: 0; transform: translateY(16px) scale(.95); } to { opacity: 1; transform: none; } }

/* Icon động trong game (nhiều khung hình xếp dọc) */
.nso-sprite { display: block; overflow: hidden; }
.nso-sprite img { display: block; width: 100%; height: calc(var(--frames, 1) * 100%); image-rendering: pixelated; image-rendering: crisp-edges; animation: nsoSprite calc(var(--frames, 1) * .18s) steps(var(--frames, 1)) infinite; }
@keyframes nsoSprite { from { transform: translateY(0); } to { transform: translateY(-100%); } }
/* Bảng kích hoạt: Hỏa Kỳ Lân thay cho hình tròn cam */
.nso-act-icon { width: auto !important; height: auto !important; margin: -6px auto 6px !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; }
.nso-act-kylan { width: 96px; height: 96px; margin: 0 auto; filter: drop-shadow(0 6px 10px rgba(192,64,0,.35)) drop-shadow(0 0 14px rgba(255,170,60,.45)); }

/* ===== Chơi trên web ===== */
.nso-web-login { max-width: 460px; margin: 0 auto; }
.nso-web-status { min-height: 20px; margin: 12px 2px 0; color: #8a4a17; font-size: 14px; font-weight: 700; text-align: center; }
.nso-web-status.is-err { color: #c0392b; }
.nso-web-chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.nso-web-char { padding: 16px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border: 1.5px solid #ecd0b0; border-radius: 16px; cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; }
.nso-web-char:hover { transform: translateY(-3px); border-color: #c9772b; box-shadow: 0 10px 22px rgba(107,58,16,.15); }
.nso-web-char b { color: #4a2a10; font-size: 16px; }
.nso-web-char small { color: #9b7a60; font-size: 12px; font-weight: 700; }
.nso-web-char-ava { width: 56px; height: 56px; display: grid; place-items: center; color: #fff; font-size: 24px; font-weight: 900; border-radius: 50%; background: linear-gradient(135deg, #5fb8f0, #2366b5); }
.nso-web-char-ava.g0 { background: linear-gradient(135deg, #f19bb8, #c2185b); }
.nso-web-game { padding: 16px; background: #fffaf3; border: 1px solid #f0cfa6; border-radius: 20px; box-shadow: 0 18px 40px rgba(107,58,16,.18); }
.nso-web-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-bottom: 12px; }
.nso-web-me b { display: block; color: #b5651d; font-size: 18px; font-weight: 900; }
.nso-web-me small { color: #9b7a60; font-size: 12px; font-weight: 700; }
.nso-web-bars { display: grid; gap: 6px; }
.nso-web-bar { position: relative; height: 18px; overflow: hidden; background: #f1e3d2; border-radius: 99px; }
.nso-web-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; transition: width .4s; }
.nso-web-bar.is-hp i { background: linear-gradient(90deg, #e74c3c, #c0392b); }
.nso-web-bar.is-mp i { background: linear-gradient(90deg, #3498db, #2366b5); }
.nso-web-bar span { position: relative; display: block; text-align: center; color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.nso-web-exit { height: 38px; padding: 0 14px; color: #c0392b; font-weight: 800; background: #fff; border: 1.5px solid #f1c3bd; border-radius: 12px; cursor: pointer; }
.nso-web-stage canvas { display: block; width: 100%; border-radius: 14px; border: 1px solid #ecd0b0; cursor: crosshair; touch-action: manipulation; }
.nso-web-legend { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 14px; color: #6b4a30; font-size: 12px; font-weight: 700; }
.nso-web-legend i { display: inline-block; width: 11px; height: 11px; margin-right: 4px; border-radius: 50%; vertical-align: -1px; }
.nso-web-legend .is-me { background: #e67e22; } .nso-web-legend .is-pl { background: #2e86de; } .nso-web-legend .is-mob { background: #e74c3c; }
.nso-web-legend .is-npc { background: #f1c40f; } .nso-web-legend .is-item { background: #27ae60; } .nso-web-legend .is-wp { background: #b07cc6; border-radius: 3px; }
.nso-web-hint { margin: 6px 0 0; color: #a88a73; font-size: 12px; }
.nso-web-chat { margin-top: 12px; }
.nso-web-chatlog { height: 140px; overflow-y: auto; padding: 10px 12px; font-size: 13px; line-height: 1.5; background: #fff; border: 1px solid #f0dcc4; border-radius: 12px; }
.nso-web-chatlog b { color: #2366b5; }
.nso-web-chatlog .is-sys { color: #9b7a60; font-style: italic; }
.nso-web-chatform { display: grid; grid-template-columns: 1fr 48px; gap: 8px; margin-top: 8px; }
.nso-web-chatform input { height: 44px; padding: 0 14px; color: #4a2a10; border: 1.5px solid #ecd0b0; border-radius: 12px; outline: none; }
.nso-web-chatform input:focus { border-color: #c9772b; }
.nso-web-chatform button { color: #fff; background: linear-gradient(135deg, #d4893f, #9a4f12); border: 0; border-radius: 12px; cursor: pointer; }
.nso-web-debug { margin-top: 16px; }
.nso-web-debug summary { color: #8a4a17; font-weight: 800; cursor: pointer; }
.nso-web-debug pre { max-height: 220px; overflow: auto; margin: 10px 0 0; padding: 10px; font-size: 11px; color: #4a2a10; background: #fff; border: 1px solid #f0dcc4; border-radius: 10px; white-space: pre-wrap; }
@media (max-width: 767px) { .nso-web-top { grid-template-columns: 1fr auto; } .nso-web-bars { grid-column: 1 / -1; grid-row: 2; } .nso-web-game { padding: 12px; } }
.nso-download-links .nso-dl-web { grid-column: 1 / -1; justify-content: center; color: #fff !important; background: linear-gradient(135deg, #d4893f, #9a4f12) !important; border-color: transparent !important; }
.nso-download-links .nso-dl-web i, .nso-download-links .nso-dl-web small { color: #ffe9c9 !important; }

/* Chơi trên web: tùy chọn trước khi vào game */
.nso-web-opts{display:flex;flex-direction:column;gap:12px}
.nso-web-opt-label{font-weight:700;color:#6b4a30;font-size:14px}
.nso-web-select{width:100%;padding:12px 14px;border-radius:12px;border:1px solid #e3c9a3;background:#fffaf2;color:#3b230f;font-size:15px;font-weight:600}
.nso-web-check{display:flex;align-items:center;gap:10px;color:#3b230f;font-size:14px}
.nso-web-check input{width:18px;height:18px;accent-color:#b5651d}
.nso-web-notes{margin:16px 0 0;padding-left:18px;color:#6b4a30;font-size:13px;line-height:1.6}
.nso-web-orient{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.nso-web-orient input{position:absolute;opacity:0;pointer-events:none}
.nso-web-orient span{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;border-radius:12px;border:1.5px solid #e3c9a3;background:#fffaf2;color:#6b4a30;font-weight:700;cursor:pointer}
.nso-web-orient span .fa{font-size:20px}
.nso-web-orient input:checked + span{background:#b5651d;border-color:#b5651d;color:#fff}

/* Thanh dưới 7 nút: Trang chủ, Tin tức, Tố cáo, [Tải game], Xếp hạng, Nạp tiền, Tài khoản */
@media (max-width: 991px) {
  .nso-bottom-nav { grid-template-columns: repeat(7, 1fr) !important; padding-left: 2px !important; padding-right: 2px !important; }
  .nso-bottom-nav a { font-size: 9.5px !important; gap: 3px !important; white-space: nowrap; letter-spacing: -.1px; min-width: 0; }
  .nso-bottom-nav a span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .nso-bottom-nav i { font-size: 17px !important; }
  .nso-bottom-nav .nso-bottom-main i { width: 46px !important; height: 46px !important; font-size: 19px !important; }
  .nso-bottom-nav .nso-bottom-alert { color: #c0392b; }
}

/* Bảng xếp hạng */
.nso-rank-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.nso-rank-tabs a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; background: #fffaf3; border: 1.5px solid #f0cfa6; color: #8a6446; font-weight: 800; font-size: 13px; text-decoration: none !important; text-align: center; }
.nso-rank-tabs a i { font-size: 19px; color: #c2824a; }
.nso-rank-tabs a.is-on { background: linear-gradient(135deg, #d4893f, #9a4f12); border-color: #9a4f12; color: #fff; box-shadow: 0 8px 18px rgba(154,79,18,.28); }
.nso-rank-tabs a.is-on i { color: #ffe2b0; }
.nso-report-tabs { grid-template-columns: repeat(2, 1fr); }
.nso-rank-sub { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 2px; scrollbar-width: none; }
.nso-rank-sub a { flex: 1 0 auto; padding: 8px 14px; border-radius: 999px; background: #fff3e2; border: 1px solid #f0cfa6; color: #8a6446; font-weight: 700; font-size: 13px; text-align: center; text-decoration: none !important; }
.nso-rank-sub a.is-on { background: #b5651d; border-color: #b5651d; color: #fff; }
.nso-rank-head { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; padding: 0 12px 8px; color: #a88a73; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.nso-rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.nso-rank-list li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid #f3dcc0; }
.nso-rank-no { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #f6e6d2; color: #8a6446; font-weight: 800; font-size: 14px; }
.nso-rank-who { min-width: 0; display: flex; flex-direction: column; }
.nso-rank-who b { color: #3b230f; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nso-rank-who small { color: #a88a73; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nso-rank-val { color: #b5651d; font-weight: 800; font-size: 14px; white-space: nowrap; }
.nso-rank-list li.is-top { border-width: 1.5px; }
.nso-rank-list li.is-top1 { background: linear-gradient(90deg, #fff4cc, #fff); border-color: #f1c40f; }
.nso-rank-list li.is-top1 .nso-rank-no { background: linear-gradient(135deg, #f9d423, #e5a100); color: #fff; }
.nso-rank-list li.is-top2 { background: linear-gradient(90deg, #eef2f5, #fff); border-color: #b8c4cc; }
.nso-rank-list li.is-top2 .nso-rank-no { background: linear-gradient(135deg, #d7dee3, #8f9ba3); color: #fff; }
.nso-rank-list li.is-top3 { background: linear-gradient(90deg, #fbe5d4, #fff); border-color: #d9935a; }
.nso-rank-list li.is-top3 .nso-rank-no { background: linear-gradient(135deg, #e8a76f, #b0652a); color: #fff; }
@media (max-width: 480px) { .nso-rank-tabs a { font-size: 12px; padding: 10px 4px; } }

/* Tố cáo lừa đảo */
.nso-report-form { display: flex; flex-direction: column; gap: 10px; }
.nso-report-text { width: 100%; min-height: 130px; padding: 12px 14px; border-radius: 12px; border: 1px solid #e3c9a3; background: #fffaf2; color: #3b230f; font-size: 15px; resize: vertical; }
.nso-report-file { width: 100%; padding: 10px; border-radius: 12px; border: 1px dashed #d9b48a; background: #fffaf2; color: #6b4a30; font-size: 14px; }
.nso-report-item { padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #f3dcc0; margin-bottom: 8px; }
.nso-report-item small { color: #a88a73; font-size: 12px; }
.nso-report-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 2px; }
.nso-report-top b { color: #3b230f; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nso-report-st { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.nso-report-st.is-wait { background: #fff1d6; color: #b5651d; }
.nso-report-st.is-ok { background: #e3f7e8; color: #1e8a3c; }
.nso-report-st.is-no { background: #fde4e1; color: #c0392b; }
.nso-report-note { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: #fff6ea; color: #6b4a30; font-size: 13px; }
.nso-report-tip { margin: 12px 0 0; color: #a88a73; font-size: 12.5px; line-height: 1.5; }
.nso-report-body { margin: 8px 0; color: #3b230f; font-size: 14px; line-height: 1.55; word-break: break-word; }
.nso-report-imgs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.nso-report-imgs img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid #f0cfa6; }
.nso-report-act { display: flex; flex-direction: column; gap: 8px; }
.nso-report-act input { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid #e3c9a3; background: #fffaf2; font-size: 14px; }
.nso-report-act div { display: flex; gap: 6px; flex-wrap: wrap; }
.nso-report-act button { padding: 7px 12px; border-radius: 10px; border: 1px solid #e3c9a3; background: #fff; color: #6b4a30; font-weight: 700; font-size: 13px; }
.nso-report-act button.is-ok { background: #1e8a3c; border-color: #1e8a3c; color: #fff; }
.nso-report-act button.is-no { background: #c0392b; border-color: #c0392b; color: #fff; }
.nso-report-act button.is-del { margin-left: auto; color: #c0392b; }
.nso-rank-sub a em { font-style: normal; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: rgba(181,101,29,.15); font-size: 11px; }
.nso-rank-sub a.is-on em { background: rgba(255,255,255,.25); }
