:root {
  --primary: #0a4a2a;
  --primary-dark: #052e18;
  --primary-deeper: #031a0c;
  --gold: #b8942e;
  --gold-light: #e8d48b;
  --gold-glow: rgba(184,148,46,0.25);
  --cream: #f4efe6;
  --cream-light: #faf8f4;
  --dark: #0e0e1a;
  --text: #1e1e2e;
  --text-light: #6b6b7e;
  --text-muted: #9a9aae;
  --white: #ffffff;
  --ishraq: #1a7a3a;
  --tanaquz: #6a3a8a;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.05);
  --shadow: 0 8px 40px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 1100px;
  --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 999;
  transition: all 0.35s ease;
  background: transparent;
}
nav.scrolled {
  background: rgba(5,46,24,0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.15);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.25;
}
.nav-logo .sub {
  display: block;
  font-family: 'Noto Nastaliq Urdu', serif;
  color: var(--gold-light);
  font-size: 0.62rem;
  font-weight: 400;
  direction: rtl;
  line-height: 1.4;
}
.nav-links { display: flex; gap: 1.75rem; list-style: none; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s;
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle {
  display: none;
  background: none; border: none;
  color: var(--white); font-size: 1.3rem;
  cursor: pointer;
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; width: 100%;
    background: rgba(5,46,24,0.96);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    backdrop-filter: blur(18px);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--primary-deeper), var(--primary-dark), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 2rem) 2rem 3rem;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 20% 55%, rgba(184,148,46,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 80% 40%, rgba(255,255,255,0.02) 0%, transparent 60%);
  animation: heroBreathe 14s ease-in-out infinite alternate;
}
@keyframes heroBreathe {
  0% { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.04) translate(-1.5%,-1.5%); }
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image:
    radial-gradient(circle at 30% 30%, var(--gold) 1px, transparent 1px),
    radial-gradient(circle at 70% 70%, var(--gold) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}
.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(184,148,46,0.1);
  border: 1px solid rgba(184,148,46,0.2);
  color: var(--gold-light);
  padding: 0.4rem 1.3rem;
  border-radius: 50px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(6px);
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem,7vw,4.8rem);
  color: var(--white);
  line-height: 1.1;
  text-shadow: 0 4px 40px rgba(0,0,0,0.25);
}
.hero .h-arabic {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: clamp(1.3rem,3.5vw,2.2rem);
  color: var(--gold-light);
  line-height: 1.6;
  margin-top: 0.3rem;
  opacity: 0.9;
}
.hero .h-sub {
  font-size: clamp(0.95rem,1.8vw,1.3rem);
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 0.3rem;
}
.hero .divider {
  width: 60px; height: 2px;
  background: linear-gradient(90deg,transparent,var(--gold),transparent);
  margin: 1.25rem auto;
}
.hero .h-desc {
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  margin: 0 auto 2rem;
  font-size: 0.95rem;
  line-height: 1.8;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.6rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.78rem; }
.btn-gold { background: var(--gold); color: var(--dark); box-shadow: 0 4px 20px rgba(184,148,46,0.3); }
.btn-gold:hover { box-shadow: 0 6px 30px rgba(184,148,46,0.45); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.2); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-whatsapp { background: #25D366; color: var(--white); box-shadow: 0 4px 20px rgba(37,211,102,0.3); }
.btn-whatsapp:hover { box-shadow: 0 6px 30px rgba(37,211,102,0.45); }
.btn-facebook { background: #1877F2; color: var(--white); box-shadow: 0 4px 20px rgba(24,119,242,0.3); }
.btn-facebook:hover { box-shadow: 0 6px 30px rgba(24,119,242,0.45); }
.btn-instagram { background: linear-gradient(135deg,#833ab4,#fd1d1d); color: var(--white); box-shadow: 0 4px 20px rgba(195,54,165,0.25); }
.btn-instagram:hover { box-shadow: 0 6px 30px rgba(195,54,165,0.4); }

/* ─── SCROLL INDICATOR ─── */
.scroll-ind {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.2);
  font-size: 0.65rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  animation: bounce 2.4s infinite;
}
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(7px); } }

/* ─── PAGE HEADER (inner pages) ─── */
.page-header {
  padding: calc(var(--nav-h) + 3.5rem) 2rem 2.5rem;
  background: linear-gradient(160deg, var(--primary-deeper), var(--primary-dark), var(--primary));
  text-align: center;
  position: relative;
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem,4vw,2.8rem);
  color: var(--white);
}
.page-header p {
  color: rgba(255,255,255,0.5);
  max-width: 500px;
  margin: 0.5rem auto 0;
  font-size: 0.9rem;
}
.page-header .divider {
  width: 50px; height: 2px;
  background: linear-gradient(90deg,transparent,var(--gold),transparent);
  margin: 0.75rem auto;
}

