/* =====================================================
   Dalil - دليل تجاري شامل
   Premium UI Design System
   ===================================================== */

:root {
  --primary: #4361ee;
  --primary-dark: #3a0ca3;
  --primary-light: #eef1ff;
  --secondary: #f72585;
  --accent: #7209b7;
  --gold: #f4a700;
  --silver: #adb5bd;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text-dark: #1e293b;
  --text-body: #475569;
  --text-muted: #94a3b8;
  --bg-light: #f1f5f9;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --card-shadow-hover: 0 8px 30px rgba(67,97,238,0.15), 0 4px 12px rgba(0,0,0,0.06);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-primary: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
  --gradient-warm: linear-gradient(135deg, #f72585 0%, #f4a700 100%);
  --gradient-fresh: linear-gradient(135deg, #10b981 0%, #4361ee 100%);
  --gradient-dark: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

/* ===================== BASE ===================== */
* { box-sizing: border-box; margin: 0; }
body {
  font-family: 'Cairo', 'Segoe UI', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

/* ===================== NAVBAR ===================== */
.navbar-dalil {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-color);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
.navbar-dalil.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.navbar-dalil .navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.navbar-dalil .navbar-brand span { color: var(--secondary); }
.navbar-dalil .navbar-brand img { border-radius: 8px; }
.nav-search-bar {
  background: var(--bg-light);
  border: 2px solid transparent;
  border-radius: 50px;
  padding: 7px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}
.nav-search-bar:focus-within {
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(67,97,238,0.08);
}
.nav-search-bar input {
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 0.88rem;
  width: 220px;
  color: var(--text-dark);
}
.navbar-dalil .btn {
  font-size: 0.85rem;
  padding: 7px 18px;
}

/* ===================== HERO ===================== */
.hero-section {
  background: var(--gradient-primary);
  padding: 70px 0 50px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  animation: heroFloat 8s ease-in-out infinite;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
  animation: heroFloat 10s ease-in-out infinite reverse;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}
.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.hero-subtitle {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 28px;
  font-weight: 400;
}
.hero-search-box {
  background: var(--bg-white);
  border-radius: 60px;
  padding: 5px 5px 5px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}
.hero-search-box input {
  border: none;
  outline: none;
  flex: 1;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: transparent;
}
.hero-search-box .btn {
  border-radius: 50px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--primary);
  border: none;
  color: #fff;
  white-space: nowrap;
}
.hero-search-box .btn:hover {
  background: var(--primary-dark);
  transform: scale(1.02);
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
  color: rgba(255,255,255,0.95);
}
.hero-stat .num {
  font-size: 2rem;
  font-weight: 800;
  display: block;
  line-height: 1.2;
}
.hero-stat .lbl {
  font-size: 0.82rem;
  opacity: 0.8;
  font-weight: 500;
}

/* ===================== SECTION TITLES ===================== */
.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.section-title span { color: var(--primary); }
.section-divider {
  width: 40px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 4px;
  margin-bottom: 24px;
}
.section-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.section-link:hover {
  color: var(--primary-dark);
  gap: 8px;
}

/* ===================== CATEGORIES GRID ===================== */
.cat-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 22px 14px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: var(--card-shadow);
  display: block;
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
}
.cat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(67,97,238,0.15);
  color: var(--primary);
}
.cat-card:hover::after { transform: scaleX(1); }
.cat-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 1.4rem;
  color: #fff;
  transition: var(--transition);
}
.cat-card:hover .cat-icon { transform: scale(1.1) rotate(-5deg); }
.cat-name {
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.4;
}
.cat-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ===================== STORE CARDS - FLIP CARDS ===================== */
.store-flip-wrapper {
  perspective: 1000px;
  height: 280px;
}
.store-flip-card {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.store-flip-wrapper:hover .store-flip-card,
.store-flip-wrapper.flipped .store-flip-card {
  transform: rotateY(180deg);
}
.store-flip-front, .store-flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.store-flip-front {
  background: var(--bg-white);
}
.store-flip-front .flip-cover {
  height: 110px;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}
.store-flip-front .flip-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.store-flip-front .flip-cover-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}
.store-flip-front .flip-logo {
  position: absolute;
  bottom: -26px;
  right: 14px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 3px solid var(--bg-white);
  background: var(--bg-white);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.store-flip-front .flip-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.store-flip-front .flip-body {
  padding: 34px 14px 14px;
}
.store-flip-front .flip-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-dark);
}
.store-flip-front .flip-cat {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}
.store-flip-front .flip-city {
  font-size: 0.76rem;
  color: var(--text-muted);
}
.store-flip-front .flip-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.store-flip-back {
  background: var(--gradient-primary);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: #fff;
}
.store-flip-back .flip-back-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.3);
  overflow: hidden;
  margin-bottom: 12px;
}
.store-flip-back .flip-back-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.store-flip-back .flip-back-name {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.store-flip-back .flip-back-desc {
  font-size: 0.78rem;
  opacity: 0.85;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.store-flip-back .flip-back-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.store-flip-back .btn-flip-action {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}
.store-flip-back .btn-flip-action:hover {
  background: rgba(255,255,255,0.35);
  transform: scale(1.05);
  color: #fff;
}
.store-flip-back .btn-flip-visit {
  background: #fff;
  color: var(--primary);
  border: none;
}
.store-flip-back .btn-flip-visit:hover {
  background: #fff;
  color: var(--primary-dark);
}
.store-flip-back .btn-flip-whatsapp {
  background: #25d366;
  border-color: #25d366;
}
.store-flip-back .btn-flip-whatsapp:hover {
  background: #1ebe57;
}

/* ===================== CLASSIC STORE CARDS ===================== */
.store-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  display: block;
  color: var(--text-dark);
  height: 100%;
  position: relative;
}
.store-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  color: var(--text-dark);
}
.store-card-cover {
  height: 120px;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}
