/* Enhanced Baghauni Shia Azadari Portal CSS */
:root {
  --bg: #080808;
  --bg-soft: #12100f;
  --panel: rgba(30, 25, 22, 0.82);
  --panel-strong: #1c1714;
  --gold: #ffd56a;
  --gold-strong: #ffb800;
  --red: #b31217;
  --red-deep: #6f070b;
  --text: #f6efe2;
  --muted: #c9bda9;
  --line: rgba(255, 213, 106, 0.22);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --glow: 0 0 24px rgba(255, 184, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
   user-select: none;
  margin: 0;
  min-height: 100vh;
  font-family: 'Cairo', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(179, 18, 23, 0.26), transparent 34rem),
    radial-gradient(circle at top right, rgba(255, 213, 106, 0.14), transparent 28rem),
    linear-gradient(135deg, #050505 0%, #15100f 46%, #070707 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 75%);
}

a {
  color: inherit;
}

button,
.btn,
.menu-icon,
.close-btn,
.side-menu span {
  -webkit-tap-highlight-color: transparent;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 3vw, 2.4rem);
  background: rgba(5, 5, 5, 0.82);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.header-left {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.9rem;
}

.menu-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--gold);
  font-size: 1.35rem;
  cursor: pointer;
  background: linear-gradient(145deg, rgba(255, 213, 106, 0.12), rgba(179, 18, 23, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.menu-icon:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 213, 106, 0.62);
  box-shadow: var(--glow);
}

.logo {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.65rem;
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

.logo img {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 14px rgba(255, 213, 106, 0.28));
}

.logo-text {
  display: inline-block;
  max-width: min(50vw, 360px);
  overflow: hidden;
  color: var(--gold);
  font-family: 'Amiri', serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(255, 184, 0, 0.35);
}

.nav-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.65rem;
  margin-left: auto;
}

.btn,
.nav-actions .btn,
.btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 800 0.92rem/1 'Cairo', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn-red:hover {
  transform: translateY(-2px);
}

.btn.signin {
  color: var(--gold);
  border-color: rgba(255, 213, 106, 0.58);
  background: rgba(255, 213, 106, 0.06);
}

.btn.signin:hover {
  color: #140d07;
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  box-shadow: var(--glow);
}

.btn.signup,
.btn-red {
  color: #fff8e7;
  border-color: rgba(255, 213, 106, 0.26);
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  box-shadow: 0 12px 28px rgba(179, 18, 23, 0.24);
}

.btn.signup:hover,
.btn-red:hover {
  color: #120909;
  background: linear-gradient(135deg, var(--gold), #ff8f3d);
  box-shadow: var(--glow);
}

/* Side Menu */
.side-menu {
  position: fixed;
  top: 0;
  left: -300px;
  z-index: 999;
  width: min(300px, 84vw);
  height: 100%;
  padding: 1rem 1rem 1.5rem;
  background:
    linear-gradient(180deg, rgba(26, 17, 14, 0.96), rgba(8, 8, 8, 0.98)),
    radial-gradient(circle at 20% 0%, rgba(255, 213, 106, 0.16), transparent 16rem);
  border-right: 1px solid var(--line);
  box-shadow: 22px 0 50px rgba(0, 0, 0, 0.52);
  transition: left 0.32s ease;
}

.side-menu.open {
  left: 0;
}


.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.close-btn:hover {
  color: #fff;
  transform: rotate(90deg);
  border-color: rgba(255, 213, 106, 0.7);
}

.side-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-menu ul li {
  margin-bottom: 0.45rem;
  padding: 0;
}

.side-menu ul li a,
.side-menu ul li span {
  display: block;
  padding: 0.85rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.side-menu ul li a:hover,
.side-menu ul li span:hover {
  color: #fff;
  transform: translateX(4px);
  border-color: var(--line);
  background: rgba(255, 213, 106, 0.08);
}

.dropdown-menu {
  display: none;
  margin: 0.35rem 0 0.6rem 0.75rem;
  padding-left: 0.8rem;
  border-left: 1px solid rgba(255, 213, 106, 0.22);
  list-style: none;
}

.dropdown-menu li a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.dropdown-menu li a:hover {
  color: var(--gold);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(1rem, 3vw, 2.2rem) 1rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(111, 7, 11, 0.54), rgba(255, 213, 106, 0.1), rgba(0, 0, 0, 0.2)),
    #100b0b;
}

.overlay {
  text-align: center;
}

.title {
  margin: 0;
  font-family: 'Amiri', serif;
  font-size: clamp(1.8rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(255, 184, 0, 0.55), 0 0 32px rgba(179, 18, 23, 0.45);
  animation: glow 2.8s ease-in-out infinite alternate;
}

.subtitle {
  margin: 0.45rem 0 0;
  color: #d7edf5;
  font-size: clamp(0.9rem, 2vw, 1.08rem);
  font-style: italic;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

@keyframes glow {
  from {
    text-shadow: 0 0 8px rgba(255, 213, 106, 0.48), 0 0 18px rgba(179, 18, 23, 0.32);
  }
  to {
    text-shadow: 0 0 18px rgba(255, 213, 106, 0.76), 0 0 38px rgba(179, 18, 23, 0.54);
  }
}

/* Dashboard */
.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1rem, 3vw, 1.6rem);
  width: min(1180px, calc(100% - 2rem));
  margin: clamp(1.2rem, 4vw, 3rem) auto;
}

.dash-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: clamp(1.15rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 213, 106, 0.08), transparent 38%),
    linear-gradient(180deg, var(--panel), rgba(12, 10, 9, 0.9));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.dash-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold), transparent);
}

