/* =========================================================
   IMEI-HUB.COM — Shared Component Styles
   Used across all pages for reusable UI patterns
   ========================================================= */

/* =========================================================
   NAV LINK CURRENT PAGE HIGHLIGHT
   ========================================================= */
body[data-page="home"]      #nav-home,
body[data-page="services"]  #nav-services,
body[data-page="tools"]     #nav-tools,
body[data-page="about"]     #nav-about,
body[data-page="contact"]   #nav-contact,
body[data-page="login"]     #nav-login {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}
body[data-page="home"]      #nav-home::after,
body[data-page="services"]  #nav-services::after,
body[data-page="tools"]     #nav-tools::after,
body[data-page="about"]     #nav-about::after,
body[data-page="contact"]   #nav-contact::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 2px;
  background: var(--blue-primary);
  border-radius: 1px;
}

/* =========================================================
   PRICING CARD
   ========================================================= */
.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.price-currency {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.price-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}
.price-period {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.price-contact {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-primary);
}

/* =========================================================
   INPUT GROUP (search + button)
   ========================================================= */
.input-group {
  display: flex;
  gap: 0;
}
.input-group .form-control {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border-right: none;
}
.input-group .btn {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  white-space: nowrap;
}

/* =========================================================
   COMPATIBILITY LIST
   ========================================================= */
.compat-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.compat-tag {
  padding: 3px 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* =========================================================
   MODAL
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95) translateY(16px);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.modal-title { font-size: 1.1rem; font-weight: 600; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  font-size: 18px;
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }

/* =========================================================
   CATEGORY CARD (Services/Tools listing)
   ========================================================= */
.listing-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.listing-toolbar .search-wrapper { flex: 1; min-width: 200px; }
.listing-count {
  font-size: 0.875rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* =========================================================
   DETAIL PANEL (service or tool detail)
   ========================================================= */
.detail-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
}
.detail-icon-wrap {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  background: rgba(0,140,255,0.1);
  border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: var(--blue-primary);
  flex-shrink: 0;
}
.detail-meta { flex: 1; }
.detail-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; }

/* =========================================================
   PROGRESS / LOADING BAR
   ========================================================= */
.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-primary), var(--cyan-neon));
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* =========================================================
   WHATSAPP BUTTON
   ========================================================= */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  width: 100%;
  justify-content: center;
}
.whatsapp-btn:hover {
  background: #20BA58;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  transform: translateY(-1px);
}
.whatsapp-icon { font-size: 20px; }
