/*
 * عالم نسبة — تجديد الواجهة الرئيسية.
 * يُحمَّل من شريط التنقل (template/nb_header.php) في كل صفحات العوالم.
 * يتعامل مع أقسام قديمة بتنسيقات مضمنة، لذا يستخدم !important في مواضع محددة فقط.
 */
@import url("https://fonts.googleapis.com/css2?family=Almarai:wght@400;700;800&display=swap");

:root {
  --nb-orange: #f7941d;
  --nb-orange-dark: #d97b0c;
  --nb-brick: #d9644f;
  --nb-blue: #4f7fcf;
  --nb-green: #8fbf2f;
  --nb-ink: #2f3338;
  --nb-muted: #6b7178;
  --nb-line: #e5e1d9;
  --nb-card: rgba(255, 255, 255, .94);
  --nb-up: #138a43;
  --nb-down: #c8312f;
  --nb-font: "Almarai", Tahoma, "Segoe UI", Arial, sans-serif;
  --nb-shadow: 0 8px 24px rgba(40, 32, 20, .10), 0 1px 3px rgba(40, 32, 20, .06);
}

body { font-family: var(--nb-font); }
.nb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nb-up { color: var(--nb-up) !important; }
.nb-down { color: var(--nb-down) !important; }

/* ================= شريط التنقل ================= */
.mnu { width: 100%; }
.nb-topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--nb-line);
  box-shadow: 0 2px 12px rgba(40, 32, 20, .08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--nb-font);
  direction: rtl;
}
.nb-topbar::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--nb-orange) 0 40%, var(--nb-brick) 40% 55%, var(--nb-blue) 55% 70%, var(--nb-green) 70% 85%, var(--nb-orange) 85%);
}
.nb-topbar-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
}
.nb-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nb-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 9px;
  color: var(--nb-ink) !important;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  transition: background .15s, color .15s;
}
.nb-nav-link:hover { background: #f5f1ea; }
.nb-nav-link.is-active { background: var(--nb-orange); color: #fff !important; }
.nb-nav-donate { color: var(--nb-brick) !important; }
.nb-nav-donate.is-active { background: var(--nb-brick); color: #fff !important; }

.nb-account { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; }
.nb-quick-login { display: flex; gap: 6px; align-items: center; margin: 0; }
.nb-quick-login input {
  width: 128px;
  height: 36px;
  padding: 0 10px;
  font: inherit;
  font-size: 14px;
  background: #f7f4ef;
  border: 1.5px solid var(--nb-line);
  border-radius: 8px;
}
.nb-quick-login input:focus { outline: none; border-color: var(--nb-orange); box-shadow: 0 0 0 3px rgba(247, 148, 29, .18); background: #fff; }
.nb-quick-login button, .nb-account-out {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--nb-orange);
  color: #fff !important;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
}
.nb-quick-login button:hover, .nb-account-out:hover { background: var(--nb-orange-dark); }
.nb-account-out { background: transparent; color: var(--nb-ink) !important; border: 1.5px solid var(--nb-line); }
.nb-account-out:hover { background: #f5f1ea; }
.nb-account-links { display: flex; gap: 12px; }
.nb-account-links a { color: var(--nb-blue) !important; font-weight: 700; font-size: 13px; text-decoration: none !important; }
.nb-account-links a:hover { text-decoration: underline !important; }
.nb-welcome { color: var(--nb-muted); }
.nb-welcome b { color: var(--nb-ink); }

/* أعلام الترجمة: أصغر وأهدأ */
.translation-icons { opacity: .85; padding: 6px 16px 0; }
.translation-icons .flagimg { border-radius: 2px; margin: 0 1px; }

/* ================= الشعار واختيار السهم ================= */
#nn { max-width: 293px; width: 70vw; height: auto; margin-top: 10px; }
.style5564t { font-family: var(--nb-font) !important; font-weight: 700; }
#myshare table { margin: 10px auto 4px; }
#myshare select#s, #myshare #ss, #myshare .style4t {
  font-family: var(--nb-font) !important;
  height: 40px !important;
  border-radius: 9px;
  border: 1.5px solid var(--nb-line);
  background: #fff;
  padding: 0 10px;
  font-size: 14px !important;
}
#myshare select#s { min-width: 190px; }
#myshare #ss { width: 170px !important; }
#myshare .style4t {
  width: auto !important;
  padding: 0 20px;
  background: var(--nb-orange);
  border-color: var(--nb-orange);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
#myshare .style4t:hover { background: var(--nb-orange-dark); }

/* ================= ملخص السوق ================= */
.nb-market, .nb-movers {
  width: min(760px, calc(100% - 24px));
  margin: 18px auto;
  padding: 18px;
  background: var(--nb-card);
  border: 1px solid var(--nb-line);
  border-radius: 16px;
  box-shadow: var(--nb-shadow);
  direction: rtl;
  text-align: right;
  font-family: var(--nb-font);
  color: var(--nb-ink);
  box-sizing: border-box;
}
.nb-market *, .nb-movers *, .nb-ticker * { box-sizing: border-box; }
.nb-market-chart { margin: 0 0 14px; text-align: center; }
.nb-market-chart img { display: block; width: 100%; max-width: 625px; height: auto; margin: 0 auto; border-radius: 10px; }
.nb-market-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.nb-market-title, .nb-movers-title { margin: 0; font-size: 20px; font-weight: 800; color: var(--nb-ink); }
.nb-market-date, .nb-movers-date { color: var(--nb-muted); font-size: 13px; }
.nb-market-close { text-align: left; }
.nb-market-label { display: block; color: var(--nb-muted); font-size: 12px; text-align: right; }
.nb-market-close strong { display: block; font-size: 28px; font-weight: 800; line-height: 1.2; }
.nb-market-change { font-size: 15px; font-weight: 700; }
.nb-market-close.nb-up strong, .nb-market-close.nb-up .nb-market-change { color: var(--nb-up); }
.nb-market-close.nb-down strong, .nb-market-close.nb-down .nb-market-change { color: var(--nb-down); }

.nb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; }
.nb-stat { background: #f7f4ef; border-radius: 10px; padding: 10px 12px; }
.nb-stat dt { color: var(--nb-muted); font-size: 12px; margin: 0 0 2px; }
.nb-stat dd { margin: 0; font-size: 16px; font-weight: 800; text-align: right; }
@media (max-width: 640px) { .nb-stats { grid-template-columns: repeat(2, 1fr); } .nb-market-close { text-align: right; } }

.nb-empty { color: var(--nb-muted); text-align: center; margin: 8px 0; }

/* شريط متحرك عند عرض سهم */
.nb-ticker {
  display: flex;
  align-items: center;
  width: min(900px, calc(100% - 24px));
  margin: 12px auto;
  background: var(--nb-card);
  border: 1px solid var(--nb-line);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--nb-font);
  direction: rtl;
}
.nb-ticker-label { flex: 0 0 auto; padding: 10px 14px; background: var(--nb-orange); color: #fff; font-weight: 800; font-size: 14px; }
.nb-ticker-track { overflow: hidden; flex: 1; }
.nb-ticker-move { display: inline-flex; white-space: nowrap; animation: nb-ticker 45s linear infinite; }
.nb-ticker:hover .nb-ticker-move { animation-play-state: paused; }
.nb-ticker-item { display: inline-flex; gap: 22px; padding: 0 22px; font-size: 14px; color: var(--nb-muted); }
.nb-ticker-item b { color: var(--nb-ink); }
@keyframes nb-ticker { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .nb-ticker-move { animation: none; } .nb-ticker-track { overflow-x: auto; } }

/* ================= محركو السوق ================= */
.nb-movers-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.nb-tabs-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.nb-tab-radio { position: absolute; opacity: 0; pointer-events: none; }
.nb-tab-btn {
  order: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f3efe8;
  color: var(--nb-ink);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.nb-tab-btn:hover { background: #ebe5da; }
.nb-tab-radio:focus-visible + .nb-tab-btn { outline: 3px solid rgba(247, 148, 29, .5); outline-offset: 2px; }
.nb-tab-radio:checked + .nb-tab-btn { background: var(--nb-ink); color: #fff; }
.nb-tab-radio:checked + .nb-tab-up { background: var(--nb-up); }
.nb-tab-radio:checked + .nb-tab-down { background: var(--nb-down); }
.nb-tab-radio:checked + .nb-tab-flat { background: var(--nb-orange); }
.nb-tab-panel { order: 1; display: none; width: 100%; margin-top: 10px; }
#nb-mv-gainers:checked ~ #nb-panel-gainers,
#nb-mv-losers:checked ~ #nb-panel-losers,
#nb-mv-by_volume:checked ~ #nb-panel-by_volume,
#nb-mv-by_value:checked ~ #nb-panel-by_value { display: block; }
.nb-hint { margin: 0 0 8px; color: var(--nb-muted); font-size: 12px; }

.nb-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nb-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nb-table th { position: sticky; top: 0; background: #f7f4ef; color: var(--nb-muted); font-weight: 700; font-size: 12px; padding: 8px 10px; text-align: right; white-space: nowrap; }
.nb-table td { padding: 8px 10px; border-top: 1px solid #efebe4; white-space: nowrap; }
.nb-table td.nb-name { white-space: normal; min-width: 140px; }
.nb-table tbody tr:hover { background: #fbf8f3; }
.nb-table a { color: var(--nb-ink) !important; text-decoration: none !important; font-weight: 700; }
.nb-table a:hover { color: var(--nb-orange-dark) !important; }
.nb-rank { color: var(--nb-muted); width: 36px; }
.nb-table .nb-more { display: none; }
.nb-more-cb { position: absolute; opacity: 0; pointer-events: none; }
.nb-more-cb:checked ~ .nb-table-scroll .nb-more { display: table-row; }
.nb-more-toggle { display: inline-block; margin-top: 10px; color: var(--nb-blue); font-weight: 700; font-size: 13px; cursor: pointer; }
.nb-more-hide { display: none; }
.nb-more-cb:checked ~ .nb-more-toggle .nb-more-show { display: none; }
.nb-more-cb:checked ~ .nb-more-toggle .nb-more-hide { display: inline; }

/* ================= الأقسام القابلة للطي (الأخبار، الأسواق ...) ================= */
div.round[id^="b_"] {
  position: relative;
  box-sizing: border-box;
  width: min(760px, calc(100% - 24px)) !important;
  margin: 8px auto !important;
  padding: 14px 18px !important;
  background: var(--nb-card) !important;
  border: 1px solid var(--nb-line);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(40, 32, 20, .06);
  color: var(--nb-ink) !important;
  font-family: var(--nb-font);
  font-size: 15px;
  font-weight: 700;
  text-align: right;
  transition: border-color .15s, box-shadow .15s;
}
div.round[id^="b_"]:hover { border-color: var(--nb-orange); box-shadow: var(--nb-shadow); }
div.round[id^="b_"] img#pls, div.round[id^="b_"] img[src*="plus.gif"] { display: none; }
div.round[id^="b_"]::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-left: 2px solid var(--nb-orange);
  border-bottom: 2px solid var(--nb-orange);
  transform: translateY(-70%) rotate(-45deg);
}

/* ================= التذييل ================= */
.nb-footer {
  margin: 28px auto 90px;
  width: min(1000px, calc(100% - 24px));
  font-family: var(--nb-font);
  color: var(--nb-muted);
  font-size: 13px;
}
.nb-footer-in { border-top: 1px solid var(--nb-line); padding-top: 16px; text-align: center; }
.nb-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 10px; }
.nb-footer-links a { color: var(--nb-ink) !important; font-weight: 700; text-decoration: none !important; }
.nb-footer-links a:hover { color: var(--nb-orange-dark) !important; }
.nb-footer-copy { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 0; }
.nb-footer-domains span:nth-child(1) { color: var(--nb-orange-dark); }
.nb-footer-domains span:nth-child(2) { color: #6f9a1f; }
.nb-footer-domains span:nth-child(3) { color: #3a9a93; }
.nb-footer-ver { opacity: .7; }

.nb-totop {
  display: inline-block;
  margin: 10px auto;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--nb-line);
  background: #fff;
  color: var(--nb-ink) !important;
  font-family: var(--nb-font);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none !important;
}
.nb-totop:hover { border-color: var(--nb-orange); }
.nb-disclaimer {
  box-sizing: border-box;
  width: min(760px, calc(100% - 24px));
  margin: 10px auto 90px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--nb-line);
  border-radius: 12px;
  color: var(--nb-muted);
  font-family: var(--nb-font);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}
.nb-disclaimer br { display: none; }
.nb-counter { opacity: .8; }

@media (max-width: 760px) {
  .nb-topbar-in { justify-content: center; }
  .nb-quick-login input { width: 110px; }
  .nb-nav-link { padding: 6px 10px; font-size: 14px; }
}

/* قواعد قديمة تفرض خط DroidKufi مع بديل serif على كل div: نعيد خط الهوية داخل الأقسام الجديدة */
.nb-topbar, .nb-topbar *, .nb-market, .nb-market *, .nb-movers, .nb-movers *,
.nb-ticker, .nb-ticker *, .nb-footer, .nb-footer *, .nb-disclaimer, .nb-sharebar, .nb-sharebar *,
div.round[id^="b_"] { font-family: var(--nb-font) !important; }
.nb-stat dd, .nb-market-close strong, .nb-market-change, .nb-table td { font-variant-numeric: tabular-nums; }

.nb-footer { margin-bottom: 12px; }
.nb-footer-in { background: rgba(255, 255, 255, .9); border: 1px solid var(--nb-line); border-radius: 14px; padding: 18px 16px; }
.nb-footer-links { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--nb-line); }
.nb-footer-motto { display: block; max-width: 160px; height: auto; margin: 0 auto 8px; }
.nb-footer-credit { margin: 8px 0 0; font-size: 12px; }
.nb-footer-credit a { color: var(--nb-muted) !important; text-decoration: none !important; }

/* ================= الجوال ================= */
.translation-icons { box-sizing: border-box; }
@media (max-width: 600px) {
  #myshare table, #myshare tbody, #myshare tr, #myshare td { display: block; width: 100% !important; text-align: center; }
  #myshare td { padding: 3px 0; height: auto !important; }
  #myshare select#s, #myshare #ss { width: calc(100% - 32px) !important; max-width: 320px; }
  /* مسافة واضحة بين قائمة الأسهم ومربع كتابة الرمز */
  #myshare select#s { margin-bottom: 14px; }
  #myshare #ss { display: inline-block; margin-top: 4px; margin-bottom: 4px; }
  #myshare .style4t { margin-top: 6px; }
  .nb-market, .nb-movers { padding: 14px; }
  .nb-market-close strong { font-size: 24px; }
  .nb-topbar-in { padding: 6px 10px; }
  .nb-quick-login { width: 100%; justify-content: center; }
  .nb-quick-login input { flex: 1; min-width: 0; width: auto; }
  .nb-account { width: 100%; justify-content: center; }
  .nb-sharebar-label { display: none; }
  .nb-sharebar .nb-share { width: 30px; height: 30px; }
  .nb-sharebar { gap: 4px; padding: 5px 8px; }
  .nb-footer { margin-bottom: 70px; }
}

/* روابط التطبيق */
.nb-apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin: 12px auto 4px; font-family: var(--nb-font); }
.nb-app { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none !important; }
.nb-app img { height: 38px; width: auto; }
.nb-app span { font-size: 11px; color: var(--nb-muted); }

#myshare table { height: auto !important; }
div.round[id^="b_"] { padding-left: 44px !important; }
@media (max-width: 600px) {
  .nb-account-links { padding-bottom: 4px; }
  div.round[id^="b_"] { text-align: right !important; }
}

/* مؤشر التحميل */
#loading { width: 240px !important; border: 1px solid var(--nb-line) !important; border-radius: 12px !important; box-shadow: var(--nb-shadow); font-family: var(--nb-font) !important; color: var(--nb-ink) !important; }
.nb-topbar-in { padding-bottom: 10px; }

/* ================= نادي نسبة ================= */
.nb-club { font-family: var(--nb-font); }
.nb-club .style5577 { padding-bottom: 10px; }
.nb-club-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 14px auto 18px; direction: rtl; }
.nb-act {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 8px 18px;
  border-radius: 10px; border: 1.5px solid var(--nb-line);
  background: #fff; color: var(--nb-ink) !important;
  font-family: var(--nb-font) !important; font-weight: 700; font-size: 15px;
  text-decoration: none !important; box-shadow: 0 1px 3px rgba(40, 32, 20, .06);
  transition: background .15s, border-color .15s, transform .1s;
}
.nb-act:hover { border-color: var(--nb-orange); transform: translateY(-1px); }
.nb-act span { color: var(--nb-orange); }
.nb-act-main { background: var(--nb-green); border-color: var(--nb-green); color: #fff !important; }
.nb-act-main span { color: #fff; }
.nb-act-main:hover { background: #7aa625; border-color: #7aa625; }

/* بطاقتا «ترشيحات أعضاء» و«مشاركات أعضاء» */
.nb-club table#tt {
  box-sizing: border-box;
  width: min(860px, calc(100% - 24px)) !important;
  margin: 18px auto !important;
  background: var(--nb-card) !important;
  border: 1px solid var(--nb-line) !important;
  border-radius: 16px !important;
  box-shadow: var(--nb-shadow);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.nb-club table#tt > tbody > tr > td { background-image: none !important; }
.nb-club table#tt font[color="#1A9A1A"] { color: var(--nb-ink) !important; font-size: 20px !important; font-weight: 800; font-family: var(--nb-font) !important; }
.nb-club table#tt img[src*="logotw"] { height: 26px; width: auto; vertical-align: middle; }
.nb-club table#tt table {
  border-collapse: separate !important;
  border-spacing: 8px !important;
  background: transparent !important;
  width: 100% !important;
}
.nb-club table#tt table td {
  background-color: #f7f4ef !important;
  background-image: none !important;
  border-radius: 10px;
  font-family: var(--nb-font) !important;
  vertical-align: top;
}
/* رؤوس الأعمدة */
.nb-club table#tt table tr:first-child > td,
.nb-club table#tt table td[class^="style4"], .nb-club table#tt table td.style54 {
  background: #fff !important;
  border: 1px solid var(--nb-line);
  font-weight: 700;
  font-size: 13px !important;
  text-align: center;
  padding: 8px !important;
  height: auto !important;
}
.nb-club table#tt td.style45 { color: var(--nb-up) !important; border-top: 3px solid var(--nb-up) !important; }
.nb-club table#tt td.style46 { color: var(--nb-down) !important; border-top: 3px solid var(--nb-down) !important; }
.nb-club table#tt td.style54 { color: var(--nb-blue) !important; border-top: 3px solid var(--nb-blue) !important; }
.nb-club marquee { font-family: var(--nb-font) !important; width: 100% !important; }
.nb-club marquee a { text-decoration: none !important; }
.nb-club marquee hr { border: 0; border-top: 1px solid var(--nb-line); }
.nb-club marquee font, .nb-club marquee span { font-family: var(--nb-font) !important; }

@media (max-width: 760px) {
  .nb-club table#tt { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nb-club-actions { padding: 0 12px; }
  .nb-act { flex: 1 1 100%; justify-content: center; }
}
.nb-club-posts { width: 100%; }
.nb-club table#tt td[bgcolor="#EEEEF0"], .nb-club table#tt td[bgcolor="#eeeef0"] { background: #f7f4ef !important; border-radius: 10px; }
.nb-club table#tt a.style5568, .nb-club table#tt a[href*="edt.php"] { font-family: var(--nb-font) !important; }
.nb-dua {
  display: block; box-sizing: border-box;
  width: min(860px, calc(100% - 24px)); margin: 0 auto;
  padding: 12px 16px; border-radius: 12px;
  background: #fff8ec; border: 1px solid #f6dcb4; color: #6b4a12;
  font-family: var(--nb-font); font-size: 15px; line-height: 1.9; text-align: center;
}
.nb-dua b { color: var(--nb-orange-dark); }
ins.adsbygoogle { max-width: 100% !important; }
@media (max-width: 760px) { .nb-club img#nn { width: 70vw; height: auto; } }
/* صورة الخلفية القديمة كانت بعرض أدنى 1024px فتسبب تمريرًا أفقيًا في الجوال */
img.mainbk2 { min-width: 0 !important; max-width: 100%; object-fit: cover; }

/* ================= مركز الأسواق (template/nb_markets.php) ================= */
.nbm {
  box-sizing: border-box;
  width: min(1100px, 100%);
  margin: 6px auto 18px;
  padding: 0 8px;
  text-align: right;
  direction: rtl;
  color: var(--nb-ink);
}
.nbm, .nbm * { font-family: var(--nb-font) !important; box-sizing: border-box; }
.nbm-head { text-align: center; margin: 6px auto 14px; max-width: 720px; }
.nbm-title { margin: 0 0 6px; font-size: 24px; font-weight: 800; color: var(--nb-ink); }
.nbm-title::after { content: ""; display: block; width: 56px; height: 4px; margin: 8px auto 0; border-radius: 4px; background: var(--nb-orange); }
.nbm-lead { margin: 0; color: var(--nb-muted); font-size: 14px; line-height: 1.9; }

.nbm-tape { min-height: 46px; margin: 0 0 18px; background: var(--nb-card); border: 1px solid var(--nb-line); border-radius: 12px; overflow: hidden; }

.nbm-group { margin: 0 0 20px; }
.nbm-group-title { margin: 0 4px 10px; font-size: 17px; font-weight: 800; color: var(--nb-ink); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.nbm-group-title span { font-size: 13px; font-weight: 400; color: var(--nb-muted); }

.nbm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.nbm-card {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 72px; padding: 12px 14px;
  background: var(--nb-card); border: 1px solid var(--nb-line); border-radius: 14px;
  box-shadow: 0 1px 3px rgba(40, 32, 20, .06);
  color: var(--nb-ink); text-align: right; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .1s;
  -webkit-appearance: none; appearance: none;
}
.nbm-card:hover { border-color: var(--nb-orange); box-shadow: var(--nb-shadow); transform: translateY(-1px); }
.nbm-card:focus-visible { outline: 3px solid rgba(247, 148, 29, .45); outline-offset: 2px; }
.nbm-card.is-open { border-color: var(--nb-orange); background: #fff; box-shadow: inset 0 0 0 1px var(--nb-orange), var(--nb-shadow); }
.nbm-ico { flex: 0 0 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #fdf1e1; color: var(--nb-orange-dark); }
.nbm-ico-globe, .nbm-ico-usa, .nbm-ico-world, .nbm-ico-gulf { background: #e9f0fb; color: var(--nb-blue); }
.nbm-ico-oil { background: #ecebe8; color: #3d3a35; }
.nbm-ico-gold { background: #fbf2d5; color: #a77a06; }
.nbm-ico-calendar, .nbm-ico-rates, .nbm-ico-dollar { background: #eef5e0; color: #5f8a15; }
.nbm-ico-pulse { background: #fbe9e6; color: var(--nb-brick); }
.nbm-ico-crypto { background: #f1ecfa; color: #6b4fbf; }
.nbm-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nbm-txt b { font-size: 15px; font-weight: 800; line-height: 1.4; }
.nbm-txt small { font-size: 12px; color: var(--nb-muted); line-height: 1.5; }
.nbm-chev { flex: 0 0 10px; width: 9px; height: 9px; border-left: 2px solid var(--nb-orange); border-bottom: 2px solid var(--nb-orange); transform: rotate(45deg); transition: transform .2s; margin-left: 4px; }
.nbm-card.is-open .nbm-chev { transform: rotate(-45deg); }

.nbm-panel { margin-top: 10px; background: #fff; border: 1px solid var(--nb-line); border-radius: 16px; box-shadow: var(--nb-shadow); overflow: hidden; }
.nbm-panel[hidden] { display: none; }
.nbm-view-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 0; }
.nbm-view-head h4 { margin: 0; font-size: 17px; font-weight: 800; }
.nbm-close { width: 34px; height: 34px; border: 1.5px solid var(--nb-line); border-radius: 50%; background: #fff; color: var(--nb-muted); font-size: 20px; line-height: 1; cursor: pointer; }
.nbm-close:hover { border-color: var(--nb-orange); color: var(--nb-ink); }
.nbm-why { margin: 10px 16px 0; padding: 10px 12px; background: #fff8ec; border: 1px solid #f6dcb4; border-radius: 10px; color: #6b4a12; font-size: 13px; line-height: 1.9; }
.nbm-why b { color: var(--nb-orange-dark); }
.nbm-body { padding: 12px; }
.nbm-body iframe { display: block; width: 100%; border: 0; border-radius: 10px; }
.nbm-body .tradingview-widget-container { width: 100%; }

.nbm-credit { margin: 4px auto 0; text-align: center; color: var(--nb-muted); font-size: 12px; line-height: 1.8; }
.nbm-credit a { color: var(--nb-blue) !important; }

@media (max-width: 600px) {
  .nbm { padding: 0; }
  .nbm-title { font-size: 21px; }
  .nbm-grid { grid-template-columns: 1fr; gap: 8px; }
  .nbm-card { min-height: 64px; padding: 10px 12px; }
  .nbm-body { padding: 8px 4px; }
  .nbm-why { margin: 10px 10px 0; }
}