.dash-card::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -45px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255, 213, 106, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.dash-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 213, 106, 0.5);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52), var(--glow);
}

.dash-card h2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  color: var(--gold);
  font-family: 'Amiri', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.1;
  text-align: left;
}

.restricted {
  margin: 0;
  padding: 1rem;
  border: 1px dashed rgba(255, 213, 106, 0.32);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
}

/* Progress Bar */
.progress {
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 213, 106, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar {
  padding: 0.5rem;
  color: #fff;
  text-align: center;
  font-weight: 800;
  background: linear-gradient(90deg, var(--red), var(--gold-strong));
}

/* Smooth looping scroll */
@keyframes scroll-up {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.scroll-vertical {
  position: relative;
  height: 7.2rem;
  overflow: hidden;
}

.scroll-vertical::before,
.scroll-vertical::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 1.4rem;
  pointer-events: none;
}

.scroll-vertical::before {
  top: 0;
  background: linear-gradient(to bottom, var(--panel-strong), transparent);
}

.scroll-vertical::after {
  bottom: 0;
  background: linear-gradient(to top, var(--panel-strong), transparent);
}

.scroll-vertical ul {
  margin: 0;
  padding: 0;
  list-style: none;
  animation: scroll-up 24s linear infinite;
}

.scroll-vertical:hover ul {
  animation-play-state: paused;
}

.scroll-vertical li {
  margin-bottom: 0.35rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #eadfca;
  font-size: 0.92rem;
  line-height: 1.35;
  cursor: text;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.scroll-vertical li:hover {
  color: var(--gold);
  border-color: rgba(255, 213, 106, 0.2);
  background: rgba(255, 213, 106, 0.08);
}

/* Announcements */
.announcements-card .alert {
  margin: 0.55rem 0;
  padding: 0.85rem;
  border: 1px solid rgba(255, 213, 106, 0.18);
  border-radius: 8px;
  color: #fff;
  text-align: center;
  font-weight: 800;
  background: linear-gradient(135deg, var(--red), #3a0507);
}

/* Gallery */
.gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.8rem;
  scroll-behavior: smooth;
  scrollbar-color: var(--gold) rgba(255, 255, 255, 0.08);
}

.thumb {
  flex: 0 0 auto;
  width: 150px;
  height: 96px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
}

.gallery img,
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery img:hover,
.thumb img:hover {
  transform: scale(1.08);
  filter: saturate(1.18) contrast(1.05);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  border: 1px solid rgba(255, 213, 106, 0.34);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.72), var(--glow);
}

.close,
.prev,
.next {
  color: var(--gold);
  cursor: pointer;
  user-select: none;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
  transition: color 0.2s ease, transform 0.2s ease;
}

.close {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  font-size: 2.4rem;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  font-size: clamp(2.4rem, 8vw, 4rem);
  transform: translateY(-50%);
}

.prev {
  left: 1.2rem;
}

.next {
  right: 1.2rem;
}

.close:hover,
.prev:hover,
.next:hover {
  color: #fff;
}

.prev:hover {
  transform: translate(-4px, -50%);
}

.next:hover {
  transform: translate(4px, -50%);
}

/* Auth Pages */
.auth-page {
  width: min(420px, calc(100% - 2rem));
  margin: 3rem auto;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-page h1 {
  margin-top: 0;
  color: var(--gold);
  font-family: 'Amiri', serif;
}

.auth-page label {
  display: block;
  margin: 1rem 0 0.4rem;
  color: var(--gold);
  font-weight: 800;
}

.auth-page input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255, 213, 106, 0.22);
  border-radius: 8px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.36);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-page input:focus {
  border-color: rgba(255, 213, 106, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 213, 106, 0.12);
}

