/* =====================================================
 * Ziarat Niyabati — Custom Styles
 * Redesigned with logo palette (green #1e6b3c / gold #c8913a)
 * ===================================================== */

:root {
  /* Primary greens extracted from logo */
  --primary:       #1e6b3c;
  --primary-dark:  #174f2d;
  --primary-light: #2d8c52;
  --primary-pale:  #e8f5ee;

  /* Gold accent from logo & reference design */
  --accent:        #c8913a;
  --accent-dark:   #a97028;
  --accent-light:  #e3b872;
  --accent-pale:   #fdf4e7;

  /* Neutrals */
  --bg-page:    #f5f7f5;
  --bg-cream:   #fdfaf4;
  --text-dark:  #1a2e1f;
  --text-body:  #3d4f42;
  --text-muted: #7a907e;
  --border:     #d8e8dc;

  --shadow:    0 4px 16px rgba(30,107,60,0.08);
  --shadow-lg: 0 12px 36px rgba(30,107,60,0.15);
  --radius:    14px;
}

/* -------- Base ---------------------------------------- */
html, body {
  font-family: 'Vazirmatn', 'Cairo', 'Tahoma', 'Segoe UI', sans-serif;
  background: var(--bg-page);
  color: var(--text-body);
  line-height: 1.75;
  scroll-behavior: smooth;
}
body[dir="ltr"] { font-family: 'Inter', 'Segoe UI', sans-serif; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent-dark); }

/* -------- Navbar -------------------------------------- */
/* ── Navbar — glassmorphism with gold accent ─────────────────── */
/* Flash messages that appear on hero pages float below navbar */
.flash-overlay {
  position: relative;
  z-index: 200;
  padding-top: 1rem;
}

/* Non-hero pages: push content below the fixed navbar */
main.has-fixed-nav {
  padding-top: 72px;
}
.navbar-custom {
  /* very subtle green-tinted glass */
  background: linear-gradient(
    135deg,
    rgba(10, 45, 22, 0.42) 0%,
    rgba(20, 75, 38, 0.38) 100%
  );
  backdrop-filter: blur(20px) saturate(1.8) brightness(1.05);
  -webkit-backdrop-filter: blur(20px) saturate(1.8) brightness(1.05);
  /* gold hairline at bottom */
  border-bottom: 1.5px solid rgba(200, 145, 58, 0.35);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 0.65rem 0;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

/* Once scrolled: deepen slightly so content behind doesn't bleed through */
.navbar-custom.scrolled {
  background: linear-gradient(
    135deg,
    rgba(10, 45, 22, 0.72) 0%,
    rgba(20, 75, 38, 0.68) 100%
  );
  backdrop-filter: blur(28px) saturate(2) brightness(1.05);
  -webkit-backdrop-filter: blur(28px) saturate(2) brightness(1.05);
  border-bottom-color: rgba(200, 145, 58, 0.5);
  box-shadow:
    0 6px 36px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

/* Brand & links */
.navbar-custom .navbar-brand,
.navbar-custom .nav-link { color: #fff !important; font-weight: 500; }

.navbar-custom .navbar-brand {
  font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; gap: 0.55rem;
  /* gentle glow on brand text */
  text-shadow: 0 0 20px rgba(200,145,58,0.4);
}

.navbar-custom .navbar-brand img.brand-logo {
  height: 40px; width: auto; object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.3)) brightness(1.05);
}

/* Desktop nav items */
@media (min-width: 992px) {
  .navbar-custom .nav-item { margin-inline: 0.2rem; }
  .navbar-custom .nav-link {
    padding-inline: 1rem !important;
    padding-block: 0.45rem !important;
    letter-spacing: 0.01em;
    border-radius: 8px;
    position: relative;
    transition: background 0.22s ease, color 0.22s ease;
    overflow: hidden;
  }
  /* shimmer sweep on hover */
  .navbar-custom .nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      110deg,
      transparent 30%,
      rgba(255,255,255,0.18) 50%,
      transparent 70%
    );
    transform: translateX(-120%);
    transition: transform 0.45s ease;
    border-radius: inherit;
  }
  .navbar-custom .nav-link:hover::before { transform: translateX(120%); }

  /* hover: subtle white tint */
  .navbar-custom .nav-link:hover {
    background: rgba(255, 255, 255, 0.13);
    color: #fff !important;
  }
  /* active: gold underline dot */
  .navbar-custom .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%; transform: translateX(-50%);
    width: 20px; height: 2.5px;
    background: var(--accent-light);
    border-radius: 2px;
  }
}

