/* Local font */
@font-face {
  font-family: "IRANSans";
  src: url("/css/iransans.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg: #f5f7fb;
  --white: #fff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #1f3a8a;
  --primary-2: #2563eb;
  --border: #e5e7eb;
  --shadow: 0 10px 25px rgba(0, 0, 0, .07);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  direction: rtl;
  text-align: right;
  font-family: "IRANSans", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* Header */
.topbar {
  background: linear-gradient(90deg, var(--primary), #0f172a);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

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

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .14);
  font-size: 20px;
}

.brand h1 {
  margin: 0;
  font-size: 1.1rem;
}

.brand p {
  margin: 4px 0 0;
  color: #dbeafe;
  font-size: .82rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav>a {
  color: #e5edff;
  font-size: .95rem;
}

/* Buttons */
.btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
}

.btn-primary {
  background: var(--primary-2);
  color: #fff !important;
}

.btn-outline {
  border-color: rgba(255, 255, 255, .5);
  color: #fff !important;
}

/* Hero */
.hero {
  padding: 46px 0 26px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 22px;
}

.hero-content,
.hero-card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.badge {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: .8rem;
  margin-bottom: 8px;
}

.hero-content h2 {
  margin-top: 10px;
  margin-bottom: 14px;
  font-size: 2rem;
  line-height: 1.8;
}

.hero-content p {
  margin: 0 0 20px;
  color: var(--muted);
  text-align: justify;
  line-height: 2;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-card h3 {
  margin-top: 0;
}

.hero-card ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.hero-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: #374151;
}

.hero-card li:last-child {
  border-bottom: 0;
}

.hero-card i {
  color: #16a34a;
  margin-left: 8px;
}

/* Sections */
.section {
  padding: 34px 0;
}

.section-head h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: var(--primary);
}

.section-head p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* League cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  /* zooms/crops to fill */
  object-position: center;
  border-radius: 5px;
}

.card .title {
  flex-direction: row;
  display: flex;
  gap: 10px;
  align-items: center;
  align-content: center;
}

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.card h4 {
  margin: 12px 0 10px;
  flex: 1;
}

.card p {
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.9;
  text-align: justify;
}

.more {
  color: #1d4ed8;
  font-size: .92rem;
}

/* About */
.alt {
  background: #eef2ff;
  border-top: 1px solid #e0e7ff;
  border-bottom: 1px solid #e0e7ff;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.two-col p {
  line-height: 2;
  color: #374151;
  text-align: justify;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e5e7eb;
}

.stat strong {
  display: block;
  color: #1e3a8a;
  font-size: 1.4rem;
}

/* Timeline */
.timeline {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.time-item {
  display: flex;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.time-item:last-child {
  border-bottom: 0;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2563eb;
  margin-top: 10px;
}

/* Footer */
.footer {
  margin-top: 28px;
  background: #0f172a;
  color: #cbd5e1;
}

.footer-inner {
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer-links a {
  color: #cbd5e1;
}

/* Responsive */
@media (max-width: 960px) {

  .hero-grid,
  .cards,
  .two-col {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }
}


/* ===== Header / Nav ===== */
.site-header {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 60%, #334155 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.container {
  width: min(1280px, 94%);
  margin: 0 auto;
}



/* Logo image */

/* layout: menu right, tools/logo left */
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 18px;
}

.main-nav {
  order: 1;
}

.nav-left-tools {
  order: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* auth links */
.nav-auth-link {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
  transition: 0.2s ease;
}

.nav-auth-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-auth-btn {
  color: #0f172a;
  background: #fbbf24;
  text-decoration: none;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 10px;
  transition: 0.2s ease;
}

.nav-auth-btn:hover {
  background: #f59e0b;
  color: #111827;
}

/* language switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 5px 20px;
}

.lang-item {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}

.lang-item:hover {
  color: #fff;
}

.lang-item.active {
  color: #fff;
  text-decoration: underline;
}

.lang-sep {
  color: #cbd5e1;
  font-size: 0.8rem;
}

/* logo */
.logo img {
  height: 50px;
  width: auto;
  display: block;
}

/* mobile */
@media (max-width: 900px) {
  .nav-wrap {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0;
  }

  .nav-auth-btn,
  .nav-auth-btn {
    padding: 8px 5px;
    font-size: 13px;

  }

  .lang-switch {
    padding: 5px 10px;
  }

  .nav-left-tools {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .logo img {
    height: 44px;
  }
}

.logo {
  order: 2;
  /* goes to left side */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo img {
  height: 52px;
  width: auto;
  display: block;
}

.main-nav .menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.main-nav .menu>li {
  position: relative;
}

.main-nav .menu>li>a {
  display: inline-flex;
  align-items: center;
  padding: 11px 13px;
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  transition: 0.2s ease;
}

.main-nav .menu>li:hover>a {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* ===== Dropdown ===== */
.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 270px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(2, 6, 23, 0.25);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 1200;
}

.dropdown li a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #1e293b;
  font-size: 0.94rem;
}

.dropdown li a:hover {
  background: #eff6ff;
  color: #0f172a;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===== Mega Menu ===== */
.has-mega {
  position: static !important;
}

.mega-menu {
  position: absolute;
  right: 50%;
  transform: translateX(50%) translateY(12px);
  top: 80%;
  width: min(1240px, 96vw);
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.28);
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 1300;
  max-height: 78vh;
  overflow: auto;
}

.has-mega:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(50%) translateY(0);
}

/* Mega menu scroll container */
.mega-menu {
  max-height: 78vh;
  overflow: auto;

  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: #60a5fa #e2e8f0;
  /* thumb track */
}

/* Chrome / Edge / Safari */
.mega-menu::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.mega-menu::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 999px;
  margin: 8px;
}

.mega-menu::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #93c5fd 0%, #3b82f6 100%);
  border-radius: 999px;
  border: 2px solid #e2e8f0;
  /* gives floating thumb effect */
}

.mega-menu::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
}