.auth-page .btn-red {
  width: 100%;
  margin-top: 1.5rem;
}

.auth-page p {
  margin-top: 1rem;
  color: var(--muted);
  text-align: center;
}

.auth-page a {
  color: var(--gold);
  font-weight: 800;
}

/* Footer */
footer,
#contact {
  margin-top: 2rem;
  padding: 1.2rem clamp(1rem, 3vw, 2.4rem);
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(16, 6, 7, 0.98)),
    radial-gradient(circle at 50% 0%, rgba(255, 213, 106, 0.14), transparent 24rem);
  border-top: 1px solid var(--line);
}

.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  width: min(1180px, 100%);
  margin: 0 auto;
}

#contact h2 {
  margin: 0 0 0.45rem;
  color: var(--gold);
  font-family: 'Amiri', serif;
  font-size: 1.2rem;
}

.contact-info {
  text-align: left;
}

.contact-info p {
  margin: 0.25rem 0;
}

.social {
  text-align: right;
}

.social a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: 0.45rem;
  border: 1px solid rgba(255, 213, 106, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.social a:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 213, 106, 0.55);
  background: rgba(255, 213, 106, 0.1);
}

.social a .fa-facebook-f {
  color: #1877f2;
}

.social a .fa-twitter {
  color: #1da1f2;
}

.social a .fa-instagram {
  color: #e4405f;
}

.social a .fa-youtube {
  color: #ff2f2f;
}

#contact .copyright {
  width: min(1180px, 100%);
  margin: 1rem auto 0;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 213, 106, 0.12);
  color: #8e8373;
  font-size: 0.78rem;
  text-align: center;
}

@media (max-width: 720px) {
  header {
    padding: 0.65rem 0.85rem;
  }

  img {
  -webkit-user-drag: none;
  pointer-events: none;
}
  .logo img {
    width: 40px;
    height: 40px;
  }

  .logo-text {
    max-width: 38vw;
  }

  .nav-actions {
    gap: 0.4rem;
  }

  .nav-actions .btn {
    min-height: 36px;
    padding: 0.5rem 0.7rem;
    font-size: 0.82rem;
  }

  .dashboard {
    width: min(100% - 1rem, 1180px);
    margin-top: 1rem;
  }

  .contact-container {
    flex-direction: column;
  }

  .social {
    text-align: left;
  }

  .social a {
    margin: 0 0.45rem 0.45rem 0;
  }
}

@media (max-width: 440px) {
  .logo-text {
    max-width: 30vw;
  }

  .menu-icon {
    width: 38px;
    height: 38px;
  }

  .nav-actions .btn {
    padding-inline: 0.55rem;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 950;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 213, 106, 0.5);
  border-radius: 50%;
  color: #120909;
  background: linear-gradient(135deg, #ffd56a, #ff8f3d);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 22px rgba(255, 184, 0, 0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.94);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 184, 0, 0.42);
}

.back-to-top i {
  font-size: 1.05rem;
}

@media (max-width: 520px) {
  .back-to-top {
    right: 0.9rem;
    bottom: 0.9rem;
    width: 42px;
    height: 42px;
  }
}

/* Menu click blur, glow, and stylish open animation */
.menu-icon {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.menu-icon::before {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: -1;
  background: conic-gradient(
    from 180deg,
    transparent,
    rgba(255, 213, 106, 0.65),
    rgba(179, 18, 23, 0.25),
    transparent 42%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.menu-icon:hover::before,
.menu-icon.active::before {
  opacity: 1;
  animation: menu-shine 1.8s linear infinite;
}

.menu-icon.active {
  color: #150b05;
  background: linear-gradient(135deg, #ffd56a, #ff9f3d);
  border-color: rgba(255, 213, 106, 0.95);
  box-shadow:
    0 0 0 4px rgba(255, 213, 106, 0.12),
    0 0 28px rgba(255, 184, 0, 0.5);
}

@keyframes menu-shine {
  to {
    transform: rotate(360deg);
  }
}

#overlay {
  display: block;
  opacity: 0;
  visibility: hidden;
  position: fixed;
  inset: 0;
  z-index: 850;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#overlay.show {
  opacity: 1;
  visibility: visible;
}

.side-menu.open ul li {
  animation: menu-item-in 0.36s ease both;
}

.side-menu.open ul li:nth-child(1) { animation-delay: 0.05s; }
.side-menu.open ul li:nth-child(2) { animation-delay: 0.1s; }
.side-menu.open ul li:nth-child(3) { animation-delay: 0.15s; }
.side-menu.open ul li:nth-child(4) { animation-delay: 0.2s; }

.gallery-page {
  width: min(1100px, calc(100% - 2rem));
  min-height: 72vh;
  margin: 2rem auto;
}

.gallery-hero {
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 213, 106, 0.24);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(179, 18, 23, 0.35), rgba(255, 213, 106, 0.08)),
    #120d0b;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
}

.gallery-hero h1 {
  margin: 0;
  color: #ffd56a;
  font-family: 'Amiri', serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.gallery-hero p {
  max-width: 620px;
  margin: 0.4rem 0 0;
  color: #c9bda9;
  font-size: 1rem;
}

.gallery-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-option {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 130px;
  padding: 1.2rem;
  border: 1px solid rgba(255, 213, 106, 0.22);
  border-radius: 10px;
  color: #f6efe2;
  background:
    linear-gradient(145deg, rgba(255, 213, 106, 0.08), transparent 45%),
    #15100f;
  text-decoration: none;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.38);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.gallery-option::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #b31217, #ffd56a, transparent);
}

.gallery-option::after {
  content: "›";
  position: absolute;
  right: 1rem;
  bottom: 0.8rem;
  color: #ffd56a;
  font-size: 2rem;
}

.gallery-option:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 213, 106, 0.6);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 184, 0, 0.25);
}

.gallery-option i {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 10px;
  color: #140d07;
  background: linear-gradient(135deg, #ffd56a, #ff9f3d);
  box-shadow: 0 0 22px rgba(255, 184, 0, 0.35);
  font-size: 1.45rem;
}

.gallery-option span {
  display: grid;
  gap: 0.25rem;
  padding-right: 1.2rem;
}

.gallery-option strong {
  color: #ffd56a;
  font-family: 'Amiri', serif;
  font-size: 1.35rem;
  line-height: 1.05;
}

.gallery-option small {
  color: #c9bda9;
  font-size: 0.9rem;
  line-height: 1.35;
}

@media (max-width: 560px) {
  .gallery-page {
    width: min(100% - 1rem, 1100px);
    margin-top: 1rem;
  }

  .gallery-hero {
    padding: 1.25rem;
  }

  .gallery-option {
    min-height: 112px;
    padding: 1rem;
  }

  .gallery-option i {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }
}

@keyframes menu-item-in {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.schedule-popup {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.68);
}

.schedule-popup.show {
  display: flex;
}

.schedule-box {
  position: relative;
  width: min(620px, 100%);
  max-height: 82vh;
  padding: 1.4rem;
  overflow-y: auto;
  border: 1px solid rgba(255, 213, 106, 0.45);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 213, 106, 0.08), transparent 35%),
    #120d0b;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75), 0 0 28px rgba(255, 184, 0, 0.25);
}

.schedule-box h2 {
  margin: 0 2.5rem 1rem 0;
  color: #ffd56a;
  font-family: 'Amiri', serif;
  font-size: 1.6rem;
}

.schedule-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 213, 106, 0.45);
  border-radius: 50%;
  color: #ffd56a;
  background: rgba(0, 0, 0, 0.35);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.schedule-close:hover {
  color: #111;
  background: #ffd56a;
}

.schedule-list {
  display: grid;
  gap: 0.8rem;
}

