/* ==========================================
   MOBILE APP HEADER & BODY
   ========================================== */
body.mobile-body {
  background-color: #f8fafc; /* Light gray background like App */
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, sans-serif;
}

.mobile-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon-bg {
  background: #2563eb;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-icon { width: 18px; height: 18px; }
.brand-text { font-size: 18px; font-weight: 800; color: #1e293b; }
.text-blue { color: #2563eb; }

.icon-btn {
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; }

/* ==========================================
   HERO BLUE GRADIENT SECTION
   ========================================== */
.mobile-hero-blue {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: #fff;
  padding: 24px 16px 40px 16px;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  position: relative;
}
.greeting { font-size: 13px; opacity: 0.9; margin-bottom: 6px; font-weight: 500; }
.mobile-hero-blue h1 { font-size: 24px; font-weight: 800; line-height: 1.25; margin-bottom: 20px; }

.app-search-box {
  background: #fff;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  gap: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.app-search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 15px;
  color: #1e293b;
}
.app-search-box svg { width: 20px; height: 20px; color: #64748b; flex-shrink: 0;}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.15);
  padding: 12px 20px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}
.stat-item { text-align: center; display: flex; flex-direction: column; }
.stat-val { font-size: 16px; font-weight: 800; }
.stat-label { font-size: 10px; opacity: 0.9; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px;}
.stat-divider { width: 1px; height: 24px; background: rgba(255,255,255,0.2); }

/* ==========================================
   2x2 GRID (SYLLABUS, PATTERN ETC)
   ========================================== */
.app-section { padding: 16px; margin-bottom: 8px;}
.feature-grid-section { margin-top: -30px !important; position: relative; z-index: 10; }
.app-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.feature-card-sm {
  background: #fff;
  padding: 16px 12px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #f1f5f9;
}
.icon-box {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.icon-box svg { width: 22px; height: 22px; }

/* Icon Colors */
.blue-light { background: #eff6ff; color: #2563eb; }
.purple-light { background: #faf5ff; color: #9333ea; }
.sky-light { background: #f0f9ff; color: #0284c7; }

.feat-text h4 { font-size: 14px; font-weight: 700; color: #1e293b; margin-bottom: 4px; margin-top:0;}
.feat-text p { font-size: 11px; color: #64748b; line-height: 1.3; margin:0;}

/* ==========================================
   HORIZONTAL SCROLL & SECTION TITLES
   ========================================== */
.section-title-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title-mobile h2 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.bar-accent { width: 4px; height: 16px; background: #2563eb; border-radius: 4px; display: inline-block; }
.view-all-link { font-size: 12px; color: #2563eb; font-weight: 600; background: #eff6ff; padding: 4px 10px; border-radius: 100px; text-decoration: none;}

.swipe-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Categories Circles */
.app-cat-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 72px;
  text-decoration: none;
  scroll-snap-align: start;
}
.circle-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.circle-icon svg { width: 28px; height: 28px; }
.app-cat-circle span { font-size: 12px; font-weight: 600; color: #334155; }

.green { background: #dcfce7; color: #16a34a; }
.blue { background: #dbeafe; color: #2563eb; }
.purple { background: #f3e8ff; color: #9333ea; }
.emerald { background: #d1fae5; color: #059669; }
.amber { background: #fef3c7; color: #d97706; }
.pink { background: #fce7f3; color: #db2777; }
.skyblue { background: #e0f2fe; color: #0284c7; }

/* ==========================================
   EXAM APP CARDS (Horizontal Scroll)
   ========================================== */
.exam-app-card {
  min-width: 270px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  scroll-snap-align: start;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.exam-app-top { display: flex; gap: 12px; margin-bottom: 12px; }
.exam-logo-sm {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  flex-shrink: 0;
}
.exam-app-text h3 { font-size: 15px; font-weight: 700; color: #1e293b; margin: 0 0 4px 0;}
.exam-app-text p { font-size: 11px; color: #64748b; line-height: 1.3; margin: 0;}

.exam-app-tags { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap:wrap; }
.exam-app-tags span {
  background: #f1f5f9; color: #475569; font-size: 10px; padding: 4px 8px; border-radius: 4px; font-weight: 600;
}
.exam-app-tags span:first-child { background: #eff6ff; color: #2563eb; }

.view-details-btn {
  display: block; width: 100%; text-align: center;
  padding: 10px; background: #f8fafc; color: #2563eb;
  font-size: 13px; font-weight: 600; border-radius: 8px; text-decoration: none;
}

/* ==========================================
   BOTTOM NAVIGATION SAFE AREA
   ========================================== */
.pb-bottom-nav { padding-bottom: 80px; }