/* =========================================================================
   ZAKAT FITR & SHARIA SPECIALTY MODAL - RESTORED PREMIUM STYLES
   ========================================================================= */

.widget-header i {
  font-size: 2rem;
  animation: pulse-gold-alt 2.5s infinite;
}

@keyframes pulse-gold-alt {
  0%, 100% { filter: drop-shadow(0 0 5px var(--gold)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 20px var(--gold)); transform: scale(1.15); }
}

/* ===== ZAKAT FITR LUXURY GRID ===== */
.zakat-fitr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.fitr-card {
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 24px;
  padding: 1.8rem 1rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.fitr-card:hover {
  transform: translateY(-12px);
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px rgba(0,0,0,0.4), 0 0 20px rgba(212,175,55,0.3);
}

.fitr-item-name {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  display: block;
}

.fitr-weight {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.fitr-price-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.fitr-price {
  font-family: 'Amiri', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
}

.fitr-currency {
  font-size: 0.9rem;
  color: var(--gold);
}

.fitr-note-box {
  display: inline-block;
  background: rgba(0,0,0,0.25);
  padding: 1.5rem 3rem;
  border-radius: 24px;
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  line-height: 1.8;
  border: 1px solid rgba(212,175,55,0.2);
  max-width: 900px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

@media (max-width: 1000px) {
  .zakat-fitr-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .zakat-fitr-grid { grid-template-columns: repeat(2, 1fr); }
  .widget-header h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .zakat-fitr-grid { grid-template-columns: 1fr; }
}

/* ===== ULTRA EXECUTIVE SHARIA SPECIALTY MODAL ===== */
.specialty-modal {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.specialty-modal.active {
  opacity: 1;
  visibility: visible;
}

.specialty-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 12, 9, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.specialty-modal-content {
  position: relative;
  width: 94%;
  max-width: 1060px;
  min-height: 560px;
  height: 86vh;
  max-height: 820px;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, #0e4435 0%, #07251c 50%, #03140f 100%);
  border-radius: 28px;
  box-shadow: 0 45px 120px rgba(0, 0, 0, 0.95), 0 0 60px rgba(212, 175, 55, 0.25);
  transform: scale(0.92) translateY(20px);
  transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  color: #ffffff;
}

.specialty-modal-list-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.specialty-modal.active .specialty-modal-content {
  transform: scale(1) translateY(0);
}

.specialty-modal-header {
  padding: 1.2rem 2.4rem 1rem;
  background: linear-gradient(135deg, rgba(6, 35, 26, 0.99), rgba(12, 54, 42, 0.99));
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.specialty-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0.3rem;
}

.specialty-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 50%, var(--dark-gold) 100%);
  color: var(--dark-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.specialty-modal-header h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0;
  color: var(--gold-bright);
  font-family: 'Amiri', serif;
  font-weight: 800;
  text-shadow: 0 3px 15px rgba(212, 175, 55, 0.5);
}

.specialty-modal-header p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0;
}

.specialty-modal-close {
  position: absolute;
  top: 1.1rem;
  left: 1.4rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.4);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  z-index: 100 !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.specialty-modal-close:hover {
  background: var(--gold);
  color: var(--dark-green);
  transform: rotate(90deg);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* Ensure clearance between close button and adjacent department badge */
#contentDeptBadge {
  margin-left: 58px !important;
  transition: margin 0.3s ease;
}

@media (max-width: 768px) {
  #contentDeptBadge {
    margin-left: 48px !important;
  }
}

@media (max-width: 480px) {
  #contentDeptBadge {
    margin-left: 42px !important;
  }
}

.specialty-modal-body {
  padding: 1.5rem 2.4rem 2rem;
  background: transparent;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.book-list-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-bright);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* ===== AUTOFILL PROTECTION ===== */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px #04120e inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}