/* Hamburger toggler */
.navbar-custom .navbar-toggler {
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
  transition: background 0.2s;
}
.navbar-custom .navbar-toggler:hover { background: rgba(255,255,255,0.1); }
/* Pure white 3-line icon */
.navbar-custom .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile: collapsed glass panel */
@media (max-width: 991.98px) {
  .navbar-custom .navbar-collapse {
    background: rgba(12, 48, 24, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 14px;
    margin-top: 0.6rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(200,145,58,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  }
  .navbar-custom .nav-link { padding-block: 0.6rem !important; }
}

/* Hover */
.navbar-custom .nav-link:hover { color: var(--accent-light) !important; }

/* Dropdown */
.navbar-custom .dropdown-menu {
  background: rgba(12, 48, 24, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(200,145,58,0.22);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}
.navbar-custom .dropdown-item {
  color: rgba(255,255,255,0.88);
  border-radius: 8px;
  transition: background 0.18s;
}
.navbar-custom .dropdown-item:hover {
  background: rgba(200,145,58,0.18);
  color: var(--accent-light);
}

/* ============================================================
   HERO — new design matching reference image
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  background: linear-gradient(160deg, #f0f8f3 0%, #e8f5ee 40%, #f7f2eb 100%);
  display: flex;
  align-items: center;
}

/* Shrine background image — right side fade-in */
.hero-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.88;
  animation: kenBurns 28s ease-in-out infinite alternate;
}
/* Right: show image clearly. Left: fade to white for text readability — desktop only */
@media (min-width: 992px) {
  .hero-bg-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to left,
      rgba(240,248,243,0)    0%,
      rgba(240,248,243,0.15) 30%,
      rgba(240,248,243,0.78) 58%,
      rgba(240,248,243,1)    75%
    );
  }
}
@keyframes kenBurns {
  from { transform: scale(1.0) translate(0, 0); }
  to   { transform: scale(1.07) translate(-1.5%, -1%); }
}

/* Floating gold particles */
.hero-particles {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
}
.hero-particles span {
  position: absolute; bottom: -40px; display: block;
  width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,145,58,0.9) 0%, rgba(200,145,58,0.3) 70%, transparent 100%);
  box-shadow: 0 0 10px rgba(200,145,58,0.45);
  animation: floatUp 16s linear infinite; opacity: 0;
}
.hero-particles span:nth-child(1)  { left: 4%;  width:6px;  height:6px;  animation-duration:14s; animation-delay:0s;   }
.hero-particles span:nth-child(2)  { left: 8%;  width:9px;  height:9px;  animation-duration:19s; animation-delay:2.5s; }
.hero-particles span:nth-child(3)  { left:14%;  width:5px;  height:5px;  animation-duration:12s; animation-delay:5s;   }
.hero-particles span:nth-child(4)  { left:20%;  width:8px;  height:8px;  animation-duration:17s; animation-delay:1s;   }
.hero-particles span:nth-child(5)  { left:26%;  width:11px; height:11px; animation-duration:22s; animation-delay:7s;   }
.hero-particles span:nth-child(6)  { left:32%;  width:6px;  height:6px;  animation-duration:15s; animation-delay:3s;   }
.hero-particles span:nth-child(7)  { left:40%;  width:5px;  height:5px;  animation-duration:13s; animation-delay:8s;   }
.hero-particles span:nth-child(8)  { left:48%;  width:9px;  height:9px;  animation-duration:18s; animation-delay:0.5s; }
.hero-particles span:nth-child(9)  { left:55%;  width:7px;  height:7px;  animation-duration:21s; animation-delay:6s;   }
.hero-particles span:nth-child(10) { left:62%;  width:5px;  height:5px;  animation-duration:14s; animation-delay:3s;   }
.hero-particles span:nth-child(11) { left:70%;  width:8px;  height:8px;  animation-duration:16s; animation-delay:9s;   }
.hero-particles span:nth-child(12) { left:77%;  width:6px;  height:6px;  animation-duration:13s; animation-delay:4.5s; }
.hero-particles span:nth-child(13) { left:84%;  width:10px; height:10px; animation-duration:20s; animation-delay:1.5s; }
.hero-particles span:nth-child(14) { left:91%;  width:7px;  height:7px;  animation-duration:15s; animation-delay:7s;   }
.hero-particles span:nth-child(15) { left:10%;  width:4px;  height:4px;  animation-duration:11s; animation-delay:10s;  }
.hero-particles span:nth-child(16) { left:22%;  width:9px;  height:9px;  animation-duration:18s; animation-delay:11s;  }
.hero-particles span:nth-child(17) { left:50%;  width:5px;  height:5px;  animation-duration:13s; animation-delay:5.5s; }
.hero-particles span:nth-child(18) { left:73%;  width:11px; height:11px; animation-duration:24s; animation-delay:8.5s; }
.hero-particles span:nth-child(19) { left:88%;  width:6px;  height:6px;  animation-duration:15s; animation-delay:12s;  }
.hero-particles span:nth-child(20) { left:35%;  width:8px;  height:8px;  animation-duration:17s; animation-delay:4s;   }

@keyframes floatUp {
  0%   { transform: translate(0, 0)          scale(0.5); opacity: 0;   }
  10%  { opacity: 0.8; }
  50%  { transform: translate(18px, -55vh)   scale(1);   opacity: 0.9; }
  90%  { opacity: 0.6; }
  100% { transform: translate(-12px, -105vh) scale(0.3); opacity: 0;   }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-img img, .hero-particles span { animation: none !important; }
}

/* Hero layout */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 5.5rem 0 3rem; /* 5.5rem top = ~72px navbar + breathing room */
}

/* Left content column — no background box, text uses stroke for legibility */
.hero-left {
  text-align: right;
  direction: rtl;
}
body[dir="ltr"] .hero-left { text-align: left; direction: ltr; }

/* ── Hero text with stroke ──────────────────────────────────────── */
/* Title: dark green fill + thick white stroke → readable on bright photo */
.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--primary-dark);
  -webkit-text-stroke: 3px #fff;
  paint-order: stroke fill;
  filter: drop-shadow(0 2px 8px rgba(255,255,255,0.6))
          drop-shadow(0 4px 20px rgba(10,40,20,0.25));
  line-height: 1.2;
  margin-bottom: 0.4rem;
  letter-spacing: -0.5px;
}

/* Subtitle: gold fill + white stroke */
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--accent-dark);
  -webkit-text-stroke: 2px #fff;
  paint-order: stroke fill;
  filter: drop-shadow(0 1px 6px rgba(255,255,255,0.7));
  margin-bottom: 1rem;
}

/* Description: dark text with white halo for max contrast */
.hero-desc {
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  color: var(--primary-dark);
  font-weight: 600;
  line-height: 1.9;
  margin-bottom: 2rem;
  max-width: 520px;
  /* multi-layer white halo so text lifts off any background */
  text-shadow:
    0 0  6px #fff,
    0 0 12px #fff,
    1px  1px 0 #fff,
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px  1px 0 #fff,
    0 2px 10px rgba(255,255,255,0.9);
}
body[dir="rtl"] .hero-desc { margin-right: 0; }
body[dir="ltr"] .hero-desc { margin-left: 0; }

/* CTA cards (the two action boxes in reference) */
.hero-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-cta-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.6rem 1.2rem 1.2rem;
  box-shadow: 0 6px 24px rgba(30,107,60,0.1);
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}
.hero-cta-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(30,107,60,0.16);
}
.hero-cta-card.naib-card { background: var(--accent-pale); border-color: var(--accent-light); }

.hero-cta-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}
.hero-cta-card:not(.naib-card) .hero-cta-icon {
  background: var(--primary-pale);
  color: var(--primary);
}
.hero-cta-card.naib-card .hero-cta-icon {
  background: rgba(200,145,58,0.15);
  color: var(--accent-dark);
}

