/* ========================================
   FULL CSS - MOBILE FIX INCLUDED
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}
body {
  background: #f8f9fa;
  color: #333;
  direction: rtl;
  min-height: 100vh;
  padding-bottom: 80px; /* ← CRITICAL: Space for bottom nav */
}
.container {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 100px !important; /* ← EXTRA SPACE */
}
header {
  text-align: center;
  margin-bottom: 30px;
}
header h1 {
  color: #1e3a8a;
  font-size: 1.8rem;
}
header p {
  color: #666;
  font-size: 0.9rem;
}
.section {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
  padding-bottom: 120px !important; /* ← PUSH CONTENT UP */
  min-height: calc(100vh - 200px);
}
.section.active {
  display: block;
}
.highlight {
  background: #fffbe6;
  padding: 15px;
  margin: 15px 0;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.app-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-bottom: 100px !important; /* ← FINAL SAFETY */
}
.app-item {
  background: white;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  gap: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  align-items: center;
}
.app-item img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
}
.app-item h3 {
  margin: 0;
  font-size: 1.1rem;
}
.app-item p {
  font-size: 0.85rem;
  color: #555;
  margin: 5px 0;
}
.btn {
  background: #1e3a8a;
  color: white;
  padding: 8px 15px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
}
.social {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.social-btn {
  padding: 12px;
  border-radius: 25px;
  text-align: center;
  color: white;
  text-decoration: none;
  font-weight: bold;
}
.instagram { background: #E1306C; }
.telegram { background: #FBBF24; }
.youtube { background: #FF0000; }
.email { background: #D1D5DB; color: #6B7280; }
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  border-top: 1px solid #eee;
  z-index: 9999;
}
.nav-item {
  padding: 10px;
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.nav-item.active {
  color: #1e3a8a;
  font-weight: bold;
}
.nav-item i {
  font-size: 1.2rem;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ========================================
   MOBILE FIX - LAST APP VISIBLE
   ======================================== */
@media (max-width: 480px) {
  body, .container, .section, .app-list {
    padding-bottom: 130px !important;
  }
 
  .bottom-nav {
    height: 70px;
  }
}
/* ========================================
   FINAL FIX: Remove space + underline in Apps
   ======================================== */
/* 1. Remove extra bottom space */
#apps .app-list {
  padding-bottom: 10px !important; /* Was 100px → now tight */
  gap: 12px !important;
}
.section {
  padding-bottom: 10px !important; /* Remove huge padding */
}
/* 2. Remove ALL underlines in Apps section */
#apps,
#apps a,
#apps h3,
#apps p,
#apps * {
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
}
/* ========================================
   MOBILE: Remove space + underline in Apps section
   ======================================== */
/* Remove extra space on mobile */
@media (max-width: 480px) {
  /* Reduce bottom padding */
  body {
    padding-bottom: 70px !important;
  }
 
  .container {
    padding: 15px !important;
    padding-bottom: 80px !important;
  }
 
  .section {
    padding-bottom: 80px !important;
  }
 
  #apps .app-list {
    padding-bottom: 20px !important; /* Tight but safe */
    gap: 12px !important;
  }
 
  .app-item {
    padding: 12px !important;
  }
 
  /* Force bottom nav height */
  .bottom-nav {
    height: 70px;
    padding: 8px 0;
  }
 
  .nav-item {
    font-size: 0.85rem;
    gap: 4px;
  }
}
/* Remove ALL underlines in Apps section (desktop + mobile) */
#apps,
#apps a,
#apps a:hover,
#apps a:focus,
#apps h3,
#apps p,
#apps * {
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
  outline: none !important;
}
/* Clean button - no underline */
#apps .btn {
  text-decoration: none !important;
  display: inline-block;
  margin-top: 8px;
}
/* Ensure last app is visible */
#apps {
  padding-bottom: 5px !important;
}
/* ========================================
   PINTEREST-STYLE BOTTOM NAV - BOLD TEXT BY DEFAULT
   ======================================== */
.pinterest-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 70px;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -2px 20px rgba(124, 58, 237, 0.15);
  z-index: 9999;
  padding: 0 12px;
  overflow: hidden;
}
.nav-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #9e9e9e;
  font-size: 13px;
  font-weight: 700; /* BOLD BY DEFAULT */
  transition: all 0.3s ease;
  min-height: 55px;
  position: relative;
  padding-top: 6px;
}
.nav-link .icon {
  font-family: 'Material Icons Outlined';
  font-size: 28px;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}
.nav-link .label {
  transition: all 0.3s ease;
  line-height: 1.3;
}
/* Active State - Only color change */
.nav-link.active,
.nav-link:hover {
  color: #7c3aed;
}
.nav-link.active .icon,
.nav-link:hover .icon {
  color: #7c3aed;
  transform: translateY(-1px);
}
.nav-link.active .label,
.nav-link:hover .label {
  color: #7c3aed;
}
/* Mobile */
@media (max-width: 480px) {
  .pinterest-nav {
    height: 68px;
    border-radius: 16px 16px 0 0;
  }
  .nav-link .icon {
    font-size: 26px;
  }
  .nav-link .label {
    font-size: 12px;
  }
}
/* Reduced space */
.container, .section, .app-list {
  padding-bottom: 80px !important;
}
/* NEW: CATEGORY CARDS (LIKE YOUR IMAGE) */
.cat-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  transition: all .2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 110px;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.cat-icon svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}
.cat-title {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
}
/* SMOOTH FADE */
.fade-slide {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}
.fade-slide.active {
  opacity: 1;
  transform: translateY(0);
}

/* CUSTOM PNG CATEGORY ICONS */
.cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-size: 70% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  margin-bottom: 10px;
  background-color: #f0f0f0; /* fallback */
  border: 2px solid #eee;
}