.mega-menu::-webkit-scrollbar-corner {
  background: transparent;
}

.mega-menu {
  backdrop-filter: blur(6px);
}


.mega-section+.mega-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed #cbd5e1;
}

.mega-title {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #0f172a;
  font-weight: 800;
}

.mega-grid {
  display: grid;
  gap: 14px;
}

.mega-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mega-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mega-col {
  background: linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
}

.mega-col h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #0f172a;
  font-weight: 800;
}

.mega-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-col li+li {
  margin-top: 6px;
}

.mega-col a {
  color: #334155;
  text-decoration: none;
  line-height: 1.7;
  font-size: 0.9rem;
}

.mega-col a:hover {
  color: #0b4aa2;
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .mega-grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mega-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0;
  }

  .logo {
    justify-content: flex-start;
  }

  .logo img {
    height: 46px;
  }

  .main-nav .menu {
    flex-wrap: wrap;
    gap: 2px;
  }

  .main-nav .menu>li>a {
    padding: 10px 10px;
    font-size: 0.92rem;
  }

  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 0;
    padding: 6px 0 0;
    display: none;
  }

  .has-dropdown:hover .dropdown {
    display: block;
  }

  .mega-menu {
    position: static;
    transform: none !important;
    width: 100%;
    margin-top: 8px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    max-height: none;
  }

  .has-mega:hover .mega-menu {
    display: block;
  }

  .mega-grid-5,
  .mega-grid-3 {
    grid-template-columns: 1fr;
  }
  .mega-col a {
    font-size: 0.7rem;
  }
}



/* ===== Mobile Nav Toggle ===== */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .2s ease;
}

/* mobile behavior */
@media (max-width: 900px) {
  .nav-wrap {
    position: relative;
    min-height: 72px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
    order: 1;
  }

  .nav-left-tools {
    order: 2;
    gap: 10px;
  }

  .main-nav {
    order: 3;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 100%;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    padding: 8px;
    display: none;
    /* hidden by default */
    z-index: 1500;
    max-height: 80vh;
    overflow-y: scroll;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav .menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .main-nav .menu>li>a {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
  }

  /* dropdown/mega in mobile: click-style */
  .dropdown,
  .mega-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    box-shadow: none;
    margin-top: 6px;
  }

  .has-dropdown.open>.dropdown,
  .has-mega.open>.mega-menu {
    display: block;
  }

  .mega-grid-5,
  .mega-grid-3 {
    grid-template-columns: 1fr;
  }
}





/* ===== Hero Full-width Slider ===== */
.hero-slider {
  position: relative;
  width: 100%;
  height: calc(100vh - 78px);
  /* full screen under navbar */
  min-height: 520px;
  overflow: hidden;
}

.slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 1.2s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.slide .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(2, 6, 23, 0.35) 0%,
      rgba(2, 6, 23, 0.55) 50%,
      rgba(2, 6, 23, 0.7) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  /* in RTL this is right side */
  color: #fff;
  text-align: right;
  padding-right: 50px;
}

.slide-content h1,
.slide-content h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.25;
}

.slide-content p {
  margin: 0 0 20px;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  max-width: 700px;
  color: #e2e8f0;
}

.hero-btn {
  display: inline-block;
  background: #fbbf24;
  color: #111827;
  text-decoration: none;
  font-weight: 800;
  padding: 11px 18px;
  border-radius: 10px;
  transition: 0.2s ease;
}

.hero-btn:hover {
  background: #f59e0b;
}

/* arrows */
.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  color: #fff;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
}

.slider-control:hover {
  background: rgba(15, 23, 42, 0.7);
}

.slider-control.prev {
  left: 18px;
}

.slider-control.next {
  right: 18px;
}

/* dots */
.slider-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 8px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.55);
}

.dot.active {
  background: #fbbf24;
}

@media (max-width: 768px) {
  .hero-slider {
    height: calc(80vh - 72px);
    min-height: 430px;
  }
}


/* ===== Sponsors ===== */
.section {
  padding: 64px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: #0f172a;
  font-weight: 800;
}

.section-head p {
  margin: 0;
  color: #64748b;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.sponsor-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.sponsor-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
}

.sponsor-card img {
  max-width: 100%;
  max-height: 76px;
  /* consistent visual height */
  object-fit: contain;
  /* filter: grayscale(100%); */
  opacity: .85;
  transition: .2s ease;
}

.sponsor-card:hover img {
  /* filter: grayscale(0%); */
  opacity: 1;
}

/* responsive */
@media (max-width: 1100px) {
  .sponsors-grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
}

@media (max-width: 700px) {
  .sponsors-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }
}


/* ===== Past Events Auto-scroll Gallery ===== */
.events-marquee .section-head {
  margin-bottom: 18px;
}

.marquee-wrap {
  --gap: 16px;
  --card-w: 320px;
  --card-h: 210px;
  --speed: 100s;
  /* smaller = faster */

  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 6px 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: var(--gap);
  width: max-content;
  animation: marquee-scroll var(--speed) linear infinite;
  will-change: transform;
}

/* Pause on hover */
.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

.event-card {
  flex: 0 0 var(--card-w);
  width: var(--card-w);
  height: var(--card-h);
  border-radius: 14px;
  overflow: hidden;
  display: block;
  background: #e5e7eb;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.12);
  transition: transform .25s ease, box-shadow .25s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.18);
}

.event-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* zoom/crop nicely */
  object-position: center;
  display: block;
}

/* Seamless loop: move by half (because content duplicated) */
@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(50% + (var(--gap) / 2)));
  }
}

/* gradient fade edges */
.marquee-wrap::before,
.marquee-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  width: 90px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, #fff 20%, transparent 100%);
}

.marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, #fff 20%, transparent 100%);
}

/* responsive */
@media (max-width: 900px) {
  .marquee-wrap {
    --card-w: 260px;
    --card-h: 170px;
    --speed: 30s;
  }
}

@media (max-width: 600px) {
  .marquee-wrap {
    --card-w: 210px;
    --card-h: 140px;
    --gap: 12px;
    --speed: 24s;
  }

  .marquee-wrap::before,
  .marquee-wrap::after {
    width: 50px;
  }
}

/* accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* user menu */
.user-menu {
  position: relative;
  display: inline-block;
}

.user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  color: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font: inherit;
}

.user-btn i.fa-regular.fa-user {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  padding: 8px;
  font-size: 12px;
}

.user-caret {
  font-size: 11px;
  opacity: .85;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  left: 0; /* RTL layout with tools on left side */
  min-width: 180px;
  background: rgba(20, 24, 35, 0.95);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  display: none;
  z-index: 1000;
}

.user-menu:hover .user-dropdown,
.user-menu:focus-within .user-dropdown {
  display: block;
}

.user-dropdown a,
.user-dropdown .logout-btn {
  display: block;
  width: 100%;
  text-align: right;
  color: #fff;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}

.user-dropdown a:hover,
.user-dropdown .logout-btn:hover {
  background: rgba(255,255,255,.1);
}