.hero-cta-card h4 {
  font-size: 1.05rem; font-weight: 700;
  color: var(--primary-dark); margin: 0 0 0.2rem;
}
.hero-cta-card.naib-card h4 { color: var(--accent-dark); }

.hero-cta-card p {
  font-size: 0.82rem; color: var(--text-muted);
  margin: 0 0 0.8rem; line-height: 1.5;
}

.btn-hero-pilgrim {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--primary);
  color: #fff;
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem; font-weight: 600;
  transition: background 0.2s, transform 0.2s;
  border: none; cursor: pointer;
}
.btn-hero-pilgrim:hover { background: var(--primary-dark); color: #fff; transform: scale(1.03); }

.btn-hero-naib {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem; font-weight: 600;
  transition: background 0.2s, transform 0.2s;
  border: none; cursor: pointer;
}
.btn-hero-naib:hover { background: var(--accent-dark); color: #fff; transform: scale(1.03); }

/* After-pilgrimage mini flow */
.hero-flow {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  background: rgba(255,255,255,0.72);
  border-radius: 14px;
  padding: 0.9rem 1rem 0.7rem;
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
}
.hero-flow-title {
  width: 100%;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-flow-title::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: var(--primary);
  opacity: 0.25;
}
.hero-flow-step {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  font-size: 0.78rem; color: var(--primary-dark); text-align: center;
  flex: 1; min-width: 70px;
  font-weight: 600;
}
.hero-flow-step .fsi {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary-pale); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(30,107,60,0.15);
}
.hero-flow-arrow {
  font-size: 1rem; color: var(--primary-light);
  flex-shrink: 0; padding: 0 0.2rem;
  opacity: 0.7;
}
body[dir="rtl"] .hero-flow-arrow { transform: scaleX(-1); }

/* Right: phone mockup column */
.hero-right {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.phone-mockup-wrap {
  position: relative;
  width: 260px;
  animation: floatPhone 5s ease-in-out infinite alternate;
}
@keyframes floatPhone {
  from { transform: translateY(0); }
  to   { transform: translateY(-14px); }
}

.phone-frame {
  width: 100%;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.08);
  position: relative;
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 6px;
  background: #2a2a2a; border-radius: 10px;
}
.phone-screen {
  background: #f8faf8;
  border-radius: 26px;
  overflow: hidden;
  padding: 1.5rem 0.8rem 0.8rem;
  min-height: 430px;
}

.phone-header {
  font-size: 0.72rem; font-weight: 700; color: var(--primary);
  display: flex; align-items: center; gap: 0.3rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.7rem;
}
.phone-section-label {
  font-size: 0.68rem; color: var(--text-muted);
  margin-bottom: 0.4rem; font-weight: 500;
}
.phone-video-thumb {
  border-radius: 10px; overflow: hidden;
  height: 90px; background: #1a1a1a;
  position: relative; margin-bottom: 0.4rem;
}
.phone-video-thumb img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.8;
}
.phone-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.phone-play span {
  width: 30px; height: 30px; background: rgba(255,255,255,0.9);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 0.8rem;
}
.phone-video-caption {
  font-size: 0.65rem; color: var(--text-muted); margin-bottom: 0.8rem;
}
.phone-divider {
  height: 1px; background: var(--border); margin: 0.5rem 0;
}
.phone-msg-label {
  font-size: 0.68rem; color: var(--text-muted); margin-bottom: 0.35rem; font-weight: 500;
}
.phone-msg-body {
  font-size: 0.67rem; color: var(--text-dark); line-height: 1.6;
  background: #fff; border-radius: 8px; padding: 0.5rem 0.6rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.phone-like {
  text-align: left; font-size: 0.8rem; color: #e74c6a;
  margin-top: 0.5rem; padding-bottom: 0.5rem;
}
body[dir="rtl"] .phone-like { text-align: right; }

