/* ============================================================
   ZEST Mobile App - CSS
   Premium Mobile Ecommerce UI
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --accent: #f05a27;
  --accent-light: rgba(240, 90, 39, 0.1);
  --accent-hover: #d94a1d;
  --dark: #1a1a1a;
  --text: #2d2d2d;
  --muted: #888;
  --bg: #f5f5f7;
  --white: #ffffff;
  --border: #ececec;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 16px 50px rgba(0, 0, 0, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --nav-height: 64px;
  --bottom-nav-height: 70px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* base resets — not scoped to body to avoid desktop conflicts */
a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Mobile layout wrapper typography */
#mobileAppLayout {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* ============================================================
   SKELETON LOADING
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

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

  100% {
    background-position: -200% 0;
  }
}

/* ============================================================
   TOP HEADER
   ============================================================ */
.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}

.header-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--dark);
  transition: var(--transition);
  position: relative;
}

.header-btn:active {
  transform: scale(0.9);
}

.header-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--dark);
}

.header-logo span {
  color: var(--accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

/* ============================================================
   SIDE DRAWER MENU
   ============================================================ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(2px);
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.app-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  bottom: 0;
  width: 82%;
  max-width: 340px;
  background: var(--white);
  z-index: 2001;
  transition: left 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.app-drawer.open {
  left: 0;
}

.drawer-header {
  background: linear-gradient(135deg, var(--dark) 0%, #3a3a3a 100%);
  padding: 50px 24px 24px;
  position: relative;
}

.drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.drawer-close:active {
  transform: scale(0.9);
}

.drawer-user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  font-weight: 700;
  margin-bottom: 12px;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.drawer-user-name {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
}

.drawer-user-email {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  margin-top: 2px;
}

.drawer-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  border-left: 3px solid transparent;
  transition: var(--transition);
}

.drawer-nav a i {
  width: 28px;
  font-size: 1rem;
  color: var(--muted);
  transition: var(--transition);
}

.drawer-nav a:hover,
.drawer-nav a.active {
  background: var(--accent-light);
  border-left-color: var(--accent);
  color: var(--accent);
}

.drawer-nav a:hover i,
.drawer-nav a.active i {
  color: var(--accent);
}

.drawer-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 24px;
}

.drawer-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-section {
  padding: 12px;
}

.hero-slider-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-slides {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-slide {
  min-width: 100%;
  height: 220px;
  position: relative;
  background: #1a1a1a;
  overflow: hidden;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.hero-slide-content {
  position: absolute;
  inset: 0;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  width: fit-content;
}

.hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  color: var(--dark);
  padding: 9px 18px;
  border-radius: 25px;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  width: fit-content;
}

.hero-cta:active {
  transform: scale(0.95);
}

.hero-indicators {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-dot.active {
  width: 20px;
  background: white;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

.hero-arrow:active {
  transform: translateY(-50%) scale(0.9);
}

.hero-prev {
  left: 12px;
}

.hero-next {
  right: 12px;
}

/* ============================================================
   PROMO BANNER STRIP
   ============================================================ */
.promo-strip {
  margin: 4px 12px 0;
  background: var(--dark);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  position: relative;
}

.promo-strip-text {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  white-space: nowrap;
}

.promo-strip-text strong {
  color: var(--accent);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px 12px;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
}

.section-title span {
  color: var(--accent);
}

.section-see-all {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ============================================================
   CATEGORY CIRCLES
   ============================================================ */
.categories-scroll {
  padding: 0 12px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.category-card {
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.category-img-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 2.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
}

.category-card.active .category-img-wrap {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.category-card.active .category-label {
  color: var(--accent);
  font-weight: 600;
}

.category-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-img-wrap i {
  font-size: 1.5rem;
  color: var(--accent);
}

.category-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
}

/* ============================================================
   FLASH SALE
   ============================================================ */
.flash-sale-section {
  margin: 4px 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  margin: 8px 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.flash-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flash-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flash-title {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
}

.flash-title i {
  color: var(--accent);
}

.countdown-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
}

.countdown-block {
  background: var(--accent);
  color: white;
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 28px;
  text-align: center;
  line-height: 1.2;
}

.countdown-sep {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.flash-products-scroll {
  padding: 14px 12px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.flash-products-scroll::-webkit-scrollbar {
  display: none;
}

.flash-card {
  flex-shrink: 0;
  width: 130px;
  scroll-snap-align: start;
  background: var(--bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.flash-card:active {
  transform: scale(0.97);
}

.flash-img-wrap {
  height: 110px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  position: relative;
}

.flash-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sale-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.wishlist-btn-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.wishlist-btn-overlay.active {
  color: #e53935;
}

.wishlist-btn-overlay:active {
  transform: scale(0.85);
}

.flash-info {
  padding: 10px;
}

.flash-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flash-prices {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.flash-sale-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
}

.flash-original-price {
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: line-through;
}

/* ============================================================
   PRODUCT GRID (New Arrivals / Trending)
   ============================================================ */
.products-grid {
  padding: 0 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.product-card:active {
  transform: scale(0.97);
}

.product-img-wrap {
  height: 155px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  position: relative;
  overflow: hidden;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-card:active .product-img-wrap img {
  transform: scale(1.05);
}

.product-new-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #28a745;
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  text-transform: uppercase;
}

.product-info {
  padding: 10px 12px 12px;
}

.product-brand {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.product-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 6px;
}

.product-rating i {
  font-size: 0.65rem;
  color: #ffc107;
}

.product-rating span {
  font-size: 0.65rem;
  color: var(--muted);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
}

.product-price-old {
  font-size: 0.7rem;
  color: var(--muted);
  text-decoration: line-through;
  display: block;
}

.add-cart-btn {
  width: 30px;
  height: 30px;
  background: var(--dark);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.add-cart-btn:active {
  background: var(--accent);
  transform: scale(0.85);
}

/* ============================================================
   TRENDING CAROUSEL
   ============================================================ */
.trending-scroll {
  padding: 0 12px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.trending-scroll::-webkit-scrollbar {
  display: none;
}

.trending-card {
  flex-shrink: 0;
  width: 160px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.trending-card:active {
  transform: scale(0.97);
}

.trending-img-wrap {
  height: 130px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  position: relative;
}

.trending-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.trending-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #3b82f6;
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.trending-info {
  padding: 10px;
}

.trending-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trending-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
}

/* ============================================================
   FEATURES STRIP
   ============================================================ */
.features-section {
  margin: 8px 12px;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.features-scroll {
  padding: 16px 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.features-scroll::-webkit-scrollbar {
  display: none;
}

.feature-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 80px;
  text-align: center;
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
}

.feature-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog-scroll {
  padding: 0 12px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.blog-scroll::-webkit-scrollbar {
  display: none;
}

.blog-card {
  flex-shrink: 0;
  width: 200px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}

.blog-card:active {
  transform: scale(0.97);
}

.blog-img-wrap {
  height: 115px;
  overflow: hidden;
}

.blog-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-content {
  padding: 12px;
}

.blog-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 6px;
}

.blog-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta {
  margin-top: 8px;
  font-size: 0.65rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   BRAND / NEWSLETTER BANNER
   ============================================================ */
.brand-banner {
  margin: 8px 12px;
  background: linear-gradient(135deg, var(--dark) 0%, #333 100%);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.brand-banner::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(240, 90, 39, 0.15);
  top: -60px;
  right: -40px;
}

.brand-banner::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(240, 90, 39, 0.1);
  bottom: -40px;
  left: -30px;
}

.brand-banner h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.brand-banner p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.newsletter-input-wrap {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.newsletter-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 10px 16px;
  font-size: 0.82rem;
  color: white;
  font-family: 'Poppins', sans-serif;
  outline: none;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-btn {
  background: var(--accent);
  border: none;
  border-radius: 25px;
  padding: 10px 18px;
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.newsletter-btn:active {
  transform: scale(0.95);
}

/* ============================================================
   BOTTOM NAVIGATION
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--bottom-nav-height);
  background: var(--white);
  border-top: 1px solid var(--border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px 6px;
  z-index: 999;
}

.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px 4px;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
  position: relative;
}

.nav-tab-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--muted);
  transition: var(--transition);
  position: relative;
}

.nav-tab.active .nav-tab-icon {
  background: var(--accent-light);
  color: var(--accent);
}

.nav-tab.active .nav-tab-icon::after {
  content: '';
  position: absolute;
  bottom: -8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-tab-label {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-tab.active .nav-tab-label {
  color: var(--accent);
  font-weight: 600;
}

.nav-tab-center .nav-tab-icon {
  width: 44px;
  height: 44px;
  background: var(--dark);
  border-radius: 16px;
  color: white;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  margin-top: -12px;
}

.nav-tab-center.active .nav-tab-icon {
  background: var(--accent);
}

.nav-tab-center .nav-tab-badge {
  position: absolute;
  top: 0;
  right: 4px;
  background: var(--accent);
  color: white;
  font-size: 0.55rem;
  font-weight: 700;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid white;
}

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-box {
  position: absolute;
  top: 0;
  left: 50%;
  right: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--white);
  padding: 20px 16px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input {
  flex: 1;
  background: var(--bg);
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  outline: none;
}

.search-close-btn {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
}

.search-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.search-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.search-tag:active {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   FADE IN ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease-out both;
}

.fade-in-delay-1 {
  animation-delay: 0.1s;
}

.fade-in-delay-2 {
  animation-delay: 0.2s;
}

.fade-in-delay-3 {
  animation-delay: 0.3s;
}

/* Intersection Observer fade-in */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PAGE BOTTOM PADDING
   ============================================================ */
.page-bottom-pad {
  height: 24px;
}