
/* إلغاء التحديد الأزرق عند الضغط في جميع الصفحات */
* {
  -webkit-tap-highlight-color: transparent;
  /* للموبايل (Chrome, Safari) */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  /* زيادة تأكيد للموبايل */
}

/* إلغاء الإطار الأزرق (Outline) الذي يظهر عند الضغط بالماوس أو الكيبورد */
*:focus {
  outline: none !important;
}

/* منع اختيار النصوص في الأزرار ليعطي إحساس تطبيق حقيقي */
button,
.menu-btn,
.choice-card,
.menu-card {
  user-select: none;
  -webkit-user-select: none;
}

:root {
  --gold: #d4af37;
  --dark-gold: #8e6d1c;
  --bg: #f8f5f0;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  overflow-x: hidden;
}

.fixed-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.top-bar {
  padding: 15px;
  text-align: center;
}

.top-bar h2 {
  margin: 0;
  color: var(--dark-gold);
  font-size: 1.3rem;
}

.categories-bar {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 10px 15px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* لمتصفح IE */
}

.categories-bar::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  background: white;
  border: 1px solid var(--gold);
  border-radius: 20px;
  padding: 8px 18px;
  color: var(--dark-gold);
  font-weight: bold;
  white-space: nowrap;
  transition: 0.3s;
  cursor: pointer;
  font-size: 0.9rem;
}

.cat-btn.active {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}

.azkar-list {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 200px;
}

.zekr-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  border-right: 8px solid var(--gold);
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.4s ease;
  position: relative;
  opacity: 1;
  transform: scale(1);
}

.zekr-text {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 12px;
  text-align: justify;
  word-wrap: break-word;
}

.zekr-bless {
  font-size: 0.85rem;
  color: #888;
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
  font-style: italic;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.counter-circle {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
  user-select: none;
  transition: 0.2s;
}

.counter-circle:active {
  transform: scale(0.9);
}

.counter-circle.zero {
  background: #4CAF50;
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

#done-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  z-index: 2000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.back-home-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  background: white;
  border: 1px solid var(--gold);
  padding: 5px 12px;
  border-radius: 10px;
  color: var(--dark-gold);
  font-weight: bold;
  cursor: pointer;
  font-size: 0.8rem;
  z-index: 1001;
}
