:root {
  /* ---------- Figma colors ---------- */

  --color-primary: #0a1d38;
  --color-secondary: #c29447;
  --color-tertiary: #1e304c;
  --color-neutral: #f8fafc;

  /* ---------- Supporting colors ---------- */

  --color-white: #ffffff;
  --color-black: #000000;

  --color-text: #111827;
  --color-text-muted: #6b7280;
  --color-border: #d1d5db;

  --color-success: #16803c;
  --color-danger: #c81e1e;
  --color-warning: #c29447;

  /* ---------- Typography ---------- */

  --font-headline: "Tajawal", sans-serif;
  --font-body: "Cairo", sans-serif;
  --font-label: "Cairo", sans-serif;

  /* ---------- Layout ---------- */

  --container-width: 1200px;

  --header-height: 72px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* ---------- Effects ---------- */

  --shadow-sm: 0 2px 8px rgba(10, 29, 56, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 29, 56, 0.12);

  --transition: 180ms ease;
}

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

html {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;

  direction: rtl;

  background: var(--color-neutral);
  color: var(--color-text);

  font-family: var(--font-body);
  line-height: 1.6;

  text-align: right;
}

/* =========================================================
   HEADER — TOP NAVIGATION BAR
   ========================================================= */

.top-navigation {
  box-sizing: border-box;

  position: absolute;

  top: 24px;
  left: 50%;

  transform: translateX(-50%);

  width: calc(100% - 48px);
  max-width: 1280px;

  height: 64px;

  padding: 0 24px;

  display: flex;
  flex-direction: row;

  align-items: center;
  justify-content: space-between;

  gap: 24px;

  background: rgba(247, 249, 251, 0.8);

  border: 1px solid rgba(255, 255, 255, 0.2);

  box-shadow: 0px 10px 30px rgba(10, 29, 56, 0.04);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-radius: 9999px;

  z-index: 5;
}

/* =========================================================
   LOGO
   ========================================================= */

.logo {
  display: flex;

  align-items: center;

  flex-shrink: 0;

  text-decoration: none;
}

