:root {
  --bg-main: #020617;
  --bg-card: #0b1220;
  --bg-card2: #111827;
  --accent: #facc15;
  --accent-soft: rgba(250,204,21,0.15);
  --accent-strong: rgba(250,204,21,0.45);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-soft: rgba(148,163,184,0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px 80px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: radial-gradient(circle at 30% 10%, #38bdf8, #1d4ed8 45%, #020617 100%);
  box-shadow: 0 18px 50px rgba(15,23,42,0.9);
}

.brand-text-small {
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.brand-title {
  font-size: 28px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--accent-strong);
  background: rgba(15,23,42,0.9);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-sub {
  margin-top: 10px;
  font-size: 13px;
  max-width: 420px;
  color: var(--text-muted);
}

.hero-visitors {
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 18px;
  background: linear-gradient(90deg,#0f172a,#1d4ed8);
  font-size: 13px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.hero-visitors-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #f97316;
  box-shadow: 0 0 0 3px rgba(248,150,69,0.35);
}

.hero-visitors-label {
  color: #bfdbfe;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 11px;
}

.hero-visitors-value {
  font-weight: 600;
  color: #f9fafb;
}

/* PORTALS */

.section-title {
  margin: 40px 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .26em;
  color: var(--text-muted);
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.portal-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 20px 22px;
  background: radial-gradient(circle at top left,#1d4ed8,#0b1120 45%,#020617 100%);
  box-shadow:
    0 26px 60px rgba(15,23,42,0.95),
    0 0 0 1px rgba(30,64,175,0.7);
  border: 1px solid rgba(15,23,42,0.8);
}

.portal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 120% 0,#facc15 0,transparent 55%);
  opacity: .18;
  pointer-events: none;
}

.portal-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.portal-code {
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #d1d5db;
}

.portal-badge {
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.85);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #e5e7eb;
}

.portal-title {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.portal-subtitle {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  font-size: 13px;
  color: #e5e7eb;
}

.portal-body {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-main);
  max-width: 560px;
}

.portal-cta-row {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.portal-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(15,23,42,0.88);
  border: 1px solid var(--accent-soft);
  color: #fefce8;
}

.portal-cta-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f59e0b;
}

.portal-cta-label {
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 11px;
}

.portal-cta-arrow {
  font-size: 13px;
}

.portal-signal {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.25);
}

/* YouTube + Social */

.chip-row,
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.chip,
.social-btn {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(135deg,#020617,#020617);
  color: var(--text-main);
}

.chip span.label {
  font-weight: 600;
  color: var(--accent);
}

.chip span.meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--text-muted);
}

.social-btn.main {
  border-color: var(--accent-strong);
}

.social-btn.main span.label {
  color: var(--accent);
}

.footer-note {
  margin-top: 30px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: left;
}

@media (min-width: 900px) {
  .portal-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
  .portal-card {
    min-height: 210px;
  }
}

/* === Language switch === */
.lang-switch {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.lang-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.9);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #e5e7eb;
  cursor: default;
}

.lang-pill.active {
  border-color: rgba(250,204,21,0.9);
  color: #facc15;
  box-shadow: 0 0 0 1px rgba(250,204,21,0.25);
}

/* Sub-page layout tweak */
.sub-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 16px 80px;
}

/* ===== Lang switch + logo final tuning (NOOR 2025) ===== */
.header {
  display: block;
}

.brand-block {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.brand-logo {
  width: 74px;
  height: 120px;
  border-radius: 26px;
  background: radial-gradient(circle at 20% 0%, #3b82f6, #0f172a 58%, #020617 100%);
  box-shadow: 0 0 40px rgba(56,189,248,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.lang-switch {
  margin-top: 18px;
  justify-content: flex-start;
}

.hero-visitors {
  margin-top: 18px;
}

@media (min-width: 900px) {
  .header {
    max-width: 1040px;
    margin: 0 auto 32px;
  }
}

/* === NOOR 2025 • Lang + Logo fix === */

/* شعار Aether الحقيقي داخل البلوك الأزرق */
.brand-logo {
  background-image: url("/assets/aether-logo.png");  /* ضع ملف الشعار بهذا الاسم داخل assets */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* شريط اللغات أسفل العداد وبشكل واضح */
.lang-switch {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  align-items: center;
}

.lang-pill {
  min-width: 56px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(252,211,77,0.6);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: transparent;
  color: #e5e7eb;
  cursor: pointer;
}

/* الحالة النشطة عند اختيار EN أو AR */
.lang-pill.is-active-lang {
  background: #fbbf24;
  color: #020617;
  box-shadow: 0 0 24px rgba(251,191,36,0.4);
}

/* ضبط الهيدر بحيث يكون الشعار، العداد، وشريط اللغات تحت بعض بوضوح */
.hero-visitors {
  margin-top: 16px;
}

/* === NOOR 2025 • Language bar + Global logo mark === */

/* شريط اللغات أسفل العداد */
.lang-switch {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  align-items: center;
}

/* حالة الأزرار (نستخدمها مع EN / AR أينما كانت) */
.noor-lang-pill-active {
  box-shadow: 0 0 24px rgba(251,191,36,0.45);
  background: #fbbf24;
  color: #020617 !important;
}

/* لوجو عالمي ثابت في كل الصفحات (يستخدم صورة الشعار الحقيقي) */
.aether-global-logo-mark {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 60px;
  height: 60px;
  border-radius: 24px;
  background-image: url("/assets/aether-logo.png"); /* ضع صورة الشعار بهذا الاسم داخل assets */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 0 24px rgba(59,130,246,0.65);
  pointer-events: none;   /* حتى لا تعطل أي زرار */
  z-index: 9999;
}

/* === NOOR 2025 • Language pills + Global logo mark === */

.lang-switch {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  align-items: center;
}

.noor-lang-pill-active {
  box-shadow: 0 0 24px rgba(251,191,36,0.45);
  background: #fbbf24;
  color: #020617 !important;
}

/* شعار آدم نور الثابت في كل الصفحات */
.aether-global-logo-mark {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 60px;
  height: 60px;
  border-radius: 24px;
  background-image: url("/assets/aether-logo.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 0 24px rgba(59,130,246,0.65);
  pointer-events: none;
  z-index: 9999;
}
/* AETHER CINEMA LOGO – HARD OVERRIDE */
img[alt*="AETHER CINEMA"] {
  position: relative !important;
  max-width: 260px !important;
  height: auto !important;
  margin: 0 auto 1.5rem !important;
  display: block !important;
  transform: none !important;
  z-index: 1 !important;
}
@media (min-width: 1024px) {
  img[alt*="AETHER CINEMA"] {
    max-width: 320px !important;
  }
}