/* ─── SECTION ─── */
.section { padding: 4rem 2rem; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem,3.5vw,2.3rem);
  margin-bottom: 0.4rem;
}
.section-title .divider {
  width: 45px; height: 2px;
  background: linear-gradient(90deg,transparent,var(--gold),transparent);
  margin: 0.6rem auto;
}
.section-title p { color: var(--text-light); font-size: 0.9rem; max-width: 500px; margin: 0 auto; }

/* ─── ISLAMIC GEOMETRIC CARD ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--primary), var(--gold));
  opacity: 0.6;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.card .cat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
  background: rgba(10,74,42,0.06);
  color: var(--primary);
  border: 1px solid rgba(10,74,42,0.1);
}
.card .rarity {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.55rem;
  letter-spacing: 1px;
  padding: 0.15rem 0.6rem;
  border-radius: 50px;
  font-weight: 600;
}
.card .rarity.Nadir { background: rgba(184,148,46,0.12); color: var(--gold); border: 1px solid rgba(184,148,46,0.2); }
.card .rarity.Khas { background: rgba(10,74,42,0.1); color: var(--primary); border: 1px solid rgba(10,74,42,0.15); }
.card .rarity.Nadir-tareen { background: rgba(106,58,138,0.1); color: var(--tanaquz); border: 1px solid rgba(106,58,138,0.2); }

.card .source-person {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.card .source-person i { color: var(--gold); font-size: 0.6rem; }

.card .original {
  font-family: 'Amiri', 'Traditional Arabic', serif;
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
  direction: rtl;
  color: var(--gold);
  text-align: center;
  padding: 0.75rem 0;
  border-bottom: 1px dashed rgba(184,148,46,0.15);
}

.card .urdu {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 0.95rem;
  line-height: 1.8;
  direction: rtl;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
  color: var(--text);
}

.card .ishraq-section {
  margin-bottom: 0.6rem;
  padding: 0.6rem 0.75rem;
  background: rgba(26,122,58,0.04);
  border-radius: 8px;
  border-right: 2px solid var(--ishraq);
}
.card .ishraq-section .label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ishraq);
  margin-bottom: 0.3rem;
}
.card .ishraq-section .content {
  font-size: 0.82rem;
  color: #1a5a2a;
  line-height: 1.6;
  direction: rtl;
  font-family: 'Noto Nastaliq Urdu', serif;
}

.card .tanaquz-section {
  margin-bottom: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: rgba(106,58,138,0.04);
  border-radius: 8px;
  border-right: 2px solid var(--tanaquz);
}
.card .tanaquz-section .label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tanaquz);
  margin-bottom: 0.3rem;
}
.card .tanaquz-section .content {
  font-size: 0.82rem;
  color: #5a2a6a;
  line-height: 1.6;
  direction: rtl;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-style: italic;
}

.card .related-section {
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0,0,0,0.02);
  border-radius: 8px;
  border-right: 2px solid var(--gold-light);
}
.card .related-section .label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.card .related-section .content {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.5;
  direction: rtl;
  font-family: 'Noto Nastaliq Urdu', serif;
}

.card .meta {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.04);
}
.card .meta span {
  background: rgba(0,0,0,0.03);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
}

/* ─── RAREST QUOTE SECTION ─── */
.rarest-section {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--primary-deeper), var(--primary-dark));
  position: relative;
  overflow: hidden;
  text-align: center;
}
.rarest-section::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(184,148,46,0.1);
  border-radius: var(--radius-lg);
  pointer-events: none;
}
.rarest-section .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(184,148,46,0.12);
  border: 1px solid rgba(184,148,46,0.2);
  color: var(--gold-light);
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.rarest-section .ra {
  font-family: 'Amiri', 'Traditional Arabic', serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--gold);
  line-height: 1.8;
  direction: rtl;
  margin-bottom: 0.75rem;
}
.rarest-section .ru {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  direction: rtl;
  margin-bottom: 0.75rem;
}
.rarest-section .r-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─── FILTERS ─── */
.filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  border: 1.5px solid rgba(0,0,0,0.07);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-light);
}
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.filter-btn:hover:not(.active) { border-color: var(--gold); color: var(--text); }