.schedule-item {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 213, 106, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.schedule-item h3 {
  margin: 0 0 0.35rem;
  color: #ffd56a;
  font-size: 1rem;
}

.schedule-item p {
  margin: 0.2rem 0;
  color: #c9bda9;
  font-size: 0.92rem;
}

.dash-card h2 i {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 8px;
  color: #170d06;
  background: linear-gradient(135deg, #ffd56a, #ff9f3d);
  box-shadow: 0 0 18px rgba(255, 184, 0, 0.35);
  font-size: 1rem;
}

.dash-card h2 {
  align-items: flex-start;
}

.dash-card h2 i + span {
  line-height: 1.15;
}

.dash-card::before {
  height: 2px;
  background: linear-gradient(90deg, #b31217, #ffd56a 45%, transparent);
}

.side-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 3.2rem 1rem 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 213, 106, 0.2);
}

.side-logo img {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
  background: #080605;
  border: 1px solid rgba(255, 213, 106, 0.35);
  box-shadow: 0 0 18px rgba(255, 213, 106, 0.25);
}

.side-logo strong {
  display: block;
  color: #ffd56a;
  font-family: 'Amiri', serif;
  font-size: 1.25rem;
  line-height: 1;
}

.side-logo small {
  display: block;
  margin-top: 0.2rem;
  color: #c9bda9;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.theme-panel {
  margin-top: 1.2rem;
  padding: 1rem 0.75rem 0;
  border-top: 1px solid rgba(255, 213, 106, 0.18);
}

.theme-panel p {
  margin: 0 0 0.75rem;
  color: #c9bda9;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.theme-options {
  display: grid;
  gap: 0.55rem;
}

.theme-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(255, 213, 106, 0.18);
  border-radius: 8px;
  color: #f6efe2;
  background: rgba(255, 255, 255, 0.04);
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.theme-btn:hover,
.theme-btn.active {
  transform: translateX(4px);
  border-color: rgba(255, 213, 106, 0.55);
  background: rgba(255, 213, 106, 0.1);
  color: #ffd56a;
}

.theme-dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.azadari-dot {
  background: linear-gradient(135deg, #b31217, #ffd56a);
}

.green-dot {
  background: linear-gradient(135deg, #075f3b, #d8c16a);
}

.royal-dot {
  background: linear-gradient(135deg, #22144d, #d8a24a);
}

/* Theme color changes */
body.theme-azadari {
  --bg: #080808;
  --bg-soft: #12100f;
  --panel: rgba(30, 25, 22, 0.82);
  --panel-strong: #1c1714;
  --gold: #ffd56a;
  --gold-strong: #ffb800;
  --red: #b31217;
  --red-deep: #6f070b;
  --text: #f6efe2;
  --muted: #c9bda9;
  --line: rgba(255, 213, 106, 0.22);
}

body.theme-green {
  --bg: #04120c;
  --bg-soft: #081c13;
  --panel: rgba(9, 34, 24, 0.84);
  --panel-strong: #07180f;
  --gold: #d8c16a;
  --gold-strong: #f0d978;
  --red: #087047;
  --red-deep: #043d27;
  --text: #f3f7ef;
  --muted: #bed3c4;
  --line: rgba(216, 193, 106, 0.25);
}

body.theme-royal {
  --bg: #080612;
  --bg-soft: #100b24;
  --panel: rgba(24, 17, 48, 0.86);
  --panel-strong: #120b28;
  --gold: #d8a24a;
  --gold-strong: #ffd27a;
  --red: #5930b8;
  --red-deep: #24104f;
  --text: #f7f0ff;
  --muted: #cfc3e6;
  --line: rgba(216, 162, 74, 0.28);
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 34px;
  padding: 0.35rem 0.55rem;
  border: none;
  border-radius: 7px;
  color: #ffd56a;
  background: transparent;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
  transition: transform 0.2s ease, color 0.2s ease;
}

.home-link i {
  color: #ffd56a;
  background: transparent;
  width: auto;
  height: auto;
  display: inline-block;
  border-radius: 0;
  font-size: 0.9rem;
  box-shadow: none;
}

.home-link:hover {
  transform: translateY(-1px);
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.collection-filter-box {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.4rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 213, 106, 0.24);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 213, 106, 0.06), transparent 45%),
    #15100f;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
}

.filter-field label {
  display: block;
  margin-bottom: 0.45rem;
  color: #ffd56a;
  font-weight: 800;
}

.filter-field input,
.filter-field select {
  width: 100%;
  min-height: 44px;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(255, 213, 106, 0.24);
  border-radius: 8px;
  color: #f6efe2;
  background: rgba(0, 0, 0, 0.35);
  font-family: 'Cairo', sans-serif;
  outline: none;
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: rgba(255, 213, 106, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 213, 106, 0.12);
}

.clear-filter-btn {
  min-height: 44px;
  padding: 0.72rem 1rem;
  border: none;
  border-radius: 8px;
  color: #150b05;
  background: linear-gradient(135deg, #ffd56a, #ff9f3d);
  font-weight: 800;
  cursor: pointer;
}

.collection-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 213, 106, 0.22);
  border-radius: 10px;
  background: #120d0b;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
}

.collection-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.collection-table th,
.collection-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 213, 106, 0.12);
}

.collection-table th {
  color: #ffd56a;
  background: rgba(255, 213, 106, 0.08);
  font-weight: 800;
}

.collection-table td {
  color: #f6efe2;
}

.collection-table tr:hover td {
  background: rgba(255, 213, 106, 0.055);
}

.no-record-row td {
  color: #c9bda9;
  text-align: center;
}

.admin-action-box {
  margin-top: 1.2rem;
  text-align: right;
}

.admin-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #b31217, #6f070b);
  text-decoration: none;
  font-weight: 800;
}

@media (max-width: 720px) {
  .collection-filter-box {
    grid-template-columns: 1fr;
  }

  .admin-action-box {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
