/* ========== SERVICES PAGE PREMIUM STYLES ========== */

/* Hero header */
.srv-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 50%, #6d28d9 100%);
  border-radius: 20px;
  padding: 48px 40px 42px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.srv-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(251,191,36,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.srv-hero::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 30%;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(167,139,250,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.srv-hero-title {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
}
.srv-hero-title span {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.srv-hero-sub {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Search & filter bar */
.srv-controls {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}
.srv-search-wrap, .srv-filter-wrap {
  position: relative;
  flex: 1;
}
.srv-search-wrap i, .srv-filter-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  z-index: 2;
  pointer-events: none;
}
.srv-search, .srv-filter {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.srv-search::placeholder { color: rgba(255,255,255,0.4); }
.srv-search:focus, .srv-filter:focus {
  outline: none;
  border-color: rgba(251,191,36,0.5);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(251,191,36,0.1);
}
.srv-filter {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,255,255,0.5)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.srv-filter option {
  background: #1e1b4b;
  color: #fff;
}

/* Stats bar */
.srv-stats {
  display: flex;
  gap: 32px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}
.srv-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
}
.srv-stat strong {
  color: #fbbf24;
  font-weight: 700;
  font-size: 15px;
}

/* Category cards */
.srv-category {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow 0.3s;
}
.srv-category:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.08);
}

/* Category header */
.srv-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 0.2s;
}
.srv-cat-header:hover {
  background: rgba(124,58,237,0.02);
}
.srv-cat-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.srv-cat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}
.srv-cat-icon.ic-instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.srv-cat-icon.ic-facebook { background: linear-gradient(135deg, #1877f2, #0d65d9); }
.srv-cat-icon.ic-youtube { background: linear-gradient(135deg, #ff0000, #cc0000); }
.srv-cat-icon.ic-tiktok { background: linear-gradient(135deg, #25f4ee, #000000 40%, #fe2c55); }
.srv-cat-icon.ic-twitter { background: linear-gradient(135deg, #1da1f2, #0d8ecf); }
.srv-cat-icon.ic-spotify { background: linear-gradient(135deg, #1db954, #169c46); }
.srv-cat-icon.ic-telegram { background: linear-gradient(135deg, #2aabee, #229ed9); }
.srv-cat-icon.ic-linkedin { background: linear-gradient(135deg, #0a66c2, #004182); }
.srv-cat-icon.ic-traffic { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.srv-cat-icon.ic-other { background: linear-gradient(135deg, #f59e0b, #d97706); }

.srv-cat-name {
  font-size: 16px;
  font-weight: 700;
  color: #1e1b4b;
  margin: 0;
}
.srv-cat-count {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
  margin-top: 2px;
}
.srv-cat-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.srv-cat-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(124,58,237,0.08);
  color: #7c3aed;
}
.srv-cat-toggle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: #9ca3af;
  font-size: 12px;
}
.srv-cat-header:hover .srv-cat-toggle {
  background: #e5e7eb;
  color: #6b7280;
}
.srv-cat-toggle .fe { transition: transform 0.3s; }
.srv-category.collapsed .srv-cat-toggle .fe { transform: rotate(180deg); }

/* Service table inside category */
.srv-table-wrap {
  overflow-x: auto;
}
.srv-table {
  width: 100%;
  border-collapse: collapse;
}
.srv-table thead th {
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9ca3af;
  background: #fafafa;
  border-bottom: 1px solid #f3f4f6;
  white-space: nowrap;
}
.srv-table tbody tr {
  border-bottom: 1px solid #f8f9fa;
  transition: background 0.15s;
}
.srv-table tbody tr:last-child { border-bottom: none; }
.srv-table tbody tr:hover {
  background: rgba(124,58,237,0.02);
}
.srv-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: #374151;
  vertical-align: middle;
}

/* Service ID pill */
.srv-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* Service name */
.srv-name {
  font-weight: 500;
  color: #1e1b4b;
  max-width: 500px;
  line-height: 1.4;
}

/* Price */
.srv-price {
  font-weight: 700;
  color: #7c3aed;
  white-space: nowrap;
}

/* Min/Max */
.srv-minmax {
  color: #9ca3af;
  font-size: 12px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  white-space: nowrap;
}

/* Description button */
.srv-desc-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #9ca3af;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.srv-desc-btn:hover {
  border-color: #7c3aed;
  color: #7c3aed;
  background: rgba(124,58,237,0.04);
}

/* Order button */
.srv-order-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.srv-order-btn:hover {
  background: linear-gradient(135deg, #6d28d9, #5b21b6);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124,58,237,0.3);
  color: #fff;
  text-decoration: none;
}

/* Favorite icon */
.srv-fav {
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}
.srv-fav.fa-heart { color: #ef4444; }
.srv-fav.fa-heart-o { color: #d1d5db; }
.srv-fav.fa-heart-o:hover { color: #ef4444; }

/* Empty state */
.srv-empty {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
}
.srv-empty i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}
.srv-empty p {
  font-size: 15px;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .srv-hero {
    padding: 32px 20px;
    border-radius: 12px;
  }
  .srv-hero-title {
    font-size: 24px;
  }
  .srv-controls {
    flex-direction: column;
    gap: 10px;
  }
  .srv-stats {
    flex-wrap: wrap;
    gap: 16px;
  }
  .srv-cat-header {
    padding: 14px 16px;
  }
  .srv-cat-name {
    font-size: 14px;
  }
  .srv-table td {
    padding: 10px 12px;
    font-size: 12px;
  }
  .srv-name {
    max-width: 200px;
  }
}

/* Page title override */
.page .page-title {
  display: none;
}
