/* NSG Nhớ Nhanh: giao diện "vở ô li" – mực xanh, bút dạ quang, bút đỏ của cô giáo */
.nsgnn {
	--nn-paper: #ffffff;
	--nn-grid: #e6e0f6;
	--nn-margin: #f2a7b6;
	--nn-ink: #24348f;
	--nn-text: #1d2133;
	--nn-muted: #5d6280;
	--nn-highlight: #ffe45c;
	--nn-red: #d7263d;
	--nn-gold: #a87a00;
	--nn-line: #d9d6e8;
	--nn-radius: 12px;
	font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--nn-text);
	font-size: 16px;
	line-height: 1.6;
	max-width: 760px;
	margin: 0 auto;
	-webkit-text-size-adjust: 100%;
}
.nsgnn *, .nsgnn *::before, .nsgnn *::after { box-sizing: border-box; }
.nsgnn [hidden] { display: none !important; }
.nsgnn .nsgnn-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Đầu trang */
.nsgnn .nsgnn-head {
	display: flex; align-items: flex-end; justify-content: space-between;
	gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.nsgnn .nsgnn-brand {
	font-family: "Patrick Hand", "Be Vietnam Pro", cursive;
	font-size: 2.4rem; line-height: 1; font-weight: 400;
	color: var(--nn-ink); margin: 0;
}
.nsgnn .nsgnn-sub { margin: 4px 0 0; color: var(--nn-muted); font-size: .95rem; }
.nsgnn .nsgnn-pill {
	font-size: .85rem; font-weight: 600; padding: 5px 12px; border-radius: 999px;
	background: #eef0fb; color: var(--nn-ink);
}
.nsgnn .nsgnn-pill.is-premium { background: #fff5d1; color: var(--nn-gold); }
.nsgnn .nsgnn-pill.is-empty { background: #fde8eb; color: var(--nn-red); }

/* Tab */
.nsgnn .nsgnn-tabs {
	display: flex; gap: 4px; overflow-x: auto; margin-bottom: 16px;
	border-bottom: 2px solid var(--nn-line);
}
.nsgnn .nsgnn-tab {
	appearance: none; background: none; border: 0; cursor: pointer;
	font: inherit; font-weight: 600; font-size: .95rem; color: var(--nn-muted);
	padding: 10px 12px 9px; margin-bottom: -2px; white-space: nowrap;
	border-bottom: 3px solid transparent; display: inline-flex; align-items: center; gap: 6px;
}
.nsgnn .nsgnn-tab:hover { color: var(--nn-ink); }
.nsgnn .nsgnn-tab.is-active { color: var(--nn-ink); border-bottom-color: var(--nn-ink); }
.nsgnn .nsgnn-badge {
	background: var(--nn-red); color: #fff; font-size: .72rem; line-height: 1;
	padding: 3px 7px; border-radius: 999px;
}

/* Trang vở ô li */
.nsgnn .nsgnn-paper {
	position: relative;
	background-color: var(--nn-paper);
	background-image:
		linear-gradient(var(--nn-grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--nn-grid) 1px, transparent 1px);
	background-size: 24px 24px;
	border: 1px solid var(--nn-line);
	border-radius: var(--nn-radius);
	padding: 22px 20px 22px 56px;
	box-shadow: 0 1px 0 var(--nn-line), 0 8px 24px -18px rgba(36, 52, 143, .45);
}
.nsgnn .nsgnn-paper::before {
	content: ""; position: absolute; top: 0; bottom: 0; left: 38px;
	width: 2px; background: var(--nn-margin);
}

/* Form */
.nsgnn .nsgnn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nsgnn .nsgnn-field { display: block; margin-bottom: 14px; }
.nsgnn .nsgnn-field > span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; color: var(--nn-ink); }
.nsgnn select, .nsgnn textarea {
	width: 100%; font: inherit; color: var(--nn-text);
	background: rgba(255, 255, 255, .92); border: 1.5px solid #c9c4e0; border-radius: 10px;
	padding: 10px 12px;
}
.nsgnn textarea { resize: vertical; min-height: 170px; line-height: 1.55; }
.nsgnn select:focus, .nsgnn textarea:focus { outline: none; border-color: var(--nn-ink); box-shadow: 0 0 0 3px rgba(36, 52, 143, .15); }
.nsgnn .nsgnn-images { margin-bottom: 16px; }
.nsgnn .nsgnn-hint { margin: 8px 0 0; font-size: .86rem; color: var(--nn-muted); }
.nsgnn .nsgnn-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.nsgnn .nsgnn-thumbs:empty { display: none; }
.nsgnn .nsgnn-thumb { position: relative; width: 84px; height: 84px; }
.nsgnn .nsgnn-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid var(--nn-line); }
.nsgnn .nsgnn-thumb-x {
	position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%;
	border: 0; background: var(--nn-text); color: #fff; font-size: 16px; line-height: 1; cursor: pointer;
}
.nsgnn .nsgnn-form.is-busy textarea { opacity: .6; }

/* Nút */
.nsgnn .nsgnn-btn {
	appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
	padding: 10px 16px; border-radius: 10px; border: 1.5px solid var(--nn-ink);
	background: var(--nn-ink); color: #fff; min-height: 44px;
}
.nsgnn .nsgnn-btn:hover { background: #1b2873; color: #fff; }
.nsgnn .nsgnn-btn:disabled { opacity: .55; cursor: wait; }
.nsgnn .nsgnn-btn-main { width: 100%; font-size: 1.05rem; padding: 13px 16px; }
.nsgnn .nsgnn-btn-ghost { background: #fff; color: var(--nn-ink); }
.nsgnn .nsgnn-btn-ghost:hover { background: #eef0fb; color: var(--nn-ink); }
.nsgnn .nsgnn-btn-danger { background: #fff; color: var(--nn-red); border-color: var(--nn-red); }
.nsgnn .nsgnn-btn-danger:hover { background: #fde8eb; color: var(--nn-red); }
.nsgnn .nsgnn-btn-gold { background: var(--nn-highlight); color: var(--nn-text); border-color: #e3c52f; }
.nsgnn .nsgnn-btn-gold:hover { background: #ffdb2e; color: var(--nn-text); }
.nsgnn .nsgnn-btn:focus-visible, .nsgnn .nsgnn-tab:focus-visible, .nsgnn .nsgnn-link:focus-visible, .nsgnn .nsgnn-row-btn:focus-visible {
	outline: 3px solid rgba(36, 52, 143, .4); outline-offset: 2px;
}
.nsgnn .nsgnn-tag-gold {
	font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: var(--nn-highlight); color: var(--nn-text);
}
.nsgnn .nsgnn-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.nsgnn .nsgnn-toolbar { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.nsgnn .nsgnn-link {
	appearance: none; background: none; border: 0; padding: 0; font: inherit; font-size: .9rem;
	color: var(--nn-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* Thông báo */
.nsgnn .nsgnn-msg:empty { display: none; }
.nsgnn .nsgnn-msg { margin-top: 12px; }
.nsgnn .nsgnn-error { color: var(--nn-red); font-weight: 500; margin: 8px 0 0; }
.nsgnn .nsgnn-warning {
	color: var(--nn-red); border-left: 3px solid var(--nn-red); padding: 4px 0 4px 12px;
	margin: 0 0 16px; background: rgba(255, 255, 255, .85);
}
.nsgnn .nsgnn-upgrade {
	background: #fffbe6; border: 1.5px dashed #e3c52f; border-radius: 10px; padding: 14px 16px;
}
.nsgnn .nsgnn-upgrade p { margin: 0 0 10px; }
.nsgnn .nsgnn-upgrade-note { color: var(--nn-muted); font-size: .92rem; }
.nsgnn .nsgnn-loading { color: var(--nn-muted); }

/* Bài học */
.nsgnn .nsgnn-title {
	font-family: "Patrick Hand", "Be Vietnam Pro", cursive; font-weight: 400;
	font-size: 1.9rem; line-height: 1.15; color: var(--nn-ink); margin: 0 0 6px;
}
.nsgnn .nsgnn-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 18px; }
.nsgnn .nsgnn-chip { font-size: .8rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #eef0fb; color: var(--nn-ink); }
.nsgnn .nsgnn-chip.is-done { background: #e3f6ea; color: #17733f; }
.nsgnn .nsgnn-date { font-size: .82rem; color: var(--nn-muted); }
.nsgnn .nsgnn-sec { margin: 0 0 22px; }
.nsgnn .nsgnn-sec h4 {
	font-size: 1rem; font-weight: 700; color: var(--nn-text); margin: 0 0 10px;
	padding-bottom: 4px; border-bottom: 1.5px solid var(--nn-line);
}
.nsgnn .nsgnn-summary { margin: 0; padding-left: 20px; }
.nsgnn .nsgnn-summary li { margin-bottom: 4px; }

.nsgnn .nsgnn-item {
	background: rgba(255, 255, 255, .9); border: 1px solid var(--nn-line); border-radius: 10px;
	padding: 12px 14px; margin-bottom: 12px;
}
.nsgnn .nsgnn-orig { margin: 0 0 8px; font-size: .92rem; color: var(--nn-muted); }
.nsgnn .nsgnn-tech {
	display: inline-block; font-size: .75rem; font-weight: 700; color: var(--nn-ink);
	border: 1px solid #c9c4e0; border-radius: 6px; padding: 1px 8px; margin-bottom: 6px;
}
/* Điểm nhấn chính: mẹo nhớ viết tay, tô dạ quang */
.nsgnn .nsgnn-mnemo {
	font-family: "Patrick Hand", "Be Vietnam Pro", cursive;
	font-size: 1.32rem; line-height: 1.45; color: var(--nn-ink); margin: 0 0 6px;
}
.nsgnn .nsgnn-mnemo mark {
	color: inherit; background: linear-gradient(transparent 52%, var(--nn-highlight) 52%, var(--nn-highlight) 92%, transparent 92%);
	-webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 2px;
}
.nsgnn .nsgnn-emoji { margin: 2px 0 4px; font-size: 1.7rem; line-height: 1.3; letter-spacing: .12em; }
.nsgnn .nsgnn-pegs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.nsgnn .nsgnn-peg {
	display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px;
	background: #fff; border: 1px solid #c9c4e0; border-radius: 999px; font-size: .85rem;
}
.nsgnn .nsgnn-peg b {
	display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
	border-radius: 50%; background: var(--nn-ink); color: #fff; font-size: .85rem;
}
.nsgnn .nsgnn-peg-emoji { font-size: 1.2rem; line-height: 1; }
.nsgnn .nsgnn-pegbank > summary { cursor: pointer; font-weight: 600; color: var(--nn-ink); }
.nsgnn .nsgnn-pegbank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 12px; }
.nsgnn .nsgnn-pegcard {
	display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px;
	background: #fff; border: 1px solid var(--nn-line); border-radius: 10px; text-align: center;
}
.nsgnn .nsgnn-pegcard b { font-family: "Patrick Hand", "Be Vietnam Pro", cursive; font-size: 1.8rem; line-height: 1; color: var(--nn-ink); font-weight: 400; }
.nsgnn .nsgnn-pegcard .nsgnn-peg-emoji { font-size: 1.8rem; }
.nsgnn .nsgnn-pegcard small { font-size: .82rem; color: var(--nn-muted); line-height: 1.3; }
.nsgnn .nsgnn-bankbox { margin-top: 14px; padding-top: 16px; padding-bottom: 16px; }
.nsgnn .nsgnn-lesson > .nsgnn-pegbank, .nsgnn .nsgnn-details > .nsgnn-pegbank { margin-bottom: 22px; }
.nsgnn .nsgnn-draw { margin-top: 10px; }
.nsgnn .nsgnn-btn-sm { min-height: 40px; padding: 7px 12px; font-size: .88rem; }
.nsgnn .nsgnn-figure { margin: 0; }
.nsgnn .nsgnn-figure img { display: block; width: 100%; max-width: 560px; height: auto; border-radius: 10px; border: 1px solid var(--nn-line); background: #fff; }
.nsgnn .nsgnn-explain { margin: 0; font-size: .9rem; color: var(--nn-text); }
.nsgnn .nsgnn-story {
	font-family: "Patrick Hand", "Be Vietnam Pro", cursive; font-size: 1.2rem; line-height: 1.5;
	color: var(--nn-ink); margin: 0; background: rgba(255, 255, 255, .9); padding: 12px 14px; border-radius: 10px;
}
.nsgnn .nsgnn-quiz { margin: 0; padding-left: 22px; }
.nsgnn .nsgnn-quiz li { margin-bottom: 12px; }
.nsgnn .nsgnn-q { margin: 0 0 2px; font-weight: 500; }
.nsgnn .nsgnn-ans {
	margin: 6px 0 0; color: var(--nn-red); font-family: "Patrick Hand", "Be Vietnam Pro", cursive; font-size: 1.15rem;
}
.nsgnn .nsgnn-tips { margin: 0 0 12px; padding: 10px 14px; background: #eef0fb; border-radius: 10px; font-size: .92rem; }
.nsgnn .nsgnn-next { margin: 0; font-size: .88rem; color: var(--nn-muted); }
.nsgnn .nsgnn-details { margin: 0 0 18px; }
.nsgnn .nsgnn-details > summary { cursor: pointer; font-weight: 600; color: var(--nn-ink); margin-bottom: 12px; }
.nsgnn .nsgnn-review { border-top: 1.5px solid var(--nn-line); padding-top: 14px; }
.nsgnn .nsgnn-review p { margin: 0 0 10px; font-weight: 600; }
.nsgnn .nsgnn-review .nsgnn-btn-main { width: auto; }

/* Danh sách */
.nsgnn .nsgnn-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--nn-line); border-radius: var(--nn-radius); overflow: hidden; background: #fff; }
.nsgnn .nsgnn-list li + li { border-top: 1px solid var(--nn-line); }
.nsgnn .nsgnn-row-btn {
	appearance: none; display: block; width: 100%; text-align: left; background: #fff; border: 0;
	padding: 13px 16px; font: inherit; cursor: pointer; color: var(--nn-text);
}
.nsgnn .nsgnn-row-btn:hover { background: #f7f6fd; }
.nsgnn .nsgnn-row-title { display: block; font-weight: 600; color: var(--nn-ink); }
.nsgnn .nsgnn-row-sub { display: block; font-size: .85rem; color: var(--nn-muted); }
.nsgnn .nsgnn-empty p, .nsgnn .nsgnn-login p { margin: 0 0 14px; }
.nsgnn .nsgnn-login .nsgnn-brand { margin-bottom: 12px; }

@media (max-width: 560px) {
	.nsgnn .nsgnn-row { grid-template-columns: 1fr; gap: 0; }
	.nsgnn .nsgnn-paper { padding: 18px 14px 18px 40px; }
	.nsgnn .nsgnn-paper::before { left: 26px; }
	.nsgnn .nsgnn-brand { font-size: 2rem; }
	.nsgnn .nsgnn-tabs { gap: 0; }
	.nsgnn .nsgnn-tab { flex: 1 1 0; justify-content: center; text-align: center; white-space: normal; line-height: 1.25; font-size: .84rem; padding: 8px 4px 7px; }
	.nsgnn .nsgnn-review .nsgnn-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.nsgnn * { transition: none !important; animation: none !important; }
}

/* ---------- Chế độ toàn màn hình: ẩn header/footer của theme (có selector Astra) ---------- */
body.nsg-fullscreen #masthead,
body.nsg-fullscreen .site-header,
body.nsg-fullscreen header.site-header,
body.nsg-fullscreen .ast-above-header-wrap,
body.nsg-fullscreen .ast-below-header-wrap,
body.nsg-fullscreen .ast-mobile-header-wrap,
body.nsg-fullscreen #colophon,
body.nsg-fullscreen .site-footer,
body.nsg-fullscreen .ast-small-footer,
body.nsg-fullscreen .entry-header,
body.nsg-fullscreen .ast-breadcrumbs-wrapper,
body.nsg-fullscreen #secondary,
body.nsg-fullscreen .widget-area { display: none !important; }

body.nsg-fullscreen,
body.nsg-fullscreen .site-content,
body.nsg-fullscreen .ast-container,
body.nsg-fullscreen #primary,
body.nsg-fullscreen .ast-article-single,
body.nsg-fullscreen .entry-content {
	margin: 0 !important; padding: 0 !important;
	max-width: 100% !important; width: 100% !important;
	border: 0 !important; box-shadow: none !important;
}
body.nsg-fullscreen { overflow-x: hidden; background: #f7f7fa; }
body.nsg-fullscreen .nsg-nho-nhanh-wrap {
	width: 100%; min-height: 100dvh;
	padding: calc(16px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right))
		calc(24px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
	box-sizing: border-box;
}
body.nsg-fullscreen.admin-bar .nsg-nho-nhanh-wrap { min-height: calc(100dvh - 32px); }

/* ---------- Xuất PDF: khung dựng tạm (nằm dưới lớp phủ) ---------- */
.nsgnn.nsgnn-pdf {
	position: fixed; top: 0; left: 0; z-index: 2147483000;
	width: 760px; max-width: none; margin: 0; padding: 0;
	background: #fff; pointer-events: none; font-size: 16px;
}
.nsgnn.nsgnn-pdf.nsgnn-pdf-stage { position: static; z-index: auto; }
.nsgnn.nsgnn-pdf .nsgnn-pdf-block { background: #fff; padding: 10px 6px; }
.nsgnn.nsgnn-pdf h1 { font-family: "Patrick Hand", "Be Vietnam Pro", cursive; font-weight: 400; font-size: 56px; line-height: 1.1; color: var(--nn-ink); margin: 10px 0 6px; }
.nsgnn.nsgnn-pdf h3 { font-size: 17px; font-weight: 700; margin: 6px 0 10px; padding-bottom: 4px; border-bottom: 1.5px solid var(--nn-line); }
.nsgnn.nsgnn-pdf ul, .nsgnn.nsgnn-pdf ol { margin: 0; padding-left: 22px; }
.nsgnn.nsgnn-pdf li { margin-bottom: 4px; }
.nsgnn .nsgnn-pdf-cover { padding-top: 120px !important; }
.nsgnn .nsgnn-pdf-brand { font-family: "Patrick Hand", "Be Vietnam Pro", cursive; font-size: 26px; color: var(--nn-ink); margin: 0; }
.nsgnn .nsgnn-pdf-owner { font-size: 22px; margin: 0 0 8px; }
.nsgnn .nsgnn-pdf-toc { margin-top: 40px !important; font-size: 15px; }
.nsgnn .nsgnn-pdf-no { margin: 0; font-weight: 700; color: var(--nn-red); font-size: 14px; }
.nsgnn .nsgnn-pdf-title { font-family: "Patrick Hand", "Be Vietnam Pro", cursive; font-weight: 400; font-size: 34px; line-height: 1.15; color: var(--nn-ink); margin: 2px 0 4px; }
.nsgnn .nsgnn-pdf-meta { color: var(--nn-muted); font-size: 14px; margin: 0 0 14px; }
.nsgnn .nsgnn-pdf-warning { color: var(--nn-red); border-left: 3px solid var(--nn-red); padding-left: 10px; margin: 0 0 14px; }
.nsgnn .nsgnn-pdf-item { border: 1px solid var(--nn-line); border-radius: 10px; padding: 12px 14px; }
.nsgnn .nsgnn-pdf-orig { margin: 0 0 6px; font-size: 14px; color: var(--nn-muted); }
.nsgnn .nsgnn-pdf-tech { display: inline-block; font-size: 12px; font-weight: 700; color: var(--nn-ink); border: 1px solid #c9c4e0; border-radius: 6px; padding: 1px 8px; margin-bottom: 4px; }
.nsgnn .nsgnn-pdf-emoji { font-size: 26px; margin: 2px 0; letter-spacing: 3px; }
.nsgnn .nsgnn-pdf-mnemo { font-family: "Patrick Hand", "Be Vietnam Pro", cursive; font-size: 22px; line-height: 1.45; color: var(--nn-ink); margin: 0 0 6px; }
.nsgnn .nsgnn-pdf-mnemo span { background: #fff1a8; }
.nsgnn .nsgnn-pdf-explain { margin: 0; font-size: 14px; }
.nsgnn .nsgnn-pdf-img { display: block; width: 100%; max-height: 430px; object-fit: contain; margin-top: 10px; border-radius: 8px; }
.nsgnn .nsgnn-pdf-story { font-family: "Patrick Hand", "Be Vietnam Pro", cursive; font-size: 20px; line-height: 1.5; color: var(--nn-ink); margin: 0; }
.nsgnn .nsgnn-pdf-q { margin: 0; font-weight: 500; }
.nsgnn .nsgnn-pdf-a { margin: 2px 0 8px; color: var(--nn-red); font-family: "Patrick Hand", "Be Vietnam Pro", cursive; font-size: 19px; }
.nsgnn .nsgnn-pdf-tips { margin: 0; padding: 10px 14px; background: #eef0fb; border-radius: 10px; font-size: 14px; }
.nsgnn .nsgnn-count { margin: 0; align-self: center; color: var(--nn-muted); font-size: .9rem; }

.nsgnn-pdf-overlay {
	position: fixed; inset: 0; z-index: 2147483600; display: flex; align-items: center; justify-content: center;
	background: rgba(20, 26, 70, .62); font-family: "Be Vietnam Pro", system-ui, sans-serif; padding: 20px;
}
.nsgnn-pdf-overlay-box { background: #fff; color: #1d2133; border-radius: 12px; padding: 20px 26px; max-width: 340px; text-align: center; }
.nsgnn-pdf-overlay-box strong { display: block; font-size: 1.05rem; margin-bottom: 6px; color: #24348f; }
.nsgnn-pdf-overlay-box p { margin: 0; font-size: .95rem; }

/* ---------- Credit ---------- */
.nsgnn .nsgnn-estimate { margin: -6px 0 14px; font-size: .9rem; color: var(--nn-ink); }
.nsgnn .nsgnn-estimate.is-low { color: var(--nn-red); font-weight: 600; }
.nsgnn .nsgnn-wallet { text-align: left; }
.nsgnn .nsgnn-wallet-num { margin: 0; color: var(--nn-ink); font-size: 1.2rem; }
.nsgnn .nsgnn-wallet-num b { font-family: "Patrick Hand", "Be Vietnam Pro", cursive; font-weight: 400; font-size: 3.4rem; line-height: 1; margin-right: 4px; }
.nsgnn .nsgnn-wallet-sub { margin: 6px 0 0; font-size: .9rem; color: var(--nn-muted); }
.nsgnn .nsgnn-sec-title { font-size: 1rem; font-weight: 700; margin: 22px 0 10px; color: var(--nn-text); }
.nsgnn .nsgnn-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.nsgnn .nsgnn-pack {
	appearance: none; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
	font: inherit; color: var(--nn-text); background: #fff; cursor: pointer;
	border: 1.5px solid var(--nn-line); border-radius: 12px; padding: 14px; min-height: 44px; position: relative;
}
.nsgnn .nsgnn-pack:hover { border-color: #b9b3dc; }
.nsgnn .nsgnn-pack.is-hot { border-color: #e3c52f; background: #fffdf0; }
.nsgnn .nsgnn-pack.is-active { border-color: var(--nn-ink); box-shadow: 0 0 0 3px rgba(36, 52, 143, .15); }
.nsgnn .nsgnn-pack .nsgnn-tag-gold { margin-bottom: 4px; }
.nsgnn .nsgnn-pack-name { font-size: .88rem; color: var(--nn-muted); }
.nsgnn .nsgnn-pack-credit { font-family: "Patrick Hand", "Be Vietnam Pro", cursive; font-size: 1.7rem; line-height: 1.1; color: var(--nn-ink); }
.nsgnn .nsgnn-pack-price { font-weight: 700; }
.nsgnn .nsgnn-pack-unit { font-size: .8rem; color: var(--nn-muted); }
.nsgnn .nsgnn-pay { margin-top: 14px; }
.nsgnn .nsgnn-pay-title { margin: 0 0 12px; font-size: 1.05rem; color: var(--nn-ink); }
.nsgnn .nsgnn-pay-grid { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
.nsgnn .nsgnn-qr { width: 100%; max-width: 220px; height: auto; background: #fff; border: 1px solid var(--nn-line); border-radius: 10px; }
.nsgnn .nsgnn-pay-info { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: .92rem; }
.nsgnn .nsgnn-pay-info dt { color: var(--nn-muted); }
.nsgnn .nsgnn-pay-info dd { margin: 0; word-break: break-word; }
.nsgnn .nsgnn-code { color: var(--nn-red); letter-spacing: .04em; }
.nsgnn .nsgnn-pay-note { font-size: .88rem; color: var(--nn-muted); margin: 12px 0; }
.nsgnn .nsgnn-hist li { padding: 10px 16px; background: #fff; }
.nsgnn .nsgnn-hist-row { display: flex; justify-content: space-between; gap: 10px; }
.nsgnn .nsgnn-hist-delta { font-weight: 700; color: var(--nn-red); white-space: nowrap; }
.nsgnn .nsgnn-hist-delta.is-plus { color: #17733f; }
@media (max-width: 560px) {
	.nsgnn .nsgnn-pay-grid { grid-template-columns: 1fr; }
	.nsgnn .nsgnn-qr { margin: 0 auto; display: block; }
	.nsgnn .nsgnn-packs { grid-template-columns: 1fr 1fr; }
}

.nsgnn .nsgnn-pdf-cta { margin-top: 14px; padding-top: 14px; border-top: 1.5px dashed var(--nn-line); }
.nsgnn .nsgnn-pdf-cta > .nsgnn-btn { background: var(--nn-ink); color: #fff; }
.nsgnn .nsgnn-pdf-cta > .nsgnn-btn:hover { background: #1b2873; color: #fff; }

/* ---------- Tiến độ tuần, nhắc ôn, phụ huynh ---------- */
.nsgnn .nsgnn-learn { margin-bottom: 14px; }
.nsgnn .nsgnn-learn > * + * { margin-top: 12px; }
.nsgnn .nsgnn-week { padding-top: 16px; padding-bottom: 16px; }
.nsgnn .nsgnn-week-title { margin: 0 0 10px; font-weight: 700; color: var(--nn-ink); }
.nsgnn .nsgnn-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.nsgnn .nsgnn-stat { background: #fff; border: 1px solid var(--nn-line); border-radius: 10px; padding: 10px 8px; text-align: center; }
.nsgnn .nsgnn-stat b { display: block; font-family: "Patrick Hand", "Be Vietnam Pro", cursive; font-weight: 400; font-size: 1.9rem; line-height: 1.1; color: var(--nn-ink); }
.nsgnn .nsgnn-stat span { display: block; font-size: .8rem; color: var(--nn-muted); line-height: 1.3; }
.nsgnn .nsgnn-notify > summary { cursor: pointer; font-weight: 700; color: var(--nn-ink); margin-bottom: 12px; }
.nsgnn .nsgnn-notify:not([open]) > summary { margin-bottom: 0; }
.nsgnn .nsgnn-check { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 12px; font-size: .95rem; cursor: pointer; }
.nsgnn .nsgnn-check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.nsgnn .nsgnn-input {
	width: 100%; font: inherit; color: var(--nn-text); background: rgba(255, 255, 255, .92);
	border: 1.5px solid #c9c4e0; border-radius: 10px; padding: 10px 12px; min-height: 44px;
}
.nsgnn .nsgnn-input:focus { outline: none; border-color: var(--nn-ink); box-shadow: 0 0 0 3px rgba(36, 52, 143, .15); }
.nsgnn .nsgnn-ok { color: #17733f; font-weight: 600; margin: 8px 0 0; }
@media (max-width: 560px) {
	.nsgnn .nsgnn-stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- Đăng nhập và giới thiệu ---------- */
.nsgnn .nsgnn-login { max-width: 460px; margin: 0 auto; }
.nsgnn .nsgnn-gift { background: #e9f8ef; border: 1.5px solid #9fd9b5; color: #17733f; border-radius: 10px; padding: 10px 12px; font-weight: 600; }
.nsgnn .nsgnn-gbtn { display: flex; justify-content: center; min-height: 44px; margin: 6px 0 10px; }
.nsgnn .nsgnn-fbbtn { width: 100%; background: #1877f2; border-color: #1877f2; color: #fff; border-radius: 999px; }
.nsgnn .nsgnn-fbbtn:hover { background: #0f63d0; color: #fff; }
.nsgnn .nsgnn-or { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; color: var(--nn-muted); font-size: .88rem; }
.nsgnn .nsgnn-or::before, .nsgnn .nsgnn-or::after { content: ""; flex: 1; height: 1px; background: var(--nn-line); }
.nsgnn .nsgnn-otp { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-weight: 700; }
.nsgnn .nsgnn-otp-links { display: flex; justify-content: space-between; margin-top: 12px; }
.nsgnn .nsgnn-link:disabled { color: var(--nn-muted); text-decoration: none; cursor: default; }
.nsgnn .nsgnn-pwlogin { text-align: center; margin-top: 18px; }
.nsgnn .nsgnn-ref { margin-top: 14px; border-color: #9fd9b5; }
.nsgnn .nsgnn-reflink { display: flex; gap: 10px; align-items: center; margin: 10px 0 12px; }
.nsgnn .nsgnn-reflink .nsgnn-input { font-size: .9rem; }

/* ---------- Màn hình đăng nhập (thẻ tối, giống mẫu AI VIP Chart) ---------- */
.nsgnn .nsgnn-auth {
	max-width: 460px; margin: 28px auto; padding: 36px 32px 28px;
	background: #0f141c; border: 1px solid #1d2532; border-radius: 18px;
	box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .55); color: #e6eaf2; text-align: left;
}
.nsgnn .nsgnn-auth-logo { font-size: 52px; line-height: 1; text-align: center; }
.nsgnn .nsgnn-auth-title { margin: 8px 0 2px; text-align: center; font-family: "Be Vietnam Pro", system-ui, sans-serif; font-weight: 700; font-size: 1.7rem; color: #f5c51b; }
.nsgnn .nsgnn-auth-sub { margin: 0 0 22px; text-align: center; font-size: .9rem; color: #8a94a6; }
.nsgnn .nsgnn-gbtn { display: flex; justify-content: center; min-height: 44px; margin: 0 0 10px; }
.nsgnn .nsgnn-auth-fb {
	appearance: none; width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 10px;
	font: inherit; font-weight: 600; font-size: .98rem; color: #fff; background: #1877f2; border: 0; border-radius: 8px; cursor: pointer;
}
.nsgnn .nsgnn-auth-fb:hover { background: #0f63d0; }
.nsgnn .nsgnn-auth-fb:disabled { opacity: .6; cursor: wait; }
.nsgnn .nsgnn-auth-fbicon { width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #1877f2; font-weight: 800; font-family: Arial, sans-serif; display: inline-flex; align-items: flex-end; justify-content: center; font-size: 18px; line-height: 1; overflow: hidden; }
.nsgnn .nsgnn-auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #7d8799; font-size: .85rem; }
.nsgnn .nsgnn-auth-or::before, .nsgnn .nsgnn-auth-or::after { content: ""; flex: 1; height: 1px; background: #263041; }
.nsgnn .nsgnn-auth-gift {
	margin: 0 0 18px; padding: 12px 14px; text-align: center; font-weight: 600; font-size: .92rem; line-height: 1.5;
	color: #3ad07a; background: rgba(31, 143, 78, .08); border: 1.5px solid #1f8f4e; border-radius: 10px;
}
.nsgnn .nsgnn-auth-label { display: block; margin-bottom: 14px; }
.nsgnn .nsgnn-auth-label > span { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; color: #e6eaf2; }
.nsgnn .nsgnn-auth-input {
	width: 100%; min-height: 50px; padding: 12px 16px; font: inherit; font-size: 1rem; color: #e6eaf2;
	background: #0a0e15; border: 1px solid #263041; border-radius: 10px;
}
.nsgnn .nsgnn-auth-input::placeholder { color: #5f6a7d; }
.nsgnn .nsgnn-auth-input:focus { outline: none; border-color: #2b7be4; box-shadow: 0 0 0 3px rgba(43, 123, 228, .25); }
.nsgnn .nsgnn-auth-otp { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-weight: 700; }
.nsgnn .nsgnn-auth-btn {
	appearance: none; width: 100%; min-height: 48px; font: inherit; font-weight: 700; font-size: 1rem; color: #fff; cursor: pointer;
	background: linear-gradient(90deg, #1546b8, #2b7be4); border: 0; border-radius: 8px;
}
.nsgnn .nsgnn-auth-btn:hover { filter: brightness(1.08); }
.nsgnn .nsgnn-auth-btn:disabled { opacity: .6; cursor: wait; }
.nsgnn .nsgnn-auth-btn:focus-visible, .nsgnn .nsgnn-auth-fb:focus-visible { outline: 3px solid rgba(43, 123, 228, .5); outline-offset: 2px; }
.nsgnn .nsgnn-auth-hint { margin: 14px 0 0; text-align: center; font-size: .82rem; color: #8a94a6; }
.nsgnn .nsgnn-auth-note { margin: 0 0 14px; font-size: .92rem; color: #c3cad6; }
.nsgnn .nsgnn-auth-note strong { color: #fff; }
.nsgnn .nsgnn-auth-links { display: flex; justify-content: space-between; margin-top: 14px; }
.nsgnn .nsgnn-auth .nsgnn-link { color: #8ab4ff; }
.nsgnn .nsgnn-auth .nsgnn-link:disabled { color: #5f6a7d; }
.nsgnn .nsgnn-auth .nsgnn-error { color: #ff7b7b; }
.nsgnn .nsgnn-auth .nsgnn-ok { color: #3ad07a; }
.nsgnn .nsgnn-auth .nsgnn-loading { color: #8a94a6; }
.nsgnn .nsgnn-auth .nsgnn-msg { margin-top: 14px; }
.nsgnn .nsgnn-auth-pw { margin: 18px 0 0; text-align: center; font-size: .8rem; }
.nsgnn .nsgnn-auth-pw a { color: #5f6a7d; text-decoration: underline; text-underline-offset: 3px; }
.nsgnn .nsgnn-auth-pw a:hover { color: #8a94a6; }
@media (max-width: 560px) {
	.nsgnn .nsgnn-auth { margin: 12px auto; padding: 28px 20px 22px; border-radius: 14px; }
}

/* ---------- Tab Giới thiệu ---------- */
.nsgnn .nsgnn-steps { margin-top: 14px; }
.nsgnn .nsgnn-steps ol { margin: 0; padding-left: 22px; }
.nsgnn .nsgnn-steps li { margin-bottom: 6px; }
.nsgnn .nsgnn-hist-delta.is-wait { color: var(--nn-muted); font-weight: 600; }
