/* ============ Navy theme (child of default) ============ */
.theme-navy { --header-h: 0px; }
.theme-navy .container { max-width: 1320px; }

/* ---------- Header colors: light by default, navy in dark mode (or always, see theme settings) ---------- */
.nv-header {
  --nv-bg: #eef2f6; --nv-fg: #1e293b; --nv-icon: #334155; --nv-muted: #64748b;
  --nv-hover: #dde4ee; --nv-active: #dfe6ef; --nv-line: #d5dce6;
  --nv-box: #ffffff; --nv-box-line: #d9e0ea;
  --nv-quick: #ffffff; --nv-search: #ffffff; --nv-search-fg: #0f172a;
  --nv-title: var(--nv-brand-light, #1d7a4b); --nv-tag: var(--nv-brand-light, #1d7a4b);
}
[data-theme="dark"] .nv-header, .nv-header.nv-always-dark {
  --nv-bg: var(--nv-head, #0f2a4a); --nv-fg: #e8eef7; --nv-icon: #cbd5e1; --nv-muted: #94a3b8;
  --nv-hover: rgba(255, 255, 255, .08); --nv-active: rgba(255, 255, 255, .1); --nv-line: rgba(255, 255, 255, .1);
  --nv-box: rgba(255, 255, 255, .06); --nv-box-line: rgba(255, 255, 255, .12);
  --nv-quick: rgba(2, 10, 25, .35); --nv-search: #e8ebef; --nv-search-fg: #0f172a;
  --nv-title: var(--nv-brand, #22c55e); --nv-tag: var(--nv-brand, #22c55e);
}
[data-theme="dark"] .nv-header { --nv-search: var(--bg-soft); --nv-search-fg: var(--text); }

/* ---------- Header row 1 ---------- */
.nv-header { position: relative; z-index: 50; background: var(--nv-bg); color: var(--nv-fg); border-bottom: 1px solid var(--nv-line); }
.nv-top-in { display: flex; align-items: stretch; gap: 0; min-height: 80px; }
.nv-brand { display: flex; align-items: center; gap: 12px; padding: 8px 0; margin-right: 26px; text-decoration: none !important; flex: none; }
.nv-logo { height: 64px; width: auto; max-width: 240px; object-fit: contain; }
.nv-mark { width: 60px; height: 60px; border-radius: 12px; display: grid; place-items: center; font-size: 26px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.nv-brand-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.05; }
.nv-title { font-size: 32px; font-weight: 500; letter-spacing: .02em; color: var(--nv-title); text-transform: uppercase; }
.nv-tagline { font-size: 14px; color: var(--nv-tag); margin-top: 3px; opacity: .95; }

.nv-nav { display: flex; align-items: stretch; gap: 0; flex: 1; min-width: 0; }
.nv-item { position: relative; display: flex; }
.nv-link { display: flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--nv-fg) !important; font: inherit; font-size: 15px; font-weight: 400; background: none; border: 0; cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: background .15s; }
.nv-link i { font-size: 15px; color: var(--nv-icon); }
.nv-link .nv-caret { font-size: 11px; color: var(--nv-muted); margin-left: 2px; }
.nv-link:hover { background: var(--nv-hover); }
.nv-link.active { background: var(--nv-active); font-weight: 600; }
.nv-header .dropdown { color: var(--text); top: 100%; }

.nv-userbox { display: flex; align-items: stretch; align-self: center; margin-left: auto; border-radius: 9px; background: var(--nv-box); border: 1px solid var(--nv-box-line); flex: none; overflow: visible; }
.nv-userbox > a, .nv-userbox > button, .nv-userbox > div { border-left: 1px solid var(--nv-box-line); display: flex; }
.nv-userbox > :first-child { border-left: 0; }
.nv-userbox > .nv-ibtn { display: grid; }
.nv-ibtn { position: relative; width: 42px; height: 40px; display: grid; place-items: center; color: var(--nv-icon) !important; background: none; border: 0; cursor: pointer; font-size: 15px; text-decoration: none !important; }
.nv-ibtn:hover, .nv-me:hover { background: var(--nv-hover); }
.nv-ibtn .count { position: absolute; top: 3px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.nv-me { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 8px; color: var(--nv-fg) !important; background: none; border: 0; cursor: pointer; font: inherit; font-size: 14.5px; font-weight: 500; text-decoration: none !important; white-space: nowrap; }
.nv-me span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.nv-me .avatar { width: 26px; height: 26px; }
.nv-userbox > :last-child, .nv-userbox > :last-child .nv-me { border-radius: 0 8px 8px 0; }
.nv-userbox > :first-child .nv-ibtn, .nv-userbox > .nv-ibtn:first-child { border-radius: 8px 0 0 8px; }
.nv-reg { background: #16a34a; color: #fff !important; }
.nv-reg:hover { background: #15803d !important; }
.nv-burger { display: none; width: 42px; height: 42px; align-self: center; margin-right: 10px; border: 1px solid var(--nv-box-line); border-radius: 9px; background: var(--nv-box); color: var(--nv-fg); font-size: 18px; cursor: pointer; }

/* Too many menu items for the width: the header script adds these classes step by step */
.nv-header.nv-c1 .nv-link { padding: 0 10px; }
.nv-header.nv-c1 .nv-me span { display: none; }
.nv-header.nv-c2 .nv-link span { display: none; }

/* ---------- Header row 2 ---------- */
.nv-sub { padding: 10px 0 12px; border-top: 1px solid var(--nv-line); }
.nv-sub-in { display: flex; align-items: stretch; gap: 12px; }
.nv-quick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; padding: 0 6px; min-height: 42px; border-radius: 8px; background: var(--nv-quick); border: 1px solid var(--nv-box-line); overflow-x: auto; scrollbar-width: none; }
.nv-quick::-webkit-scrollbar { display: none; }
.nv-quick a, .nv-quick button { padding: 6px 9px; border-radius: 6px; color: var(--nv-fg) !important; font: inherit; font-size: 14px; white-space: nowrap; background: none; border: 0; cursor: pointer; text-decoration: none !important; }
.nv-quick a:hover, .nv-quick button:hover { background: var(--nv-hover); }
.nv-quick form { margin: 0; }
.nv-help { position: relative; flex: none; }
.nv-help-btn { height: 100%; min-height: 42px; min-width: 180px; padding: 0 22px; border: 0; border-radius: 8px; background: #16a34a; color: #fff; font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s; }
.nv-help-btn:hover { background: #15803d; }
.nv-help .dropdown { top: calc(100% + 6px); min-width: 100%; }
.nv-search { position: relative; flex: 0 1 250px; }
.nv-search input { width: 100%; height: 100%; min-height: 42px; padding: 0 12px 0 40px; border: 1px solid var(--nv-box-line); border-radius: 8px; background: var(--nv-search); color: var(--nv-search-fg); font: inherit; font-size: 14px; }
.nv-search input:focus { outline: 2px solid var(--nv-title); }
.nv-search > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #64748b; font-size: 14px; }
.nv-search > i::after { content: ""; position: absolute; left: 22px; top: -6px; height: 24px; border-left: 1px solid #cbd5e1; }
.nv-search .search-suggest { color: var(--text); }

/* ---------- Collapsible category blocks ---------- */
.nv-block { margin-bottom: 22px; }
.nv-block-head { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 64px 16px 18px; background: var(--bg-elev); border: 1px solid var(--border); border-bottom: 4px solid color-mix(in srgb, var(--primary) 30%, #bfdbfe); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.nv-block.closed .nv-block-head { border-radius: var(--radius); }
.nv-block-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--c, var(--text-2)); font-size: 18px; text-decoration: none !important; position: relative; z-index: 1; }
.nv-block-icon img { width: 30px; height: 30px; object-fit: contain; }
.nv-block-text { min-width: 0; position: relative; z-index: 1; }
.nv-block-text h2 { margin: 0; font-size: 21px; font-weight: 500; line-height: 1.25; }
.nv-block-text h2 a { color: var(--text); }
.nv-block-text p { margin: 3px 0 0; font-size: 13.5px; color: var(--text-2); }
.nv-block-mark { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); font-size: 120px; color: var(--text); opacity: .06; pointer-events: none; }
.nv-block-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 18px; cursor: pointer; z-index: 2; }
.nv-block-toggle:hover { background: var(--bg-soft); color: var(--text); }
.nv-block-body { border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- Footer: brand colors for social icons ---------- */
.ft-social a { background: #334155; color: #fff !important; }
.ft-social a[aria-label="facebook"] { background: #1877f2; }
.ft-social a[aria-label="instagram"] { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.ft-social a[aria-label="x"] { background: #000; }
.ft-social a[aria-label="youtube"] { background: #ff0000; }
.ft-social a[aria-label="telegram"] { background: #26a5e4; }
.ft-social a[aria-label="discord"] { background: #5865f2; }
.ft-social a[aria-label="tiktok"] { background: #010101; text-shadow: -1.5px -1px 0 #25f4ee, 1.5px 1px 0 #fe2c55; }
.ft-social a[aria-label="github"] { background: #181717; }
.ft-social a[aria-label="linkedin"] { background: #0a66c2; }
.ft-social a[aria-label="whatsapp"] { background: #25d366; }
.ft-social a[aria-label="skype"] { background: #00aff0; }
.ft-social a:hover { filter: brightness(1.12); background-blend-mode: normal; }

/* ---------- Dark mode ---------- */
[data-theme="dark"] .nv-block-head { border-bottom-color: color-mix(in srgb, var(--primary) 45%, transparent); }
[data-theme="dark"] .nv-block-mark { opacity: .08; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .nv-brand { margin-right: 14px; }
  .nv-link { padding: 0 11px; font-size: 14.5px; }
}
@media (max-width: 1080px) {
  .nv-link span { display: none; }
  .nv-link i { font-size: 16px; }
}
@media (max-width: 900px) {
  .nv-me span { display: none; }
  .nv-me { padding: 0 8px; }
  .nv-top-in { min-height: 70px; }
  .nv-burger { display: grid; place-items: center; flex: none; }
  .nv-logo { height: 48px; max-width: 160px; }
  .nv-title { font-size: 22px; }
  .nv-tagline { font-size: 12px; }
  .nv-nav { display: none; }
  .nv-sub-in { flex-wrap: wrap; }
  .nv-quick { flex-basis: 100%; }
  .nv-help { flex: 1; }
  .nv-help-btn { width: 100%; min-width: 0; font-size: 14.5px; padding: 0 12px; white-space: nowrap; }
  .nv-search { flex: 1 1 200px; }
}
@media (max-width: 560px) {
  .nv-tagline { display: none; }
  .nv-logo { height: 40px; }
  .nv-title { font-size: 19px; }
  .nv-block-text h2 { font-size: 17px; }
  .nv-block-mark { display: none; }
  .nv-userbox .nv-ibtn { width: 36px; }
}
.nv-userbox .dropdown { top: calc(100% + 6px); }

/* ---------- Mobile side panel ---------- */
.nv-drawer, .nv-backdrop { display: none; }
@media (max-width: 900px) {
  .nv-backdrop { display: block; position: fixed; inset: 0; background: rgba(2, 6, 23, .55); z-index: 90; }
  .nv-drawer { display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 86vw); background: var(--nv-head, #0f2a4a); color: #e2e8f0; z-index: 95; transform: translateX(-105%); transition: transform .25s ease; box-shadow: 8px 0 30px rgba(0, 0, 0, .35); }
  .nv-drawer.open { transform: none; }
  body:has(.nv-drawer.open) { overflow: hidden; }
}
.nv-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: rgba(0, 0, 0, .25); font-weight: 700; font-size: 16px; color: #fff; }
.nv-drawer-x { width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; color: #fff; font-size: 20px; cursor: pointer; }
.nv-drawer-x:hover { background: rgba(255, 255, 255, .1); }
.nv-drawer-nav { flex: 1; overflow-y: auto; padding: 4px 0; }
.nv-d-item { border-bottom: 1px solid rgba(255, 255, 255, .07); }
.nv-d-item.current { background: rgba(255, 255, 255, .05); }
.nv-d-row { display: flex; align-items: stretch; }
.nv-d-link { flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: #e8eef7 !important; font: inherit; font-size: 15px; background: none; border: 0; text-align: left; cursor: pointer; text-decoration: none !important; }
.nv-d-item.current > .nv-d-row .nv-d-link { font-weight: 700; color: #fff !important; }
.nv-d-link i { width: 18px; text-align: center; color: #cbd5e1; font-size: 15px; }
.nv-d-toggle { width: 48px; border: 0; border-left: 1px solid rgba(255, 255, 255, .07); background: none; color: #cbd5e1; cursor: pointer; }
.nv-d-toggle i { font-size: 12px; transition: transform .2s; }
.nv-d-toggle i.up { transform: rotate(180deg); }
.nv-d-sub { padding: 2px 0 8px; }
.nv-d-sub a { display: block; padding: 7px 14px 7px 42px; color: #dbe4f0 !important; font-size: 14px; text-decoration: none !important; }
.nv-d-sub a:hover, .nv-d-sub a.active { background: rgba(255, 255, 255, .07); color: #fff !important; }
.nv-drawer-foot { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: rgba(0, 0, 0, .25); }
.nv-drawer-foot form { margin: 0 0 0 auto; }
.nv-d-me { display: flex; align-items: center; gap: 8px; min-width: 0; color: #fff !important; font-weight: 600; text-decoration: none !important; }
.nv-d-me span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-d-btn { display: inline-flex; align-items: center; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 7px; background: none; color: #fff !important; font: inherit; font-size: 14px; cursor: pointer; text-decoration: none !important; }
.nv-d-green { background: #16a34a; border-color: #16a34a; margin-left: auto; }

/* ---------- Search panel (phones) ---------- */
.nv-sq-btn { display: none !important; }
.nv-sq-btn.on { background: var(--nv-hover); }
.nv-sq { position: absolute; left: 0; right: 0; top: 100%; z-index: 70; background: var(--nv-head, #0f2a4a); color: #e2e8f0; border-top: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 14px 30px rgba(2, 6, 23, .35); }
.nv-sq-in { display: grid; gap: 10px; padding-top: 14px; padding-bottom: 16px; }
.nv-sq-title { font-size: 15px; font-weight: 700; color: #fff; }
.nv-sq-input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 7px; background: rgba(2, 10, 25, .45); color: #fff; font: inherit; font-size: 15px; }
.nv-sq-input::placeholder { color: #94a3b8; }
.nv-sq-input:focus { outline: 2px solid var(--nv-brand, #22c55e); outline-offset: -1px; }
.nv-sq-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #dbe4f0; }
.nv-sq-check input { width: 16px; height: 16px; accent-color: #16a34a; }
.nv-sq-row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; font-size: 14px; color: #dbe4f0; }
.nv-sq-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.nv-sq-go, .nv-sq-adv { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 7px; border: 0; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none !important; }
.nv-sq-go { background: #16a34a; color: #fff; }
.nv-sq-go:hover { background: #15803d; }
.nv-sq-adv { background: rgba(2, 10, 25, .55); color: #fff !important; border: 1px solid rgba(255, 255, 255, .12); }
@media (max-width: 900px) {
  .nv-sq-btn { display: grid !important; }
  .nv-sub { display: none; }
}
@media (min-width: 901px) { .nv-sq { display: none !important; } }
@media (min-width: 901px) { .nv-userbox > .nv-sq-btn + * { border-left: 0; } }

/* phones: theme switch and languages live in the side panel */
.nv-drawer-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.nv-drawer-tools .nv-d-btn { gap: 8px; }
.nv-d-langs { display: flex; gap: 4px; margin-left: auto; }
.nv-d-langs a { display: grid; place-items: center; width: 34px; height: 32px; border-radius: 7px; font-size: 18px; text-decoration: none !important; }
.nv-d-langs a.on { background: rgba(255, 255, 255, .14); }
@media (max-width: 560px) {
  .nv-userbox > .nv-theme-btn, .nv-userbox > .nv-lang { display: none !important; }
  .nv-burger { width: 38px; height: 38px; margin-right: 8px; }
  .nv-brand { gap: 8px; margin-right: 8px; }
  .nv-logo { height: 38px; }
  .nv-title { font-size: 18px; }
}
@media (max-width: 420px) {
  .nv-header .container { padding-left: 12px; padding-right: 12px; }
  .nv-userbox .nv-ibtn { width: 33px; }
  .nv-me { padding: 0 6px; }
  .nv-burger { margin-right: 6px; }
  .nv-brand { margin-right: 4px; }
  .nv-title { font-size: 16px; }
}
.nv-header.nv-notitle .nv-title { display: none; }

/* phones: guests always see the full "Log in" / "Register" buttons */
@media (max-width: 900px) {
  .nv-userbox .nv-me.nv-guest span { display: inline; }
  .nv-me.nv-guest { padding: 0 12px; }
}
@media (max-width: 560px) {
  .nv-me.nv-guest { padding: 0 10px; font-size: 13.5px; gap: 6px; }
  .nv-me.nv-guest i { display: none; }
}

/* ---------- Member profile header ---------- */
.nvp { position: relative; }
.nvp-cover { position: relative; height: 270px; background: linear-gradient(135deg, #0f2a4a, #1e3a8a 60%, #0ea5e9) center / cover no-repeat; }
.nvp-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .55) 100%); }
.nvp-head { position: relative; display: flex; gap: 18px; padding: 0 18px 18px; margin-top: -192px; align-items: flex-start; }
.nvp-avatar { position: relative; flex: none; width: 190px; height: 190px; margin-top: 32px; border-radius: 8px; overflow: hidden; background: #000; box-shadow: 0 6px 22px rgba(0, 0, 0, .35); border: 3px solid var(--bg-elev); }
.nvp-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nvp-online { position: absolute; right: 8px; bottom: 8px; width: 16px; height: 16px; border-radius: 50%; background: #22c55e; border: 3px solid #fff; }
.nvp-main { flex: 1; min-width: 0; padding-top: 2px; }
.nvp-name { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 26px; font-weight: 700; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); line-height: 1.2; }
.nvp-badge { font-size: 20px; text-shadow: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.nvp-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.nvp-pill { --pc: #111827; display: inline-flex; align-items: stretch; border-radius: 6px; overflow: hidden; font-size: 12.5px; line-height: 1; background: rgba(0, 0, 0, .72); color: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.nvp-pill i { display: grid; place-items: center; padding: 6px 7px; background: color-mix(in srgb, var(--pc) 80%, #000); font-size: 12px; }
.nvp-pill b { padding: 6px 10px 6px 8px; font-weight: 600; background: color-mix(in srgb, var(--pc) 55%, #000); clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%); margin-left: -4px; padding-left: 12px; }
.nvp-info { display: flex; gap: 14px; align-items: flex-end; justify-content: space-between; padding: 10px 14px; border-radius: 8px; background: rgba(15, 23, 42, .72); color: #e5e7eb; font-size: 14.5px; line-height: 1.75; backdrop-filter: blur(4px); }
.nvp-info-text { min-width: 0; }
.nvp-info-text > div:first-child { color: #fff; }
.nvp-k { color: #aab4c3; }
.nvp-at { color: #94a3b8; font-size: 13px; margin-left: 4px; }
.nvp-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.nvp-actions form { margin: 0; }
@media (max-width: 680px) {
  .nvp-cover { height: 170px; }
  .nvp-head { flex-direction: column; margin-top: -60px; gap: 10px; padding: 0 12px 14px; }
  .nvp-avatar { width: 110px; height: 110px; margin-top: 0; }
  .nvp-name { font-size: 22px; color: var(--text); text-shadow: none; }
  .nvp-info { flex-direction: column; align-items: stretch; }
  .nvp-actions { justify-content: flex-start; }
}
.nvp-name img.nvp-badge { width: 24px; height: 24px; }

/* ---------- 1.4.0: statistics bar ---------- */
.nv-statbar { margin: 22px 0 4px; border-radius: 14px; overflow: hidden; color: #fff;
  background: linear-gradient(100deg, #0b3f7a 0%, #0f5fa8 38%, #10893f 78%, #16a34a 100%); box-shadow: 0 6px 22px rgba(15, 42, 74, .18); }
.nv-statbar-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nv-st { display: flex; align-items: center; gap: 16px; padding: 26px 24px; min-width: 0; position: relative; }
.nv-st + .nv-st::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: rgba(255,255,255,.18); }
.nv-st > i { font-size: 40px; opacity: .55; flex: 0 0 auto; width: 48px; text-align: center; }
.nv-st > div { min-width: 0; display: flex; flex-direction: column; }
.nv-st b, .nv-st a { font-size: 26px; font-weight: 800; line-height: 1.15; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.nv-st a:hover { text-decoration: underline; }
.nv-st span { font-size: 14px; opacity: .85; margin-top: 2px; }
@media (max-width: 900px) { .nv-statbar-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nv-st:nth-child(3)::before { display: none; }
  .nv-st:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.15); } }
@media (max-width: 480px) { .nv-st { padding: 18px 14px; gap: 10px; } .nv-st > i { font-size: 26px; width: 30px; }
  .nv-st b, .nv-st a { font-size: 19px; } .nv-st span { font-size: 12.5px; } }

/* ---------- 1.4.0: sidebar widgets ---------- */
.nv-side { display: flex; flex-direction: column; gap: 16px; }
.nv-side > * { margin: 0 !important; }
.nv-w { background: var(--bg-elev, #fff); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.nv-w-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.nv-w-h h3 { margin: 0; font-size: 15px; font-weight: 700; flex: 1; min-width: 0; color: var(--text); }
.nv-w-i { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); font-size: 14px; }
.nv-w-more { color: var(--muted); font-size: 13px; padding: 4px 6px; border-radius: 6px; }
.nv-w-more:hover { color: var(--primary); background: var(--bg-soft); }
.nv-w-b { padding: 12px 14px; }
.nv-w-f { padding: 9px 14px; border-top: 1px solid var(--border); background: var(--bg-soft); font-size: 13px; color: var(--muted); }

.nv-lt { padding: 4px 14px; }
.nv-lt-row { display: flex; gap: 10px; padding: 10px 0; }
.nv-lt-row + .nv-lt-row { border-top: 1px solid var(--border); }
.nv-lt-av img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: block; }
.nv-lt-tx { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.nv-lt-title { font-weight: 600; font-size: 14px; color: var(--text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nv-lt-title:hover { color: var(--primary); }
.nv-lt-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv-lt-meta a { color: var(--text); font-weight: 600; }
.nv-lt-cat { font-size: 12px; color: var(--primary); align-self: flex-start; }

.nv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-chip:hover { border-color: var(--primary); }
.nv-chip-more { font-weight: 500; color: var(--muted); }
.nv-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex: 0 0 auto; }
.nv-live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(34,197,94,.14); color: #16a34a; text-transform: lowercase; }
.nv-live i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: nvPulse 1.6s infinite; }
@keyframes nvPulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.nv-on-sum { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.nv-on-sum b { color: var(--text); }

.nv-avs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.nv-avs img { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; display: block; border: 2px solid var(--bg-elev, #fff); box-shadow: 0 0 0 1px var(--border); transition: transform .15s; }
.nv-avs a:hover img { transform: scale(1.08); }

.nv-sg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nv-sg > div { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; min-width: 0; }
.nv-sg b, .nv-sg a { font-size: 18px; font-weight: 800; color: var(--text); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv-sg span { font-size: 12.5px; color: var(--muted); }
.nv-sg .nv-sg-new { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.35); }
.nv-sg .nv-sg-new a { color: #16a34a; font-size: 16px; }

.nv-share { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.nv-share a, .nv-share button { height: 38px; border-radius: 9px; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
  background: var(--c); color: #fff; font-size: 16px; transition: transform .15s, filter .15s; }
.nv-share a:hover, .nv-share button:hover { transform: translateY(-2px); filter: brightness(1.08); }
[data-theme="dark"] .nv-share a[title="X"] { background: #2a2f36; }
[data-theme="dark"] .nv-sg .nv-sg-new a, [data-theme="dark"] .nv-live { color: #4ade80; }

/* 1.4.2: profile → Badges tab: equal tiles in a straight grid */
.badge-tile.card { margin: 0 !important; min-height: 74px; }
.badge-tile > i, .badge-tile > img.badge-img { width: 46px; height: 46px; flex: none; border-radius: 12px; }
.badge-tile > i { font-size: 19px; }
.badge-tile > img.badge-img { object-fit: contain; padding: 5px; background: var(--bg-soft); box-sizing: border-box; vertical-align: middle; }
.badge-tile b { display: block; line-height: 1.3; }
