*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #11294a;
  --navy-dark:  #0b1d36;
  --gold:       #bfa15f;
  --gold-light: #e3d2ad;
  --orange:     #e07a22;
  --white:      #FFFFFF;
  --light-bg:   #f4f7f9;
  --border:     #d1dae3;
  --text-dark:  #1d2d42;
  --text-mid:   #506176;
  --text-light: #abb8c3;
  --footer-bg:  #0b1d36;
  --success:    #1b5e20;
  --danger:     #c62828;
}

html { scroll-behavior: smooth; }

body.verify-portal {
  font-family: 'Droid Arabic Kufi', 'Segoe UI', Arial, sans-serif;
  background: var(--light-bg);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
}

.top-bar {
  display: none;
}

.site-header {
  background: linear-gradient(180deg, #ffffff 0%, #f7f4ec 100%);
  border-bottom: 4px solid var(--gold);
  padding: 12px 18px 0;
  box-shadow: 0 2px 12px rgba(11, 29, 54, 0.08);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 12px;
  min-height: 88px;
  padding: 0 56px;
}

.nav-toggle {
  display: none;
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 1.5px solid rgba(17, 41, 74, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  z-index: 2;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}
.nav-toggle[aria-expanded="true"] {
  background: var(--navy);
  border-color: var(--navy);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: #fff;
}

.lang-btn {
  background: var(--gold);
  color: var(--navy-dark);
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
  display: none;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(191, 161, 95, 0.35);
}
.lang-btn:hover { background: var(--orange); color: var(--white); }

.header-brand {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px 4px;
}

.scu-brand-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(460px, 70vw);
  max-height: 96px;
  object-fit: contain;
  object-position: center;
}

.site-nav {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 8px 14px;
  border-top: 1px solid rgba(191, 161, 95, 0.35);
  background: rgba(255, 255, 255, 0.55);
}

.site-nav .nav-link {
  color: var(--navy);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 11px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  min-width: 138px;
  text-align: center;
}
.site-nav .nav-link:hover {
  background: rgba(191, 161, 95, 0.2);
  border-color: rgba(191, 161, 95, 0.55);
  color: var(--navy-dark);
}
.site-nav .nav-link.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 4px 12px rgba(17, 41, 74, 0.22);
}

.nav-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

.site-nav .lang-btn {
  min-width: 72px;
  border-radius: 999px;
  padding: 11px 20px;
}

/* توافق مع عناصر قديمة إن وُجدت */
.header-right,
.header-title,
.header-top-row,
.logo-img,
.logo-fallback {
  display: none !important;
}

@media (max-width: 900px) {
  .header-brand-row {
    min-height: 78px;
    padding: 0 52px;
  }
  .scu-brand-logo {
    max-width: min(360px, 62vw);
    max-height: 78px;
  }
}

@media (max-width: 768px) {
  .site-header { padding: 8px 12px 0; }
  .nav-toggle { display: inline-flex; }
  .header-brand-row {
    min-height: 70px;
    padding: 0 48px;
  }
  .lang-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  .scu-brand-logo {
    max-width: min(260px, 58vw);
    max-height: 64px;
  }
  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px 4px 12px;
    background: rgba(255, 255, 255, 0.92);
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav .nav-link {
    width: 100%;
    min-width: 0;
    font-size: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    text-align: center;
  }
  .nav-lang {
    width: 100%;
    justify-content: center;
    padding-top: 4px;
  }
  .site-nav .lang-btn {
    width: 100%;
    border-radius: 10px;
    padding: 12px 14px;
  }
}

@media (max-width: 400px) {
  .scu-brand-logo {
    max-width: min(200px, 52vw);
    max-height: 52px;
  }
  .site-nav .nav-link {
    font-size: 13px;
    padding: 11px 12px;
  }
}

.banner,
.banner-hero {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #0b1d36;
  min-height: clamp(180px, 28vw, 320px);
}

.banner-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}

.banner-overlay {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 36px) 16px;
  background: linear-gradient(
    180deg,
    rgba(11, 29, 54, 0.28) 0%,
    rgba(11, 29, 54, 0.42) 100%
  );
}