.logo img {
  display: block;

  width: auto;
  height: 48px;

  object-fit: contain;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.navigation-links {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 38px;

  height: 100%;

  margin-right: auto;
  margin-left: auto;
}

/* Individual navigation link */

.nav-link {
  position: relative;

  display: flex;
  align-items: center;

  height: 100%;

  color: #4b4f55;

  font-family: var(--font-body);

  font-size: 18px;
  font-weight: 500;

  white-space: nowrap;

  text-decoration: none;

  transition: color 180ms ease;
}

/* Hover */

.nav-link:hover {
  color: var(--color-primary);
}

/* Active "الرئيسية" */

.nav-link.active {
  color: var(--color-secondary);

  font-weight: 700;
}

/* Small gold indicator underneath active link */

.nav-link.active::after {
  content: "";

  position: absolute;

  bottom: 7px;

  right: 50%;

  transform: translateX(50%);

  width: 5px;
  height: 5px;

  background: var(--color-secondary);

  border-radius: 50%;
}

/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.login-button {
  display: flex;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  height: 48px;

  padding: 0 30px;

  background: var(--color-secondary);

  color: #ffffff;

  border-radius: 9999px;

  font-family: var(--font-body);

  font-size: 18px;
  font-weight: 500;

  text-decoration: none;

  white-space: nowrap;

  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.login-button:hover {
  background: #b1843d;

  transform: translateY(-1px);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {
  .navigation-links {
    gap: 22px;
  }

  .nav-link {
    font-size: 16px;
  }

  .login-button {
    padding: 0 22px;
    font-size: 16px;
  }
}

@media (max-width: 800px) {
  .top-navigation {
    width: calc(100% - 32px);

    padding: 0 18px;
  }

  .navigation-links {
    display: none;
  }

  .logo img {
    height: 44px;
  }

  .login-button {
    height: 44px;

    padding: 0 22px;

    font-size: 15px;
  }
}

/* =========================================================
   HERO SECTION
   ========================================================= */

.hero {
  width: calc(100% - 48px);
  max-width: 1184px;

  min-height: 400px;
  height: 400px;

  margin: 96px auto 0;

  padding: 44.75px 0;

  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;

  background: var(--color-neutral);

  text-align: center;
}

/* =========================================================
   HERO CONTENT
   ========================================================= */

.hero-content {
  width: 100%;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align: center;
}

/* =========================================================
   HERO TITLE
   ========================================================= */

.hero-title {
  margin: 0;

  max-width: 850px;

  color: var(--color-primary);

  font-family: var(--font-headline);

  font-size: 42px;
  font-weight: 700;

  line-height: 1.35;

  text-align: center;
}

.hero-title span {
  color: var(--color-secondary);
}

/* =========================================================
   HERO DESCRIPTION
   ========================================================= */

.hero-description {
  margin: 20px 0 0;

  max-width: 720px;

  color: #3f4650;

  font-family: var(--font-body);

  font-size: 15px;
  font-weight: 400;

  line-height: 1.9;

  text-align: center;
}

/* =========================================================
   HERO FEATURES
   ========================================================= */

.hero-features {
  margin-top: 26px;

  display: flex;

  flex-direction: row;

  align-items: center;
  justify-content: center;

  gap: 12px;

  direction: rtl;
}

/* Individual feature pill */

.hero-feature {
  min-height: 32px;

  padding: 0 14px;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 7px;

  background: var(--color-primary);

  color: #ffffff;

  border-radius: 9999px;

  font-family: var(--font-body);

  font-size: 11px;
  font-weight: 500;

  white-space: nowrap;

  box-shadow: 0 3px 8px rgba(10, 29, 56, 0.12);
}

/* Small icon inside pill */

.feature-icon {
  color: var(--color-secondary);

  font-size: 10px;

  line-height: 1;
}

/* =========================================================
   RESPONSIVE HERO
   ========================================================= */

@media (max-width: 900px) {
  .hero {
    width: calc(100% - 32px);

    height: auto;
    min-height: 400px;

    margin-top: 96px;
  }

  .hero-title {
    max-width: 750px;

    font-size: 36px;
  }

  .hero-description {
    padding: 0 24px;
  }
}

@media (max-width: 600px) {
  .hero {
    width: calc(100% - 24px);

    min-height: 400px;

    margin-top: 88px;

    padding: 32px 16px;
  }

  .hero-title {
    font-size: 30px;

    line-height: 1.4;
  }

  .hero-description {
    margin-top: 16px;

    padding: 0;

    font-size: 14px;
  }

  .hero-features {
    flex-direction: column;

    width: 100%;

    margin-top: 22px;
  }

  .hero-feature {
    width: fit-content;
  }
}

/* =========================================================
   DUAL PORTAL CARDS
   ========================================================= */

.portal-section {
  width: calc(100% - 48px);
  max-width: 1184px;

  height: 440px;

  margin: 0 auto;

  padding: 0;

  display: flex;
  flex-direction: row;

  justify-content: center;
  align-items: flex-start;

  gap: 32px;

  direction: ltr;
}

/* =========================================================
   PORTAL CARD
   ========================================================= */

.portal-card {
  position: relative;

  width: calc((100% - 32px) / 2);
  height: 400px;

  padding: 28px 32px;

  display: flex;
  flex-direction: column;

  align-items: flex-end;

  background: #ffffff;

  border: 1px solid #e1e5ea;

  border-radius: 18px;

  box-shadow: 0px 8px 24px rgba(10, 29, 56, 0.04);

  direction: rtl;

  overflow: visible;
}

/* =========================================================
   CARD ICON
   ========================================================= */

.portal-icon {
  width: 44px;
  height: 44px;

  display: flex;

  align-items: center;
  justify-content: center;

  background: var(--color-primary);

  color: #ffffff;

  border-radius: 50%;

  font-size: 19px;

  align-self: flex-start;
}

.portal-icon-gold {
  background: var(--color-secondary);
}

/* =========================================================
   CARD CONTENT
   ========================================================= */

.portal-content {
  width: 100%;

  margin-top: 16px;

  text-align: right;
}

.portal-title {
  margin: 0;

  color: var(--color-primary);

  font-family: var(--font-headline);

  font-size: 29px;
  font-weight: 700;

  line-height: 1.4;

  text-align: right;
}

.portal-description {
  max-width: 470px;

  margin: 22px 0 0;

  color: #5e636b;

  font-family: var(--font-body);

  font-size: 15px;
  font-weight: 400;

  line-height: 1.9;

  text-align: right;
}

/* =========================================================
   CARD TAG
   ========================================================= */

.portal-tag {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  margin-top: 14px;

  padding: 4px 12px;

  min-height: 24px;

  background: #eef0f2;

  color: #686d73;

  border-radius: 9999px;

  font-family: var(--font-body);

  font-size: 13px;
  font-weight: 600;

  white-space: nowrap;
}

/* =========================================================
   CARD BUTTON
   ========================================================= */

.portal-button {
  position: absolute;

  bottom: 28px;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 9px;

  min-width: 148px;
  height: 40px;

  padding: 0 18px;

  border-radius: 9999px;

  font-family: var(--font-body);

  font-size: 14px;
  font-weight: 600;

  text-decoration: none;

  direction: rtl;

  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.portal-button:hover {
  transform: translateY(-1px);

  filter: brightness(0.95);
}

/* =========================================================
   UNIVERSITY CARD BUTTON
   ========================================================= */

.portal-button-primary {
  right: 28px;

  background: var(--color-primary);

  color: #ffffff;
}

/* =========================================================
   ASSESSMENT CARD BUTTON
   ========================================================= */

.portal-button-gold {
  right: 28px;

  background: var(--color-secondary);

  color: #ffffff;
}

/* =========================================================
   CENTER DECORATION
   ========================================================= */

.portal-section::before {
  content: "";

  position: absolute;

  width: 44px;
  height: 44px;

  background: #e9eef5;

  border-radius: 50%;

  left: 50%;

  transform: translateX(-50%);

  margin-top: 38px;

  z-index: 0;
}

/* Keep cards above decoration */

.portal-card {
  z-index: 1;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .portal-section {
    width: calc(100% - 32px);

    height: auto;

    flex-direction: column;

    align-items: center;

    gap: 24px;

    padding-bottom: 40px;
  }

  .portal-card {
    width: 100%;

    max-width: 580px;

    height: 380px;
  }

  .portal-section::before {
    display: none;
  }
}

@media (max-width: 600px) {
  .portal-section {
    width: calc(100% - 24px);
  }

  .portal-card {
    height: auto;
    min-height: 330px;

    padding: 20px;
  }

  .portal-title {
    font-size: 23px;
  }

  .portal-description {
    font-size: 13px;
  }

  .portal-button {
    bottom: 20px;
  }
}

/* =========================================================
   FOOTER — LIGHT VERSION
   ========================================================= */

.site-footer {
  position: relative;

  margin-top: 80px;

  background: #f8fafc;

  color: var(--color-primary);

  border-top: 1px solid #e4e8ed;
  border-radius: 32px 32px 0 0;

  overflow: hidden;
}

/* =========================================================
   SUBTLE DECORATION
   ========================================================= */

.site-footer::before {
  content: "";

  position: absolute;

  top: -120px;
  left: 50%;

  width: 320px;
  height: 320px;

  transform: translateX(-50%);

  background: rgba(194, 148, 71, 0.06);

  border-radius: 50%;

  pointer-events: none;
}

/* =========================================================
   FOOTER CONTAINER
   ========================================================= */

.footer-container {
  position: relative;

  z-index: 1;

  width: calc(100% - 48px);
  max-width: 1184px;

  margin: 0 auto;

  padding: 60px 0 48px;

  display: grid;

  grid-template-columns: 2fr 1fr 1.3fr 1.3fr;

  gap: 60px;

  direction: rtl;
}

/* =========================================================
   BRAND
   ========================================================= */

.footer-brand {
  max-width: 330px;
}

.footer-logo {
  display: inline-flex;

  align-items: center;
}

.footer-logo img {
  width: auto;
  height: 58px;

  object-fit: contain;
}

.footer-description {
  margin: 20px 0 0;

  color: #68717c;

  font-family: var(--font-body);

  font-size: 13px;

  line-height: 2;

  text-align: right;
}

/* =========================================================
   FOOTER COLUMNS
   ========================================================= */

.footer-column {
  display: flex;

  flex-direction: column;

  align-items: flex-start;
}

.footer-title {
  position: relative;

  margin: 0 0 22px;

  color: var(--color-primary);

  font-family: var(--font-headline);

  font-size: 18px;

  font-weight: 700;

  line-height: 1.4;
}

/* Gold line */

.footer-title::after {
  content: "";

  display: block;

  width: 28px;
  height: 3px;

  margin-top: 9px;

  background: var(--color-secondary);

  border-radius: 999px;
}

/* =========================================================
   FOOTER LINKS
   ========================================================= */

.footer-link {
  margin-bottom: 11px;

  color: #68717c;

  font-family: var(--font-body);

  font-size: 13px;

  line-height: 1.7;

  text-decoration: none;

  transition:
    color 180ms ease,
    transform 180ms ease;
}

.footer-link:hover {
  color: var(--color-secondary);

  transform: translateX(-3px);
}

/* =========================================================
   CONTACT
   ========================================================= */

.footer-contact-item {
  display: flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 14px;

  color: #68717c;

  font-family: var(--font-body);

  font-size: 12px;

  text-decoration: none;

  transition: color 180ms ease;
}

.footer-contact-item:hover {
  color: var(--color-primary);
}

/* Contact icon */

.footer-icon {
  width: 30px;
  height: 30px;

  display: flex;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  background: rgba(194, 148, 71, 0.12);

  color: var(--color-secondary);

  border: 1px solid rgba(194, 148, 71, 0.15);

  border-radius: 50%;

  font-size: 12px;
}

/* =========================================================
   SOCIAL MEDIA
   ========================================================= */

.footer-socials {
  display: flex;

  align-items: center;

  gap: 9px;

  margin-top: 10px;
}

.footer-socials a {
  width: 34px;
  height: 34px;

  display: flex;

  align-items: center;
  justify-content: center;

  background: #ffffff;

  color: var(--color-primary);

  border: 1px solid #dde2e8;

  border-radius: 50%;

  font-size: 13px;

  text-decoration: none;

  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.footer-socials a:hover {
  background: var(--color-secondary);

  color: #ffffff;

  border-color: var(--color-secondary);

  transform: translateY(-2px);
}

/* =========================================================
   FOOTER BOTTOM
   ========================================================= */

.footer-bottom {
  position: relative;

  z-index: 1;

  border-top: 1px solid #e1e5ea;
}

.footer-bottom-container {
  width: calc(100% - 48px);
  max-width: 1184px;

  min-height: 64px;

  margin: 0 auto;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 20px;

  direction: rtl;
}

.footer-bottom p {
  margin: 0;

  color: #8a929d;

  font-family: var(--font-body);

  font-size: 11px;
}

.footer-bottom-links {
  display: flex;

  align-items: center;

  gap: 10px;

  color: #8a929d;

  font-family: var(--font-body);

  font-size: 11px;
}

.footer-bottom-links a {
  color: inherit;

  text-decoration: none;

  transition: color 180ms ease;
}

.footer-bottom-links a:hover {
  color: var(--color-secondary);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1.5fr 1fr 1fr;

    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;

    max-width: 500px;
  }
}

@media (max-width: 600px) {
  .site-footer {
    margin-top: 60px;

    border-radius: 24px 24px 0 0;
  }

  .footer-container {
    width: calc(100% - 32px);

    grid-template-columns: 1fr 1fr;

    gap: 40px 24px;

    padding: 45px 0 35px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-description {
    font-size: 12px;
  }

  .footer-title {
    font-size: 16px;
  }

  .footer-link {
    font-size: 12px;
  }

  .footer-bottom-container {
    width: calc(100% - 32px);

    min-height: auto;

    padding: 20px 0;

    flex-direction: column;

    justify-content: center;

    text-align: center;
  }
}

.auth-header-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #0a1d38;
  color: #c29447;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: 0.2s ease;
}

.profile-button:hover {
  background: #c29447;
  color: #0a1d38;
  transform: translateY(-2px);
}

.login-button[hidden],
.profile-button[hidden] {
  display: none !important;
}

/* =========================
   ACCOUNT POPUP
   ========================= */

.account-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  padding-top: 95px;
}

.account-overlay[hidden] {
  display: none !important;
}

.account-popup {
  position: relative;

  width: 360px;
  max-width: calc(100% - 30px);

  padding: 30px;

  background: #ffffff;
  border-radius: 20px;

  box-shadow: 0 15px 45px rgba(10, 29, 56, 0.2);

  text-align: center;

  animation: accountPopupIn 0.2s ease;
}

@keyframes accountPopupIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.account-close {
  position: absolute;
  top: 12px;
  left: 12px;

  width: 32px;
  height: 32px;

  border: none;
  border-radius: 50%;

  background: #f1f3f5;
  color: #555;

  font-size: 22px;
  line-height: 1;

  cursor: pointer;
}

.account-close:hover {
  background: #e5e7eb;
}

.account-avatar {
  width: 64px;
  height: 64px;

  margin: 0 auto 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #0a1d38;
  color: #c29447;

  font-size: 24px;
}

.account-popup h2 {
  margin: 0 0 24px;

  color: #0a1d38;

  font-family: "Tajawal", sans-serif;
  font-size: 25px;
}

.account-info {
  margin-bottom: 22px;

  border: 1px solid #e1e5ea;
  border-radius: 12px;

  overflow: hidden;
}

.account-info-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 3px;

  padding: 13px 15px;

  text-align: right;
}

.account-info-row + .account-info-row {
  border-top: 1px solid #e1e5ea;
}

.account-info-row span {
  color: #6b7280;
  font-size: 11px;
}

.account-info-row strong {
  width: 100%;

  color: #0a1d38;

  font-size: 14px;

  overflow-wrap: anywhere;
}

.logout-button {
  width: 100%;
  height: 46px;

  border: none;
  border-radius: 999px;

  background: #0a1d38;
  color: #ffffff;

  font-family: "Cairo", sans-serif;
  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  transition: 0.2s ease;
}

.logout-button:hover {
  background: #c29447;
  color: #0a1d38;
}

/* =========================================================
   FINAL MOBILE HEADER — ALIGNED
   Header only. Uses absolute centering so the hamburger,
   logo and login/profile are ALWAYS on the exact same row.
   ========================================================= */

.mobile-menu-button {
  display: none;
}

@media (max-width: 800px) {

  .top-navigation {
    position: absolute !important;

    top: 14px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

    width: calc(100% - 28px) !important;
    max-width: none !important;
    height: 58px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: block !important;

    box-sizing: border-box !important;

    z-index: 1000 !important;
  }


  /* =====================================================
     HAMBURGER — RIGHT
     ===================================================== */

  .top-navigation .mobile-menu-button {
    position: absolute !important;

    top: 50% !important;
    right: 12px !important;

    transform: translateY(-50%) !important;

    width: 40px !important;
    height: 40px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;

    color: #0a1d38 !important;

    font-size: 21px !important;
    line-height: 1 !important;

    cursor: pointer !important;

    z-index: 1003 !important;
  }


  /* =====================================================
     LOGO — EXACT CENTER OF HEADER
     ===================================================== */

  .top-navigation .logo {
    position: absolute !important;

    top: 50% !important;
    left: 50% !important;

    transform: translate(-50%, -50%) !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    z-index: 1002 !important;
  }

  .top-navigation .logo img {
    display: block !important;

    width: auto !important;
    height: 42px !important;
    max-width: 120px !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;
  }


  /* =====================================================
     LOGIN / PROFILE — LEFT
     ===================================================== */

  .top-navigation .auth-header-area {
    position: absolute !important;

    top: 50% !important;
    left: 12px !important;

    transform: translateY(-50%) !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 7px !important;

    z-index: 1003 !important;
  }


  /* Login */

  .top-navigation .login-button {
    width: auto !important;
    height: 38px !important;

    margin: 0 !important;
    padding: 0 14px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 13px !important;
    line-height: 1 !important;

    white-space: nowrap !important;
  }


  /* Profile */

  .top-navigation .profile-button {
    width: 38px !important;
    height: 38px !important;

    margin: 0 !important;
    padding: 0 !important;

    flex: 0 0 38px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }


  /* =====================================================
     HIDE DESKTOP NAVIGATION
     ===================================================== */

  .top-navigation .navigation-links {
    display: none !important;
  }


  /* =====================================================
     OPEN MENU — DIRECTLY UNDER HEADER
     ===================================================== */

  .top-navigation.mobile-menu-open .navigation-links {
    position: absolute !important;

    top: 100% !important;
    right: 0 !important;
    left: 0 !important;

    width: 100% !important;
    height: auto !important;

    margin: 0 !important;
    padding: 7px !important;

    box-sizing: border-box !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;

    gap: 2px !important;

    background: #ffffff !important;

    border: 1px solid rgba(10, 29, 56, 0.08) !important;
    border-top: 0 !important;

    border-radius: 0 0 16px 16px !important;

    box-shadow: 0 14px 32px rgba(10, 29, 56, 0.14) !important;

    z-index: 1001 !important;
  }


  /* =====================================================
     MOBILE NAV LINKS
     ===================================================== */

  .top-navigation.mobile-menu-open
  .navigation-links
  .nav-link {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;

    margin: 0 !important;
    padding: 0 10px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;

    border-radius: 9px !important;

    font-size: 12px !important;
    line-height: 1 !important;

    white-space: nowrap !important;

    color: #4b4f55 !important;
  }

  .top-navigation.mobile-menu-open
  .navigation-links
  .nav-link:hover {
    background: rgba(194, 148, 71, 0.10) !important;
    color: #0a1d38 !important;
  }

  .top-navigation.mobile-menu-open
  .navigation-links
  .nav-link.active {
    background: rgba(194, 148, 71, 0.12) !important;
    color: #c29447 !important;
    font-weight: 700 !important;
  }

  .top-navigation.mobile-menu-open
  .navigation-links
  .nav-link.active::after {
    display: none !important;
  }


  /* =====================================================
     PROFILE POPUP
     ===================================================== */

  .account-overlay {
    padding-top: 82px !important;
  }

  .account-popup {
    width: 340px !important;
    max-width: calc(100% - 24px) !important;
  }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

  .top-navigation {
    top: 11px !important;
    width: calc(100% - 20px) !important;
    height: 54px !important;
  }

  .top-navigation .mobile-menu-button {
    right: 9px !important;

    width: 36px !important;
    height: 36px !important;

    font-size: 19px !important;
  }

  .top-navigation .logo img {
    height: 38px !important;
    max-width: 105px !important;
  }

  .top-navigation .auth-header-area {
    left: 9px !important;
    gap: 5px !important;
  }

  .top-navigation .login-button {
    height: 36px !important;
    padding: 0 11px !important;
    font-size: 11px !important;
  }

  .top-navigation .profile-button {
    width: 36px !important;
    height: 36px !important;
    flex-basis: 36px !important;
  }

  .top-navigation.mobile-menu-open
  .navigation-links
  .nav-link {
    height: 38px !important;
    min-height: 38px !important;
    font-size: 11px !important;
  }
}
/* =========================================================
   MOBILE AUTH VISIBILITY — DO NOT OVERRIDE HIDDEN
   ========================================================= */

@media (max-width: 800px) {

    .top-navigation .login-button[hidden],
    .top-navigation .profile-button[hidden] {
        display: none !important;
    }

    .top-navigation .login-button:not([hidden]) {
        display: flex !important;
    }

    .top-navigation .profile-button:not([hidden]) {
        display: flex !important;
    }
}