/* لوحة شرف أكاديمية النجوم — all rules scoped under .njw */
.njw, .njw * { box-sizing: border-box; }
.njw {
	--njw-navy: #0a1230;
	--njw-navy2: #12204d;
	--njw-card: #141f45;
	--njw-line: rgba(232, 196, 104, .28);
	--njw-gold: #e8c468;
	--njw-gold2: #f6dd9a;
	--njw-text: #eef1fb;
	--njw-muted: #a9b3d4;
	position: relative;
	font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
	color: var(--njw-text);
	background: radial-gradient(1200px 600px at 50% -10%, #1f3577 0%, var(--njw-navy2) 35%, var(--njw-navy) 75%);
	border-radius: 24px;
	padding: 0 0 48px;
	overflow: hidden;
	line-height: 1.6;
	isolation: isolate;
	min-height: 60vh;
}
.njw button, .njw input, .njw select, .njw textarea { font-family: inherit; }
.njw-loading { text-align: center; font-size: 48px; color: var(--njw-gold); padding: 120px 0; animation: njw-pulse 1.2s infinite; }
@keyframes njw-pulse { 50% { opacity: .3; transform: scale(.9); } }

/* star field */
.njw-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
	background:
		radial-gradient(700px 420px at 12% 18%, rgba(120, 90, 220, .16), transparent 70%),
		radial-gradient(800px 500px at 88% 42%, rgba(60, 130, 230, .14), transparent 70%),
		radial-gradient(600px 400px at 30% 85%, rgba(232, 196, 104, .07), transparent 70%); }
.njw-sky i { position: absolute; border-radius: 50%; background: #fff; opacity: .8; }
.njw-sky i.m { box-shadow: 0 0 4px 1px rgba(255,255,255,.55); }
.njw-sky i.g { background: #f6dd9a; box-shadow: 0 0 6px 1px rgba(246,221,154,.7); }
.njw-sky i.b { background: #fff; box-shadow: 0 0 6px 2px rgba(255,255,255,.9), 0 0 16px 4px rgba(170,190,255,.45); }
.njw-sky i.b::before, .njw-sky i.b::after { content: ""; position: absolute; left: 50%; top: 50%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent); transform: translate(-50%, -50%); }
.njw-sky i.b::before { width: 22px; height: 1px; }
.njw-sky i.b::after { width: 1px; height: 22px; background: linear-gradient(180deg, transparent, rgba(255,255,255,.85), transparent); }
.njw-sky i.t { animation: njw-twinkle 4s infinite ease-in-out; }
@keyframes njw-twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.7); } }
.njw-shoot { position: absolute; width: 130px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255,255,255,.95), rgba(255,255,255,0)); opacity: 0; transform: rotate(-25deg); animation: njw-shoot 14s infinite ease-out; }
.njw-shoot::after { content: ""; position: absolute; left: -2px; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px rgba(255,255,255,.8); }
@keyframes njw-shoot { 0% { opacity: 0; transform: rotate(-25deg) translateX(0); } 2% { opacity: 1; } 8% { opacity: 0; transform: rotate(-25deg) translateX(-320px); } 100% { opacity: 0; transform: rotate(-25deg) translateX(-320px); } }
[dir="ltr"] .njw-shoot, .njw-shoot { direction: ltr; }
@media (prefers-reduced-motion: reduce) { .njw-sky i.t, .njw-shoot { animation: none; } .njw-shoot { display: none; } }

/* top bar */
.njw-top { display: flex; justify-content: flex-end; padding: 16px 20px 0; }
.njw-lang { background: rgba(255,255,255,.08); border: 1px solid var(--njw-line); color: var(--njw-gold2); border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer; }
.njw-lang:hover { background: rgba(232,196,104,.15); }