.store-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.store-card-logo {
  position: absolute;
  top: 94px;
  right: 14px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 3px solid var(--bg-white);
  background: var(--bg-white);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 2;
}
.store-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11px;
}
.store-card-body {
  padding: 32px 14px 14px;
}
.store-card-name {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.store-card-cat {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}
.store-card-city {
  font-size: 0.76rem;
  color: var(--text-muted);
}
.store-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.store-card-meta span { white-space: nowrap; }
.store-card-rating {
  font-size: 0.78rem;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.store-card-rating .fa-star { font-size: 0.72rem; }
.store-card-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ===================== BADGES ===================== */
.badge-verified {
  background: #ecfdf5;
  color: var(--success);
  border-radius: 50px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge-featured {
  background: #fffbeb;
  color: var(--gold);
  border-radius: 50px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ===================== STORE PAGE - FACEBOOK STYLE ===================== */
.store-profile {
  background: var(--bg-white);
  margin-bottom: 16px;
}
.store-cover {
  height: 280px;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}
.store-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.store-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.05) 40%, transparent 70%);
}
.store-logo-wrapper {
  position: absolute;
  bottom: -56px;
  left: 50%;
  transform: translateX(-50%);
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 5px solid var(--bg-white);
  background: var(--bg-white);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  z-index: 10;
}
.store-logo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.store-info-section {
  background: var(--bg-white);
  padding: 68px 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}
.store-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  justify-content: center;
}
.store-name {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

/* Contact icons */
.store-contact-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 8px;
  flex-wrap: wrap;
}
.store-contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
  text-decoration: none;
}
.store-contact-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.store-contact-icon.whatsapp { background: #25d366; color: #fff; }
.store-contact-icon.phone { background: #4361ee; color: #fff; }
.store-contact-icon.share { background: var(--bg-light); color: var(--text-dark); }
.store-contact-icon.location { background: #ef4444; color: #fff; }
.store-contact-icon.website { background: #7209b7; color: #fff; }
.store-contact-icon.whatsapp:hover { background: #1ebe57; }
.store-contact-icon.phone:hover { background: var(--primary-dark); }

/* Social links */
.store-social-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
}
.store-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--text-body);
  font-size: 0.95rem;
  transition: var(--transition);
}
.store-social-links a:hover { transform: scale(1.15); }
.store-social-links a.fb:hover { background: #1877f2; color: #fff; }
.store-social-links a.ig:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.store-social-links a.tw:hover { background: #000; color: #fff; }
.store-social-links a.tt:hover { background: #010101; color: #fff; }
.store-social-links a.sc:hover { background: #fffc00; color: #000; }
.store-social-links a.yt:hover { background: #ff0000; color: #fff; }

/* Store Tabs */
.store-tabs {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 52px;
  z-index: 100;
}
.store-tabs .nav {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.store-tabs .nav::-webkit-scrollbar { display: none; }
.store-tabs .nav-link {
  color: var(--text-muted);
  font-weight: 600;
  padding: 14px 18px;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  font-family: inherit;
  white-space: nowrap;
  font-size: 0.9rem;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  transition: var(--transition);
}
.store-tabs .nav-link:hover { color: var(--primary); }
.store-tabs .nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Products Grid */
.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}
.product-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.product-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--primary-light), #e8eaff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary);
  opacity: 0.35;
}
.product-body { padding: 12px; }
.product-name {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.product-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.92rem;
}
.product-unavailable { opacity: 0.55; }
.product-unavailable-badge {
  background: #fee2e2;
  color: #dc2626;
  border-radius: 50px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
}
.stars { color: #fbbf24; letter-spacing: 2px; }

/* ===================== DASHBOARD ===================== */
.dashboard-sidebar {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 24px;
  position: sticky;
  top: 80px;
}
.dashboard-sidebar.show {
  display: block !important;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  margin: 0 !important;
  border-radius: 0;
  overflow-y: auto;
  width: 260px !important;
  min-width: 260px !important;
  box-shadow: -5px 0 30px rgba(0,0,0,0.2);
}
.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 4px;
  transition: var(--transition);
}
.dash-nav-link:hover, .dash-nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
}
.dash-nav-link i { width: 20px; text-align: center; }
.stat-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  flex-shrink: 0;
}
.stat-value { font-size: 1.8rem; font-weight: 800; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* ===================== FORMS ===================== */
.form-control, .form-select {
  border-radius: var(--radius-xs);
  border: 2px solid var(--border-color);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition);
  background: var(--bg-white);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(67,97,238,0.08);
}
.form-label { font-weight: 600; font-size: 0.88rem; color: var(--text-body); margin-bottom: 6px; }
.btn {
  border-radius: 50px;
  font-family: inherit;
  font-weight: 700;
  padding: 10px 24px;
  transition: var(--transition);
}
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); }

/* Auth */
.auth-wrapper {
  min-height: 100vh;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-card {
  background: var(--bg-white);
  border-radius: 24px;
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.auth-logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin-bottom: 8px;
}
.auth-logo span { color: var(--secondary); }
.auth-title {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text-muted);
}

/* ===================== PLANS ===================== */
.plan-card {
  background: var(--bg-white);
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: var(--card-shadow);
  border: 2px solid var(--border-color);
  transition: var(--transition);
  text-align: center;
  position: relative;
}
.plan-card.popular {
  border-color: var(--gold);
  transform: scale(1.04);
  box-shadow: 0 12px 40px rgba(244,167,0,0.15);
}
.plan-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-4px); }
.plan-card.popular:hover { transform: scale(1.04) translateY(-4px); }
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), #ff8c00);
  color: #fff;
  border-radius: 50px;
  padding: 4px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(244,167,0,0.3);
}
.plan-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
}
.plan-period { font-size: 0.85rem; color: var(--text-muted); }
.plan-features { list-style: none; padding: 0; margin: 20px 0; text-align: right; }
.plan-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-features li i.yes { color: var(--success); }
.plan-features li i.no { color: #ccc; }

/* ===================== LUXURY FOOTER ===================== */
@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(67,97,238,0.3); }
  50% { box-shadow: 0 0 20px rgba(67,97,238,0.6), 0 0 40px rgba(114,9,183,0.2); }
}
.site-footer {
  position: relative;
  margin-top: 80px;
}
.footer-animated-border {
  height: 4px;
  background: linear-gradient(90deg, #4361ee, #7209b7, #f72585, #f4a700, #10b981, #4361ee);
  background-size: 300% 100%;
  animation: borderGlow 4s ease infinite;
}
.footer-main {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #cbd5e1;
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
}
.footer-main::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(67,97,238,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.footer-main::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(114,9,183,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.footer-brand {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  display: inline-block;
}
.footer-brand span { color: var(--secondary); }
.footer-desc {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 300px;
}
.footer-heading {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: #94a3b8;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.footer-links a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  transition: var(--transition);
}
.footer-links a:hover {
  color: #fff;
  transform: translateX(-6px);
}
.footer-links a:hover::before {
  opacity: 1;
}
.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #94a3b8;
  font-size: 1rem;
  transition: var(--transition);
}
.footer-social a:hover {
  transform: translateY(-4px);
  animation: pulse-glow 1.5s ease infinite;
}
.footer-social a.fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.footer-social a.ig:hover { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); color: #fff; border-color: transparent; }
.footer-social a.tt:hover { background: #010101; color: #fff; border-color: #fff; }
.footer-social a.wa:hover { background: #25d366; color: #fff; border-color: #25d366; }
.footer-cta {
  background: rgba(67,97,238,0.1);
  border: 1px solid rgba(67,97,238,0.2);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}
.footer-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  animation: shimmer 3s ease-in-out infinite;
}
.footer-cta h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}
.footer-cta p {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom-text {
  color: #64748b;
  font-size: 0.82rem;
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  color: #64748b;
  font-size: 0.82rem;
}
.footer-bottom-links a:hover { color: var(--primary); }

/* ===================== MOBILE BOTTOM NAV ===================== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  z-index: 999;
  padding: 6px 0 env(safe-area-inset-bottom);
  box-shadow: 0 -2px 20px rgba(0,0,0,0.06);
}
.bottom-nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 14px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  border-radius: 12px;
}
.bottom-nav-item i {
  font-size: 1.2rem;
  transition: var(--transition);
}
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: -6px;
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 3px 3px;
}
.bottom-nav-item.active i { transform: scale(1.15); }
.bottom-nav-item:hover { color: var(--primary); }

/* ===================== SEARCH PAGE ===================== */
.filter-sidebar {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--card-shadow);
}

/* ===================== UTILS ===================== */
.text-primary { color: var(--primary) !important; }
.bg-primary { background: var(--primary) !important; }
.loading-dots::after {
  content: '...';
  animation: dots 1.5s steps(4, end) infinite;
}
@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.page-body { padding-bottom: 40px; }
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 20px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(67,97,238,0.35);
  z-index: 998;
  transition: var(--transition);
}
.back-to-top:hover { transform: translateY(-3px); }
.back-to-top.visible { display: flex; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .bottom-nav { display: block; }
  .hero-title { font-size: 1.6rem; }
  .hero-subtitle { font-size: 0.92rem; }
  .hero-section { padding: 50px 0 40px; }
  .hero-stats { gap: 20px; }
  .hero-stat .num { font-size: 1.5rem; }
  .store-cover { height: 200px; }
  .store-logo-wrapper {
    width: 96px; height: 96px;
    bottom: -48px;
    border-width: 4px;
  }
  .store-info-section { padding: 56px 16px 18px; }
  .store-name { font-size: 1.3rem; }
  .page-body { padding-bottom: 80px; }
  .auth-card { padding: 28px 20px; }
  .navbar-dalil .nav-search-bar { display: none !important; }
  .section-title { font-size: 1.2rem; }
  .store-flip-wrapper { height: 260px; }
  .store-flip-front .flip-cover { height: 95px; }
  .back-to-top { bottom: 72px; }
  .cat-card { padding: 16px 10px; }
  .cat-icon { width: 48px; height: 48px; font-size: 1.2rem; border-radius: 12px; }
  .cat-name { font-size: 0.8rem; }
  .store-tabs { top: 52px; }
  .product-img, .product-img-placeholder { height: 140px; }
  .site-footer { margin-top: 40px; }
  .footer-main { padding: 40px 0 0; }
  .footer-brand { font-size: 1.5rem; }
  .footer-bottom { justify-content: center; text-align: center; }
  .store-card-cover { height: 100px; }
  .store-card-logo { width: 44px; height: 44px; top: 78px; }
  .store-card-body { padding: 28px 10px 10px; }
  .store-card-name { font-size: 0.82rem; }
}
@media (min-width: 769px) {
  .bottom-nav { display: none !important; }
}
@media (max-width: 390px) {
  .hero-search-box { padding: 4px 4px 4px 12px; }
  .hero-search-box .btn { padding: 8px 14px; font-size: 0.82rem; }
  .store-flip-wrapper { height: 240px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }