:root {
  --primary-color: #ff3b30; /* أحمر عصري مائل للبرتقالي */
  --bg-dark: #0a0a0a;
  --card-bg: #1a1a1a;
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --glass: rgba(255, 255, 255, 0.05);
}

body {
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* STORIES - جعلها تبدو كأنها تطفو */
.stories {
  display: flex;
  gap: 15px;
  padding: 20px 15px;
  overflow-x: auto;
  scrollbar-width: none; /* إخفاء شريط التمرير */
}

.stories::-webkit-scrollbar { display: none; }

.story {
  min-width: 68px;
  height: 68px;
  border-radius: 22px; /* زوايا مستديرة حديثة وليست دائرة كاملة */
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  padding: 3px; /* لخلق تأثير الإطار الملون */
}

.story::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  border-radius: 20px;
  border: 2px solid var(--bg-dark);
}

/* POST CARD - تصميم البطاقات الحديث */
.post {
  background: var(--card-bg);
  margin: 15px;
  border-radius: 25px;
  padding: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.post-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #333; /* لون مؤقت */
}

.username {
  font-weight: 600;
  font-size: 0.9rem;
  margin-left: 12px;
  color: var(--text-main);
}

.post-image {
  width: 100%;
  aspect-ratio: 1 / 1; /* يجعل الصورة مربعة دائماً */
  background: #252525;
  border-radius: 20px;
  border: none; /* أزلنا الحدود الحمراء القديمة */
}

/* ACTIONS - لمسة زجاجية */
.post-actions {
  display: flex;
  justify-content: space-around;
  margin-top: 15px;
  background: var(--glass);
  padding: 10px;
  border-radius: 15px;
}

/* BOTTOM NAV - تأثير الطفو Floating Nav */
.bottom-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(20px); /* تأثير الزجاج الضبابي */
  border-radius: 25px;
  display: flex;
  justify-content: space-around;
  padding: 15px 0; 
  border: 1px solid rgba(255,255,255,0.1);
}