/* ─── COUNT ─── */
.count-badge {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}

/* ─── SEARCH ─── */
.search-box {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.search-box input {
  max-width: 400px;
  width: 100%;
  padding: 0.65rem 1.2rem;
  border-radius: 50px;
  border: 1.5px solid rgba(0,0,0,0.08);
  background: var(--white);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.3s;
}
.search-box input:focus { border-color: var(--gold); }

/* ─── FOOTER ─── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.3);
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 0.78rem;
  margin-top: auto;
}
footer a { color: var(--gold-light); }
footer .heart { color: #e74c3c; }

/* ─── EMPTY STATE ─── */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}
.empty-state i { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.3; }

/* ─── FLOATING ─── */
.floating {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 100;
}
.floating a {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: all 0.3s;
  text-decoration: none;
}
.floating a:hover { transform: scale(1.1); }
.floating .f-fb { background: #1877F2; }
.floating .f-ig { background: linear-gradient(135deg,#833ab4,#fd1d1d); }
.floating .f-wa { background: #25D366; }
@media (max-width: 480px) {
  .floating { bottom: 1rem; right: 1rem; }
  .floating a { width: 40px; height: 40px; font-size: 1rem; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .section { padding: 2.5rem 1.25rem; }
  .card-grid { grid-template-columns: 1fr; }
  .filters { gap: 0.35rem; }
  .filter-btn { font-size: 0.72rem; padding: 0.35rem 0.9rem; }
  .poetry-grid { grid-template-columns: 1fr; }
  .poetry-section { padding: 2.5rem 1rem; }
  .poem-card { padding: 1.25rem 1rem; }
  .fun-inner { grid-template-columns: 1fr; }
  .fun-section { padding: 2.5rem 1.25rem; }
  .page-header { padding: calc(var(--nav-h) + 2.5rem) 1.25rem 1.5rem; }
  .hero { padding: calc(var(--nav-h) + 1.5rem) 1.25rem 2rem; }
  .search-box input { max-width: 100%; }
  .discover-tabs { gap: 0.35rem; }
  .discover-tab { font-size: 0.72rem; padding: 0.4rem 0.9rem; }
  .discover-grid { grid-template-columns: 1fr; }
  .rarest-section { padding: 1.5rem 1rem; margin-left: 0; margin-right: 0; }
  .card .original { font-size: 1rem; }
  .card { padding: 1.25rem; }
}

@media (max-width: 480px) {
  .section { padding: 2rem 1rem; }
  .nav-inner { padding: 0 1rem; }
  .hero h1 { font-size: clamp(2rem,8vw,2.8rem); }
  .hero .h-arabic { font-size: clamp(1rem,5vw,1.5rem); }
  .page-header h1 { font-size: clamp(1.4rem,5vw,1.8rem); }
  .section-title h2 { font-size: clamp(1.2rem,5vw,1.6rem); }
  .discover-tab { font-size: 0.65rem; padding: 0.35rem 0.7rem; }
  .discover-card { padding: 1.25rem; }
  .poem-card .misra { font-size: clamp(0.85rem,3.5vw,1rem); }
  .search-tags-wrapper .tag-group-label { font-size: 0.55rem; }
  .tag-chip { font-size: 0.6rem; padding: 0.15rem 0.55rem; }
  .search-tags-wrapper .tags-group { gap: 0.3rem; }
  .connect-grid { grid-template-columns: 1fr; }
  .fun-card .fun-text { font-size: 0.8rem; }
  .card .ishraq-section .content,
  .card .tanaquz-section .content { font-size: 0.75rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 260px; justify-content: center; }
}

/* ─── AMAL PAGE ─── */
.amal-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  margin-bottom: 1.25rem;
  transition: all 0.3s;
}
.amal-card:hover { box-shadow: var(--shadow); }
.amal-card .amal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  gap: 0.5rem;
}
.amal-card .amal-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--primary-dark);
}
.amal-card .amal-cats { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.amal-card .amal-cats span {
  font-size: 0.6rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.15rem 0.6rem;
  border-radius: 50px;
  background: rgba(10,74,42,0.06);
  color: var(--primary);
  border: 1px solid rgba(10,74,42,0.1);
}
.amal-card .amal-text {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 1.1rem;
  line-height: 2;
  direction: rtl;
  margin-bottom: 0.75rem;
}
.amal-card .amal-text.en, .amal-card .amal-text.tr {
  direction: ltr;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
}
.amal-card .amal-trans {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  padding: 0.75rem;
  background: rgba(0,0,0,0.02);
  border-radius: 8px;
  border-left: 2px solid var(--gold);
  margin-bottom: 0.75rem;
}
.amal-card .amal-source {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.amal-card .amal-source span { background: rgba(0,0,0,0.03); padding: 0.15rem 0.5rem; border-radius: 4px; }

/* ═══════════════════════════════════════
   SEARCH SUGGESTION TAGS
   ═══════════════════════════════════════ */
.search-tags-wrapper {
  max-width: 680px;
  margin: 0 auto 1.75rem;
  text-align: center;
}
.search-tags-wrapper .tags-heading {
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.search-tags-wrapper .tags-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}
.search-tags-wrapper .tags-group:last-child { margin-bottom: 0; }
.search-tags-wrapper .tag-group-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--gold);
  padding: 0.15rem 0.5rem;
  letter-spacing: 1px;
}
.tag-chip {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-light);
  background: transparent;
  border: 1px solid rgba(184,148,46,0.25);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}