/* Polaroid sticker */
.polaroid-wrap {
  position: absolute;
  bottom: -30px;
  left: -60px;
  width: 130px;
  animation: polaroidFloat 7s ease-in-out infinite alternate;
  z-index: 3;
}
body[dir="ltr"] .polaroid-wrap { left: auto; right: -50px; }
@keyframes polaroidFloat {
  from { transform: rotate(-6deg) translateY(0); }
  to   { transform: rotate(-3deg) translateY(-10px); }
}
.polaroid {
  background: #fff;
  border-radius: 4px;
  padding: 8px 8px 30px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.polaroid img { width: 100%; border-radius: 2px; }
.polaroid-note {
  position: absolute;
  bottom: -28px; right: -20px;
  background: #fef9e1;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.68rem;
  color: var(--text-body);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  white-space: nowrap;
  font-weight: 600;
  line-height: 1.5;
  z-index: 4;
}
.polaroid-note::after {
  content: '♡';
  display: block;
  color: #e74c6a;
  font-size: 0.9rem;
  text-align: center;
}

/* Mobile hero adjustments */
@media (max-width: 991.98px) {
  .hero { min-height: auto; }
  /* 4.5rem top = ~72px fixed navbar + comfortable breathing room */
  .hero-inner { padding: 4.5rem 0 2rem; }
  .hero-left { text-align: center; direction: rtl; }
  body[dir="ltr"] .hero-left { text-align: center; direction: ltr; }
  .hero-desc { max-width: 100%; margin: 0 auto 1.5rem; }
  .hero-right { margin-top: 2.5rem; }
  .phone-mockup-wrap { width: 220px; }
  .polaroid-wrap { display: none; }
  .hero-bg-img::after { display: none; }
  .hero-cta-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
}
@media (max-width: 479.98px) {
  .hero-title { font-size: 2rem; }
  .hero-cta-grid { grid-template-columns: 1fr; }
  .hero-flow { display: none; }
  .phone-mockup-wrap { width: 190px; }
}

/* -------- Islamic Pattern Backgrounds ----------------- */
.islamic-bg {
  position: relative;
  background-color: var(--bg-cream);
  overflow: hidden;
}
.islamic-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><g fill='none' stroke='%231e6b3c' stroke-opacity='0.05' stroke-width='1'><path d='M60 0 L120 60 L60 120 L0 60 Z'/><path d='M60 20 L100 60 L60 100 L20 60 Z'/><circle cx='60' cy='60' r='25'/><circle cx='60' cy='60' r='12'/></g></svg>");
  background-size: 120px 120px; opacity: 0.7; pointer-events: none; z-index: 0;
}
.islamic-bg > * { position: relative; z-index: 1; }

/* -------- Buttons ------------------------------------- */
.btn-shrine {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; border: none; font-weight: 600;
  padding: 0.65rem 1.6rem; border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(30,107,60,0.25);
}
.btn-shrine:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; transform: translateY(-2px); }

.btn-primary-custom {
  background: var(--accent);
  color: #fff; border: 2px solid var(--accent); font-weight: 600;
  padding: 0.75rem 1.8rem; border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(200,145,58,0.3);
}
.btn-primary-custom:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-2px); }

.btn-outline-custom {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary); font-weight: 600;
  padding: 0.75rem 1.8rem; border-radius: 50px;
  transition: all 0.3s ease;
}
.btn-outline-custom:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* -------- Sections ------------------------------------ */
.section { padding: 5rem 0; position: relative; }
.section-title {
  text-align: center; font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700; color: var(--primary-dark);
  margin-bottom: 1rem; position: relative; display: inline-block;
}
.section-title-wrap { text-align: center; margin-bottom: 3rem; }
.section-title::after {
  content: ""; display: block; width: 70px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0.7rem auto 0;
}

