/* الخط والأساسيات */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', sans-serif;
  background: #f5f6fa;
  color: #1a1a2e;
  transition: all 0.3s ease;
}

/* الوضع المظلم */
html.dark body {
  background: #0f1923;
  color: #ffffff;
}

/* الهيدر */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

html.dark .header {
  background: #16213e;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.logo {
  height: 40px;
  object-fit: contain;
}

/* زر تبديل الوضع */
.theme-toggle {
  background: #f5f6fa;
  border: 1px solid #eeeeee;
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

html.dark .theme-toggle {
  background: #0f1923;
  border-color: rgba(255,255,255,0.07);
}

/* الساعة */
.clock {
  font-size: 15px;
  font-weight: 600;
  color: #e94560;
  direction: ltr;
}

/* الفلاتر */
.filters {
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
  flex-wrap: wrap;
  transition: all 0.3s ease;
}

html.dark .filters {
  background: #16213e;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.filter-btn {
  background: #f5f6fa;
  border: 1px solid #eeeeee;
  border-radius: 50px;
  padding: 8px 18px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #1a1a2e;
}

html.dark .filter-btn {
  background: #0f1923;
  border-color: rgba(255,255,255,0.07);
  color: #ffffff;
}

.filter-btn.active {
  background: #e94560;
  color: #ffffff;
  border-color: #e94560;
}

/* بطاقة وضع النوم */
.sleep-card {
  margin: 24px;
  padding: 24px;
  background: #e8f4fd;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

html.dark .sleep-card {
  background: #16213e;
  border: 1px solid rgba(255,255,255,0.07);
}

.sleep-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}

.sleep-card h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.sleep-card p {
  color: #888888;
  font-size: 14px;
}

html.dark .sleep-card p {
  color: rgba(255,255,255,0.5);
}

.countdown {
  margin-top: 12px;
  font-size: 28px;
  font-weight: 700;
  color: #e94560;
  direction: ltr;
}

/* القسم الرئيسي */
.main {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* النقطة النابضة */
.pulse-dot {
  width: 12px;
  height: 12px;
  background: #e94560;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

/* Skeleton Loading */
.skeleton-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-item {
  height: 72px;
  background: linear-gradient(90deg, #eeeeee 25%, #f5f6fa 50%, #eeeeee 75%);
  background-size: 200% 100%;
  border-radius: 12px;
  animation: shimmer 1.5s infinite;
}

html.dark .skeleton-item {
  background: linear-gradient(90deg, #16213e 25%, #1a2a4a 50%, #16213e 75%);
  background-size: 200% 100%;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* صفوف الأماكن */
.places-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.place