.tag-chip:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(184,148,46,0.06);
  transform: translateY(-1px);
}
.tag-chip:active { transform: scale(0.95); }

/* ═══════════════════════════════════════
   PREMIUM POETRY — Rekhta-style (crimson/gold)
   ═══════════════════════════════════════ */
.poetry-section {
  background: linear-gradient(160deg, #1a0808, #2a1010, #1a0808);
  padding: 4rem 2rem;
  position: relative;
}
.poetry-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(139,37,37,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.poetry-section .section-title h2 { color: var(--gold-light); }
.poetry-section .section-title p { color: rgba(255,255,255,0.35); }
.poetry-section .section-title .divider { background: linear-gradient(90deg,transparent,#8b2525,transparent); }

.poetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.poem-card {
  background: linear-gradient(170deg, rgba(139,37,37,0.08), rgba(139,37,37,0.03));
  border: 1px solid rgba(139,37,37,0.2);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}
.poem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, #8b2525, var(--gold), #8b2525, transparent);
  opacity: 0.6;
}
.poem-card:hover {
  border-color: rgba(139,37,37,0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(139,37,37,0.15);
}

.poem-card .poem-theme {
  display: inline-block;
  padding: 0.15rem 0.7rem;
  border-radius: 50px;
  font-size: 0.55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(139,37,37,0.15);
  color: #c95a5a;
  border: 1px solid rgba(139,37,37,0.2);
  margin-bottom: 1rem;
}

.poem-card .poem-couplet {
  margin-bottom: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px dashed rgba(184,148,46,0.12);
  border-bottom: 1px dashed rgba(184,148,46,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.poem-card .misra {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: var(--gold-light);
  line-height: 1.8;
  direction: rtl;
  display: block;
  text-align: center;
  width: 100%;
  padding: 0.1rem 0;
}
.poem-card .misra:first-child {
  border-bottom: 1px dashed rgba(184,148,46,0.07);
  padding-bottom: 0.3rem;
  margin-bottom: 0.15rem;
}

.poem-card .poem-poet {
  font-family: 'Playfair Display', serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  text-align: center;
}

.poem-card .poem-essence {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
  padding: 0.5rem;
  border-radius: 6px;
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.04);
}
.poem-card .poem-essence .label {
  display: block;
  font-size: 0.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c95a5a;
  margin-bottom: 0.25rem;
}

/* ═══════════════════════════════════════
   DID YOU KNOW? & LITERARY HUMOR
   ═══════════════════════════════════════ */
.fun-section {
  padding: 3.5rem 2rem;
  background: var(--cream-light);
}
.fun-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 640px) {
  .fun-inner { grid-template-columns: 1fr; }
}

.fun-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
  transition: all 0.3s;
}
.fun-card:hover { box-shadow: var(--shadow); }

.fun-card .fun-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.15rem 0.7rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}
.fun-card .fun-badge.fact { background: rgba(10,74,42,0.08); color: var(--primary); border: 1px solid rgba(10,74,42,0.12); }
.fun-card .fun-badge.humor { background: rgba(184,148,46,0.08); color: var(--gold); border: 1px solid rgba(184,148,46,0.12); }

.fun-card .fun-icon {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  opacity: 0.25;
}
.fun-card .fun-icon.fact-icon { color: var(--primary); }
.fun-card .fun-icon.humor-icon { color: var(--gold); }

.fun-card .fun-text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.7;
  direction: rtl;
  font-family: 'Noto Nastaliq Urdu', serif;
}
.fun-card .fun-text.en {
  direction: ltr;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
}

.fun-card .fun-source {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.04);
}