/* -------- Steps cards --------------------------------- */
.step-card {
  background: #fff; border-radius: var(--radius); padding: 2rem 1.5rem;
  text-align: center; height: 100%; border: 1.5px solid var(--border);
  transition: all 0.3s ease;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.step-number {
  width: 56px; height: 56px; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--accent-light); font-size: 1.5rem; font-weight: 700;
  border-radius: 50%; position: relative;
}
.step-number::before {
  content: ""; position: absolute; inset: -6px;
  border: 2px dashed var(--accent); border-radius: 50%; opacity: 0.5;
  animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.step-card h4 { color: var(--primary-dark); font-weight: 600; }
.step-card p { color: var(--text-muted); font-size: 0.93rem; margin: 0; }

/* -------- Feature cards ------------------------------- */
.feature-card {
  background: #fff; border-radius: var(--radius); padding: 1.8rem;
  height: 100%; border: 1.5px solid var(--border);
  display: flex; gap: 1rem; align-items: flex-start;
  transition: all 0.3s ease;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--accent-light);
}
.feature-card h5 { color: var(--primary-dark); margin-bottom: 0.4rem; font-weight: 600; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* -------- Forms --------------------------------------- */
.form-card {
  background: #fff; border-radius: var(--radius); padding: 2.5rem;
  box-shadow: var(--shadow); border-top: 4px solid var(--primary);
}
.form-label { font-weight: 500; color: var(--text-dark); }
.form-label .required-mark { color: #d32f2f; }
.form-control, .form-select {
  border: 1.5px solid var(--border); border-radius: 8px; padding: 0.65rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.18rem rgba(30,107,60,0.15);
}

/* -------- Tables -------------------------------------- */
.table-shrine { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table-shrine thead { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.table-shrine thead th { font-weight: 500; padding: 1rem 0.75rem; border: none; }
.table-shrine tbody tr { transition: background 0.2s; }
.table-shrine tbody tr:hover { background: var(--primary-pale); }
.table-shrine td { vertical-align: middle; padding: 0.85rem 0.75rem; }

/* -------- Tracking ------------------------------------ */
.tracking-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.tracking-code-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; padding: 1.2rem 2rem; border-radius: var(--radius);
  font-size: 1.5rem; font-weight: 700; letter-spacing: 2px;
  text-align: center; font-family: 'Courier New', monospace; box-shadow: var(--shadow);
}
.timeline { position: relative; padding: 1.5rem 0; }
.timeline-item { display: flex; gap: 1rem; align-items: center; padding: 0.8rem 0; }
.timeline-dot {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%; background: var(--border);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.timeline-dot.active   { background: var(--primary); }
.timeline-dot.completed { background: #28a745; }

/* -------- Sidebar ------------------------------------- */
.sidebar {
  background: #fff; border-radius: var(--radius);
  padding: 1.2rem 0; box-shadow: var(--shadow);
  position: sticky; top: 90px;
}
.sidebar a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.75rem 1.4rem; color: var(--text-dark);
  border-inline-start: 3px solid transparent; transition: all 0.2s;
}
.sidebar a:hover, .sidebar a.active {
  background: var(--primary-pale); color: var(--primary);
  border-inline-start-color: var(--accent);
}

/* -------- Dashboard cards ----------------------------- */
.dashboard-card {
  background: #fff; border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); border-inline-start: 4px solid var(--primary);
}
.stat-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; border-radius: var(--radius); padding: 1.5rem; text-align: center;
}
.stat-card .stat-value { font-size: 2rem; font-weight: 700; color: var(--accent-light); }
.stat-card .stat-label { font-size: 0.9rem; opacity: 0.85; }

/* -------- Footer -------------------------------------- */
.footer {
  background: linear-gradient(135deg, var(--primary-dark), #0e3d1f);
  color: #ccddd4; padding: 3rem 0 1rem; margin-top: 4rem;
}
.footer h5 { color: var(--accent-light); margin-bottom: 1.2rem; }
.footer a { color: #ccddd4; }
.footer a:hover { color: var(--accent); }
.footer .copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem; padding-top: 1.5rem;
  text-align: center; font-size: 0.9rem;
}

/* -------- Misc --------------------------------------- */
.ornament { display: block; width: 80px; height: auto; margin: 0 auto 1.5rem; opacity: 0.85; }
img.lazy { opacity: 0; transition: opacity 0.4s; }
img.lazy.loaded { opacity: 1; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Captcha */
.captcha-row { margin-bottom: 0.5rem; }
.captcha-image { max-width: 160px; image-rendering: pixelated; cursor: pointer; }
.captcha-reload { flex-shrink: 0; }

/* -------- Mobile -------------------------------------- */
@media (max-width: 767.98px) {
  .form-card { padding: 1.5rem; }
  .section { padding: 3rem 0; }
}

/* -------- Naib guide box (submit_result.php) ---------- */
.naib-guide-box {
  background: linear-gradient(135deg, #f0f9f4 0%, #fdfaf0 100%);
  border: 1.5px solid var(--accent-light);
  border-radius: var(--radius);
  overflow: hidden;
  direction: rtl;
  text-align: right;
}
.naib-guide-header {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 0.85rem 1.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
}
.naib-guide-body {
  padding: 1.2rem 1.4rem 0.6rem;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: 0.97rem;
  line-height: 1.9;
  color: var(--text-dark);
}
.naib-guide-body p { margin-bottom: 0.7rem; }

/* Sample images */
.naib-guide-samples {
  padding: 0.5rem 1.4rem 1.2rem;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
}
.sample-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.sample-thumbs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.sample-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.sample-thumb:hover {
  transform: scale(1.08);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(200,145,58,0.35);
}

/* -------- Searchable Select (custom dropdown) -------- */
.searchable-select-wrap {
  position: relative;
}
.searchable-select-wrap .ss-selected {
  cursor: pointer;
  background: #fff;
  display: flex; justify-content: space-between; align-items: center;
}
.searchable-select-wrap .ss-dropdown {
  display: none;
  position: absolute;
  z-index: 1050;
  left: 0; right: 0; top: 100%;
  background: #fff;
  border: 1.5px solid var(--primary);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 24px rgba(30,107,60,0.12);
  max-height: 260px;
  overflow: hidden;
  flex-direction: column;
}
.searchable-select-wrap.open .ss-dropdown { display: flex; }
.searchable-select-wrap .ss-search {
  padding: 0.5rem 0.7rem;
  border: none;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  outline: none;
  width: 100%;
}
.searchable-select-wrap .ss-list {
  overflow-y: auto;
  flex: 1;
}
.searchable-select-wrap .ss-option {
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  font-size: 0.93rem;
  transition: background 0.15s;
}
.searchable-select-wrap .ss-option:hover,
.searchable-select-wrap .ss-option.active {
  background: var(--primary-pale);
  color: var(--primary);
}
.searchable-select-wrap .ss-option.hidden { display: none; }
.searchable-select-wrap .ss-empty {
  padding: 0.5rem 0.9rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* -------- Password toggle ----------------------------- */
.pw-wrap { position: relative; }
.pw-wrap .pw-toggle {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  inset-inline-end: 0.75rem;
  background: none; border: none; padding: 0;
  color: var(--text-muted); cursor: pointer;
  font-size: 1.1rem; line-height: 1;
  z-index: 5;
  transition: color 0.2s;
}
.pw-wrap .pw-toggle:hover { color: var(--primary); }
.pw-wrap .form-control { padding-inline-end: 2.5rem; }

/* -------- Custom occupation free-text ---------------- */
.occupation-custom-input {
  display: none;
  margin-top: 0.4rem;
}
.occupation-custom-input.visible { display: block; }

/* -------- Province (show only when Iran) ------------- */
.province-row { display: none; }
.province-row.visible { display: block; }

/* -------- Message to admin card --------------------- */
.msg-admin-card {
  background: var(--accent-pale);
  border: 1.5px solid var(--accent-light);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.msg-admin-card h5 { color: var(--accent-dark); }
.msg-badge {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 20px; height: 20px;
  font-size: 0.72rem;
  display: inline-flex; align-items: center; justify-content: center;
  vertical-align: middle;
}

/* -------- Drag & Drop file zone ----------------------- */
.dropzone-wrap {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  overflow: hidden;
  min-height: 110px;
}
.dropzone-wrap:hover,
.dropzone-wrap.drag-over {
  border-color: var(--primary);
  background: var(--primary-pale);
}
.dropzone-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.dropzone-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 1rem;
  pointer-events: none;
  text-align: center;
}
.dropzone-link {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}
.dropzone-preview {
  position: relative;
  width: 100%;
}
.dropzone-preview img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  display: block;
  border-radius: calc(var(--radius) - 2px);
}
.dropzone-remove {
  position: absolute;
  top: 6px;
  inset-inline-end: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 26px; height: 26px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: flex; align-items: center; justify-content: center;
}
.dropzone-remove:hover { background: rgba(200,0,0,0.8); }