.banner-title-box {
  max-width: min(760px, 94vw);
  width: 100%;
  text-align: center;
  padding: clamp(14px, 2.5vw, 22px) clamp(16px, 3vw, 28px);
  border-radius: 14px;
  border: 1px solid rgba(191, 161, 95, 0.6);
  background: rgba(11, 29, 54, 0.42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.banner-title-box .b-title {
  color: #fff;
  font-size: clamp(15px, 2.1vw, 22px);
  font-weight: 700;
  line-height: 1.65;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  margin: 0;
}

@media (max-width: 768px) {
  .banner,
  .banner-hero {
    min-height: clamp(160px, 42vw, 240px);
  }
  .banner-title-box .b-title {
    font-size: clamp(13px, 3.4vw, 16px);
    line-height: 1.55;
  }
}

.page-title-bar { display: none; }

.portal-intro {
  background: var(--navy);
  text-align: center;
  padding: 28px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.portal-intro-inner {
  max-width: 850px;
  margin: 0 auto;
}
.portal-intro .info-text {
  color: #e2ecf5;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  margin: 0 auto 14px;
}
.portal-intro .system-link-wrapper { margin-top: 4px; }
.portal-intro .system-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(191, 161, 95, 0.4);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
}
.portal-intro .system-link::before { content: "🔗"; font-size: 14px; }
.portal-intro .system-link:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  box-shadow: 0 4px 12px rgba(224, 122, 34, 0.3);
}

.content-page-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(17, 41, 74, 0.08);
  padding: 36px 32px;
  width: 100%;
  max-width: 920px;
  border: 1px solid var(--border);
  text-align: start;
}
.content-page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px;
}
.content-page-lead {
  color: var(--text-mid);
  line-height: 1.7;
  margin: 0 0 22px;
}
.content-section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 22px 0 10px;
}
.guide-steps {
  margin: 0;
  padding-inline-start: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.guide-steps li strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}
.guide-steps li p {
  margin: 0;
  color: var(--text-mid);
  line-height: 1.7;
}
.content-list {
  margin: 0;
  padding-inline-start: 22px;
  color: var(--text-mid);
  line-height: 1.8;
}
.content-note {
  margin-top: 20px;
  padding: 14px 16px;
  background: #f7fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-dark);
  line-height: 1.7;
}
.content-note p { margin: 0 0 10px; }
.content-note p:last-child { margin-bottom: 0; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f8fafc;
  border: none;
  padding: 14px 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  text-align: start;
}
.faq-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}
.faq-answer {
  display: none;
  padding: 0 16px 14px;
  color: var(--text-mid);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  background: #fff;
}
.faq-answer p { margin: 12px 0 0; }
.faq-item.is-open .faq-answer { display: block; }
.faq-item.is-open .faq-question { background: rgba(191, 161, 95, 0.12); }

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.contact-info-block {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}
.contact-line { margin: 0 0 8px; color: var(--text-dark); line-height: 1.6; }
.contact-line.muted { color: var(--text-mid); }
.contact-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-detail-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}
.contact-detail-list li:last-child { border-bottom: none; padding-bottom: 0; }
.contact-detail-list .label {
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 700;
}
.contact-detail-list .val {
  color: var(--navy);
  font-weight: 700;
}

@media (max-width: 700px) {
  .content-page-card { padding: 24px 18px; }
  .contact-card-grid { grid-template-columns: 1fr; }
  .portal-intro .info-text { font-size: 14px; }
}

.verify-portal main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 44px 16px;
}

.verify-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(17, 41, 74, 0.08);
  padding: 42px 36px;
  width: 100%;
  max-width: 480px;
  text-align: center;
  border: 1px solid var(--border);
}

.verify-results-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(17, 41, 74, 0.08);
  padding: 36px 32px;
  width: 100%;
  max-width: 920px;
  border: 1px solid var(--border);
}

.verify-results-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.verify-results-header h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.verify-link-btn {
  color: var(--navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  transition: all 0.2s ease;
}
.verify-link-btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.security-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 41, 74, 0.05);
  color: var(--navy);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin-bottom: 14px;
  border: 1.5px dashed var(--gold);
  animation: iconFloat 3s ease-in-out infinite alternate;
}

.verify-card label,
.verify-card .field-label {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 18px;
}

.verify-card input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 19px;
  color: var(--text-dark);
  background: #FAFAFA;
  text-align: center;
  direction: ltr;
  letter-spacing: 1px;
  outline: none;
  transition: all 0.25s ease;
  font-family: inherit;
  text-transform: uppercase;
}

.verify-card input[type="text"]:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(224, 122, 34, 0.15);
  background: var(--white);
}

.btn-query {
  margin-top: 22px;
  width: 100%;
  padding: 14px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(17, 41, 74, 0.15);
  font-family: inherit;
}
.btn-query:hover {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(224, 122, 34, 0.3);
}
.btn-query:active { transform: scale(0.98); }