/* ═══════════════════════════════════════
   DISCOVER PAGE — Tabs & Cards
   ═══════════════════════════════════════ */
.discover-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.discover-tab {
  padding: 0.65rem 1.6rem;
  border-radius: 50px;
  border: 1.5px solid rgba(184,148,46,0.2);
  background: transparent;
  color: var(--text-light);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
}
.discover-tab i {
  font-size: 0.75rem;
  opacity: 0.6;
}
.discover-tab:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(184,148,46,0.04);
}
.discover-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.discover-tab.active i {
  opacity: 1;
}

.discover-panel {
  display: none;
}
.discover-panel.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.discover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.25rem;
}

.discover-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.discover-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--primary), var(--gold));
  opacity: 0.4;
  transition: opacity 0.3s ease;
}
.discover-card:hover {
  box-shadow: 0 8px 32px rgba(184,148,46,0.12);
  border-color: rgba(184,148,46,0.2);
  transform: translateY(-3px);
}
.discover-card:hover::before {
  opacity: 1;
}

.discover-card .dc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.7rem;
  border-radius: 50px;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(10,74,42,0.06);
  color: var(--primary);
  border: 1px solid rgba(10,74,42,0.1);
  margin-bottom: 0.75rem;
}

.discover-card .dc-text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.discover-card .dc-text.en {
  direction: ltr;
  font-family: 'Inter', sans-serif;
}
.discover-card .dc-text.rtl {
  direction: rtl;
  font-family: 'Noto Nastaliq Urdu', serif;
}

.discover-card .dc-source {
  font-size: 0.65rem;
  color: var(--text-muted);
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.discover-card .dc-source i {
  font-size: 0.55rem;
  opacity: 0.5;
}

.discover-count {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .discover-grid {
    grid-template-columns: 1fr;
  }
  .discover-tab {
    font-size: 0.75rem;
    padding: 0.5rem 1.1rem;
  }
}