/* hero */
.njw-hero { text-align: center; padding: 18px 20px 8px; max-width: 820px; margin: 0 auto; }
.njw-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--njw-gold2); border: 1px solid var(--njw-line); border-radius: 999px; padding: 4px 14px; background: rgba(232,196,104,.08); }
.njw-hero h1 { font-size: clamp(30px, 6vw, 54px); font-weight: 800; margin: 14px 0 6px; line-height: 1.25; color: #fff; }
.njw-hero h1 span { background: linear-gradient(90deg, var(--njw-gold2), var(--njw-gold), #c9962e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.njw-hero p { color: var(--njw-muted); font-size: clamp(15px, 2.4vw, 18px); margin: 0 auto; max-width: 560px; }

/* counter */
.njw-stats { display: flex; justify-content: center; gap: 12px; margin: 26px auto 22px; flex-wrap: wrap; padding: 0 16px; }
.njw-stat { min-width: 120px; padding: 12px 18px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--njw-line); text-align: center; }
.njw-stat b { display: block; font-size: 32px; font-weight: 800; color: var(--njw-gold); line-height: 1.1; direction: ltr; }
.njw-stat span { font-size: 13px; color: var(--njw-muted); }
.njw-stat.njw-main { min-width: 170px; background: linear-gradient(160deg, rgba(232,196,104,.2), rgba(232,196,104,.04)); }
.njw-stat.njw-main b { font-size: 42px; }

.njw-cta { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--njw-gold2), var(--njw-gold) 50%, #c9962e); color: #1a1405; font-weight: 800; font-size: 18px; border: 0; border-radius: 14px; padding: 14px 28px; cursor: pointer; box-shadow: 0 10px 30px -8px rgba(232,196,104,.6); transition: transform .15s; }
.njw-cta:hover { transform: translateY(-2px); }
.njw-cta-wrap { text-align: center; }
.njw-cta-note { display: block; margin-top: 8px; font-size: 13px; color: var(--njw-muted); }

/* filters */
.njw-filters { max-width: 1160px; margin: 34px auto 0; padding: 0 16px; }
.njw-years { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.njw-chip { flex: 0 0 auto; border: 1px solid var(--njw-line); background: rgba(255,255,255,.04); color: var(--njw-text); border-radius: 999px; padding: 7px 15px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.njw-chip small { color: var(--njw-muted); margin-inline-start: 4px; }
.njw-chip.on { background: var(--njw-gold); color: #1a1405; border-color: var(--njw-gold); font-weight: 700; }
.njw-chip.on small { color: #3b2e0a; }
.njw-row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.njw-row > * { flex: 1 1 220px; }
.njw-field-dark { background: rgba(255,255,255,.06); border: 1px solid var(--njw-line); color: var(--njw-text); border-radius: 12px; padding: 11px 14px; font-size: 15px; min-height: 46px; width: 100%; }
.njw-field-dark option { color: #111; }
.njw-field-dark::placeholder { color: var(--njw-muted); }

/* grid */
.njw-batch-title { max-width: 1160px; margin: 30px auto 12px; padding: 0 16px; display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 800; color: var(--njw-gold2); }
.njw-batch-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--njw-line), transparent); }
[dir="rtl"] .njw-batch-title::after { background: linear-gradient(270deg, var(--njw-line), transparent); }
.njw-grid { max-width: 1160px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.njw-card { position: relative; background: linear-gradient(180deg, #18265a, var(--njw-card)); border: 1px solid var(--njw-line); border-radius: 20px; padding: 22px 16px 16px; text-align: center; transition: transform .2s, box-shadow .2s; animation: njw-in .4s both; }
.njw-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -18px rgba(232,196,104,.55); }
@keyframes njw-in { from { opacity: 0; transform: translateY(10px); } }
.njw-ph { width: 104px; height: 104px; margin: 0 auto 12px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, var(--njw-gold2), #b9852a, var(--njw-gold2), #b9852a, var(--njw-gold2)); }
.njw-ph img, .njw-ph .njw-ini { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; border: 3px solid var(--njw-card); font-size: 40px; font-weight: 800; color: #fff; }
.njw-name { font-size: 18px; font-weight: 800; margin: 0; line-height: 1.35; color: #fff; word-break: break-word; }
.njw-course { display: inline-block; margin: 8px 0 4px; padding: 3px 12px; border-radius: 999px; background: rgba(232,196,104,.14); color: var(--njw-gold2); font-weight: 700; font-size: 14px; direction: ltr; unicode-bidi: isolate; }
.njw-uni { font-size: 13px; color: var(--njw-muted); margin: 0; }
.njw-yr { position: absolute; top: 12px; inset-inline-start: 12px; font-size: 11px; color: var(--njw-gold2); background: rgba(10,18,48,.6); border: 1px solid var(--njw-line); padding: 2px 8px; border-radius: 999px; direction: ltr; unicode-bidi: isolate; }
.njw-grade { position: absolute; top: 12px; inset-inline-end: 12px; font-size: 12px; font-weight: 800; color: #1a1405; background: var(--njw-gold); padding: 2px 8px; border-radius: 999px; direction: ltr; unicode-bidi: isolate; }
.njw-msg { margin: 12px 0 0; font-size: 14px; color: #dfe4f6; background: rgba(255,255,255,.04); border-radius: 12px; padding: 8px 10px; position: relative; }
.njw-msg::before { content: "“"; color: var(--njw-gold); font-size: 22px; line-height: 0; vertical-align: -6px; margin-inline-end: 2px; }
.njw-acts { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.njw-ic { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--njw-line); background: transparent; color: var(--njw-gold2); font-size: 13px; cursor: pointer; text-decoration: none; }
.njw-ic:hover { background: rgba(232,196,104,.12); color: var(--njw-gold2); }
.njw-ic svg { width: 15px; height: 15px; fill: currentColor; }
.njw-empty { text-align: center; color: var(--njw-muted); padding: 40px 16px; grid-column: 1 / -1; }
.njw-more-wrap { text-align: center; margin-top: 24px; }
.njw-more { background: transparent; border: 1px solid var(--njw-gold); color: var(--njw-gold2); border-radius: 12px; padding: 10px 26px; font-size: 15px; cursor: pointer; }

/* modal */
.njw-modal { position: fixed; inset: 0; z-index: 999999; background: rgba(4,8,24,.78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; padding: 20px 12px; overflow-y: auto; }
.njw-box { width: 100%; max-width: 520px; background: linear-gradient(180deg, #18265a, #0f1a3f); border: 1px solid var(--njw-line); border-radius: 22px; padding: 22px 20px; margin: auto 0; position: relative; color: var(--njw-text); font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif; }
.njw-box h2 { margin: 0 0 4px; font-size: 22px; color: #fff; }
.njw-box .njw-sub { margin: 0 0 16px; color: var(--njw-muted); font-size: 14px; }
.njw-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--njw-line); background: transparent; color: var(--njw-text); font-size: 20px; cursor: pointer; line-height: 1; }
.njw-f { margin-bottom: 12px; }
.njw-f label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 5px; color: #e7eaf7; }
.njw-f label em { font-style: normal; color: var(--njw-muted); font-weight: 400; font-size: 12px; }
.njw-f .njw-field-dark { font-size: 16px; } /* 16px prevents iOS zoom */
.njw-f textarea.njw-field-dark { min-height: 70px; resize: vertical; }
.njw-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.njw-err { display: none; color: #ff9b9b; font-size: 12px; margin-top: 4px; }
.njw-f.bad .njw-err { display: block; }
.njw-f.bad .njw-field-dark { border-color: #ff8080; }
.njw-photo { display: flex; align-items: center; gap: 14px; }
.njw-photo .njw-ph { width: 76px; height: 76px; margin: 0; flex: 0 0 auto; }
.njw-photo .njw-ph .njw-ini { font-size: 28px; }
.njw-pbtn { display: inline-block; border: 1px dashed var(--njw-gold); color: var(--njw-gold2); border-radius: 12px; padding: 9px 14px; cursor: pointer; font-size: 14px; }
.njw-pbtn input { display: none; }
.njw-premove { background: none; border: 0; color: var(--njw-muted); font-size: 12px; cursor: pointer; text-decoration: underline; padding: 4px 0; display: block; }
.njw-count { float: inline-end; font-size: 12px; color: var(--njw-muted); font-weight: 400; direction: ltr; }
.njw-agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #dfe4f6; cursor: pointer; }
.njw-agree input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--njw-gold); flex: 0 0 auto; }
.njw-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.njw-submit { width: 100%; justify-content: center; margin-top: 6px; }
.njw-submit[disabled] { opacity: .6; cursor: wait; }
.njw-alert { background: rgba(255,120,120,.12); border: 1px solid rgba(255,120,120,.4); color: #ffc9c9; border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; display: none; }
.njw-done { text-align: center; padding: 10px 0; }
.njw-done .njw-big { font-size: 56px; line-height: 1; }
.njw-done h2 { margin: 10px 0 6px; }
.njw-done p { color: var(--njw-muted); margin: 0 0 18px; }
.njw-cardimg { width: 100%; border-radius: 14px; border: 1px solid var(--njw-line); display: block; margin: 0 auto 14px; max-width: 360px; }
.njw-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.njw-btn2 { background: transparent; border: 1px solid var(--njw-gold); color: var(--njw-gold2); border-radius: 12px; padding: 11px 20px; font-size: 15px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.njw-hint { font-size: 12px; color: var(--njw-muted); margin-top: 10px; }

@media (max-width: 560px) {
	.njw { border-radius: 0; }
	.njw-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 10px; }
	.njw-card { padding: 34px 8px 12px; border-radius: 16px; }
	.njw-ph { width: 80px; height: 80px; }
	.njw-ph .njw-ini { font-size: 30px; }
	.njw-name { font-size: 15px; }
	.njw-course { font-size: 12px; padding: 2px 9px; }
	.njw-uni { font-size: 11.5px; }
	.njw-msg { font-size: 12.5px; }
	
	.njw-stat { min-width: 96px; padding: 10px 10px; }
	.njw-stat b { font-size: 26px; }
	.njw-stat.njw-main { min-width: 100%; }
	.njw-2 { grid-template-columns: 1fr; gap: 0; }
	.njw-modal { padding: 0; }
	.njw-box { border-radius: 0; min-height: 100%; padding-top: 56px; }
}
.njw.njw-modal { border-radius: 0; min-height: 0; overflow-x: hidden; }
.njw a.njw-cta, .njw a.njw-btn2 { text-decoration: none !important; }
.njw-lang svg { vertical-align: -2px; }
@media (max-width: 560px) { .njw-ic span { display: inline; font-size: 12px; } .njw-ic { padding: 0 9px; } }
.njw .njw-premove[hidden] { display: none !important; }
.njw .njw-field-dark:focus, .njw-modal .njw-field-dark:focus { outline: none !important; border-color: var(--njw-gold) !important; box-shadow: 0 0 0 3px rgba(232,196,104,.25) !important; }
.njw select.njw-field-dark { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23e8c468' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-left: 36px; }
.njw[dir="ltr"] select.njw-field-dark, .njw-modal[dir="ltr"] select.njw-field-dark { background-position: right 14px center; padding-left: 14px; padding-right: 36px; }
.njw select.njw-field-dark:disabled { opacity: .5; }
/* full-bleed mode */
.njw.njw-bleed { border-radius: 0; position: relative; }
/* highlight a student's own card (#star-ID) */
.njw-card.njw-hl { border-color: var(--njw-gold); box-shadow: 0 0 0 2px var(--njw-gold), 0 0 40px -4px rgba(232,196,104,.8); animation: njw-in .4s both, njw-hlpulse 2.2s 0.6s 3 ease-in-out; }
@keyframes njw-hlpulse { 50% { box-shadow: 0 0 0 2px var(--njw-gold), 0 0 70px 6px rgba(232,196,104,.9); } }
.njw-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1000000; background: #f6dd9a; color: #1a1405; font: 700 15px/1.4 "Tajawal", "Segoe UI", Tahoma, sans-serif; padding: 12px 20px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); max-width: 90vw; text-align: center; transition: opacity .4s, transform .4s; }
.njw-toast.out { opacity: 0; transform: translate(-50%, 10px); }
.njw-linkbox { margin-top: 18px; padding: 14px; border: 1px dashed var(--njw-line); border-radius: 14px; text-align: start; display: grid; gap: 8px; }
.njw-linkbox b { color: var(--njw-gold2); font-size: 14px; }
.njw-linkbox input { font-size: 13px !important; min-height: 40px; }
.njw-linkbox .njw-btn2 { justify-content: center; }
.njw-linkbox small { color: var(--njw-muted); font-size: 12px; }
.njw-acts { flex-wrap: wrap; }