.verify-alert {
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.6;
  text-align: right;
}
.verify-alert-info {
  background: rgba(17, 41, 74, 0.06);
  border: 1px solid rgba(17, 41, 74, 0.12);
  color: var(--navy);
}
.verify-alert-success {
  background: rgba(27, 94, 32, 0.08);
  border: 1px solid rgba(27, 94, 32, 0.2);
  color: var(--success);
}
.verify-alert-danger {
  background: rgba(198, 40, 40, 0.08);
  border: 1px solid rgba(198, 40, 40, 0.2);
  color: var(--danger);
}
.verify-alert-warning {
  background: rgba(224, 122, 34, 0.1);
  border: 1px solid rgba(224, 122, 34, 0.25);
  color: #a85a12;
}

.verify-url-security-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 2px solid var(--orange);
  border-radius: 12px;
  background: linear-gradient(135deg, #fff8f0 0%, #fff3e6 100%);
  box-shadow: 0 4px 14px rgba(224, 122, 34, 0.18);
}
.verify-url-security-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.verify-url-security-notice p {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.75;
  color: #b45309;
  text-align: right;
}
html[dir="ltr"] .verify-url-security-notice p {
  text-align: left;
}
.verify-url-security-notice .verify-official-url {
  color: #c2410c;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  direction: ltr;
  unicode-bidi: embed;
}
.verify-url-security-notice .verify-official-url:hover {
  color: var(--navy);
}

.verify-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-inline-end: 8px;
}
.verify-badge-success {
  background: rgba(27, 94, 32, 0.12);
  color: var(--success);
  border: 1px solid rgba(27, 94, 32, 0.25);
}
.verify-badge-danger {
  background: rgba(198, 40, 40, 0.12);
  color: var(--danger);
  border: 1px solid rgba(198, 40, 40, 0.25);
}

.verify-kv {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px 16px;
  margin-bottom: 24px;
}
@media (max-width: 640px) {
  .verify-kv { grid-template-columns: 1fr; }
}
.verify-kv .k {
  color: var(--text-mid);
  font-weight: 700;
  font-size: 14px;
}
.verify-kv .v {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 17px;
}

.verify-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 20px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold-light);
}

.verify-module-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.verify-module-list li {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fafbfc;
  font-weight: 600;
  font-size: 17px;
}

.verify-equiv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 640px) {
  .verify-equiv-grid { grid-template-columns: 1fr; }
}
.verify-equiv-item {
  padding: 14px;
  background: #fafbfc;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.verify-equiv-item .label {
  color: var(--text-mid);
  font-size: 13px;
  margin-bottom: 4px;
}
.verify-equiv-item .value {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 17px;
}

.verify-decision-box {
  margin-top: 16px;
  padding: 16px;
  background: #fafbfc;
  border: 1px solid var(--border);
  border-radius: 10px;
  line-height: 1.7;
  font-size: 15px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.verify-captcha-wrap {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

@keyframes iconFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); border-color: var(--orange); color: var(--orange); }
}

@media (max-width: 520px) {
  .verify-card { padding: 30px 20px; }
  .verify-results-card { padding: 24px 18px; }
}

footer.verify-footer {
  background: var(--footer-bg);
  color: var(--white);
  padding: 35px 40px 0;
  border-top: 4px solid var(--orange);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 25px;
}

.footer-right-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}
html[dir="ltr"] .footer-right-side { text-align: left; }

.footer-right-side .brand-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--gold);
}
.footer-right-side .brand-sub {
  font-size: 14px;
  color: var(--text-light);
}
.footer-right-side .brand-desc {
  font-size: 15px;
  color: var(--white);
  line-height: 1.7;
  margin-top: 4px;
}

.footer-left-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
html[dir="ltr"] .footer-left-side { text-align: right; }

.footer-left-side .contact-item {
  font-size: 15px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
html[dir="ltr"] .footer-left-side .contact-item { justify-content: flex-start; }

.footer-left-side .contact-item .icon { color: var(--gold); font-size: 15px; }
.footer-left-side .contact-item .val { direction: ltr; display: inline-block; }

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }
  .footer-right-side { text-align: center; }
  html[dir="ltr"] .footer-right-side { text-align: center; }
  .footer-left-side { align-items: center; }
  .footer-left-side .contact-item { justify-content: center; }
  html[dir="ltr"] .footer-left-side .contact-item { justify-content: center; }
}

.footer-bottom {
  background: var(--gold);
  text-align: center;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--navy-dark);
  font-weight: 600;
  margin-left: -40px;
  margin-right: -40px;
}
