/* ============================================
   SeuElo - Main Stylesheet
   Brand: #4F46E5 (primary) / #7C3AED (accent)
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --primary-light: #818CF8;
  --accent: #7C3AED;
  --accent-light: #A78BFA;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
  --dark: #1E1B4B;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
  --radius: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: all 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 1rem; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 1rem; }

/* --- Navbar --- */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--gray-200);
}
.navbar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}
.navbar-brand .brand-icon { font-size: 1.75rem; }
.navbar-brand span.accent { color: var(--accent); }

.navbar-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.navbar-search input {
  width: 100%;
  padding: 0.625rem 1rem 0.625rem 2.75rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 2rem;
  font-size: 0.9rem;
  background: var(--gray-50);
  transition: var(--transition);
  outline: none;
}
.navbar-search input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.navbar-search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 1rem;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.navbar-nav a {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  color: var(--gray-600);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.navbar-nav a:hover {
  background: var(--gray-100);
  color: var(--primary);
}
.navbar-nav .btn { padding: 0.5rem 1rem; }

.user-menu {
  position: relative;
}
.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 2rem;
  background: var(--gray-100);
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid var(--gray-200);
}
.user-menu-btn:hover { background: var(--gray-200); }
.user-menu-btn img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.user-menu-btn .user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
}
.dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  color: var(--gray-700);
  font-size: 0.875rem;
  border-radius: 0;
}
.dropdown-menu a:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.dropdown-menu a:last-child  { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.dropdown-menu a:hover { background: var(--gray-50); color: var(--primary); }
.dropdown-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 0.25rem 0;
}

.notif-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 1.125rem;
  transition: var(--transition);
}
.notif-btn:hover { background: var(--gray-200); color: var(--primary); }
.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--danger);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Flash Messages --- */
.flash-container { padding: 0; }
.alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-left: 4px solid;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.alert-success { background: #ECFDF5; border-color: var(--success); color: #065F46; }
.alert-error   { background: #FEF2F2; border-color: var(--danger);  color: #991B1B; }
.alert-warning { background: #FFFBEB; border-color: var(--warning); color: #92400E; }
.alert-info    { background: #EFF6FF; border-color: var(--info);    color: #1E40AF; }
.alert-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
  opacity: 0.6;
  transition: var(--transition);
}
.alert-close:hover { opacity: 1; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: #6D28D9;
  border-color: #6D28D9;
  color: var(--white);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border-color: var(--gray-200);
}
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-800); }
.btn-success { background: var(--success); color: var(--white); border-color: var(--success); }
.btn-success:hover { background: #059669; border-color: #059669; color: var(--white); }
.btn-danger  { background: var(--danger);  color: var(--white); border-color: var(--danger); }
.btn-danger:hover  { background: #DC2626; border-color: #DC2626; color: var(--white); }
.btn-warning { background: var(--warning); color: var(--white); border-color: var(--warning); }
.btn-warning:hover { background: #D97706; color: var(--white); }
.btn-whatsapp { background: #25D366; color: var(--white); border-color: #25D366; }
.btn-whatsapp:hover { background: #128C7E; border-color: #128C7E; color: var(--white); }
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.8rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-xl { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { padding: 1.5rem; }
.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-800);
}
.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 40%, #4F46E5 70%, #7C3AED 100%);
  padding: 5rem 1rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.3) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(79,70,229,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 0.375rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.2);
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.hero h1 .highlight {
  color: #FCD34D;
  display: block;
}
.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}
.hero-search {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 0.5rem;
  display: flex;
  gap: 0.5rem;
  max-width: 640px;
  margin: 0 auto 2rem;
  box-shadow: var(--shadow-xl);
}
.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--gray-800);
  border-radius: var(--radius-lg);
  background: transparent;
}
.hero-search input::placeholder { color: var(--gray-400); }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255,255,255,0.9);
}
.hero-stat .number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}
.hero-stat .label { font-size: 0.8rem; opacity: 0.8; }

/* --- Section --- */
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-lg { padding: 6rem 0; }
.section-dark { background: var(--dark); color: var(--white); }
.section-gray { background: var(--gray-50); }
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--gray-500); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.section-tag {
  display: inline-block;
  background: rgba(79,70,229,0.1);
  color: var(--primary);
  padding: 0.25rem 0.875rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

/* --- Category Grid --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  padding: 1.25rem 0.75rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-200);
  text-decoration: none;
  transition: var(--transition);
  text-align: center;
  cursor: pointer;
}
.category-card:hover {
  border-color: var(--primary);
  background: rgba(79,70,229,0.04);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.category-card .cat-icon {
  font-size: 2rem;
  line-height: 1;
}
.category-card .cat-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-700);
  line-height: 1.2;
}
.category-card .cat-count {
  font-size: 0.7rem;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: 0.125rem 0.5rem;
  border-radius: 1rem;
}

/* --- Professional Cards --- */
.prof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.prof-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
}
.prof-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.prof-card-header {
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.prof-avatar {
  position: relative;
  flex-shrink: 0;
}
.prof-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gray-200);
}
.prof-avatar .online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: var(--success);
  border-radius: 50%;
  border: 2px solid var(--white);
}
.prof-info { flex: 1; min-width: 0; }
.prof-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prof-cats {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 0.375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prof-location {
  font-size: 0.78rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.prof-card-body { padding: 0 1.25rem 1rem; flex: 1; }
.prof-desc {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prof-card-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.prof-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.prof-rating .stars { color: #FBBF24; font-size: 0.9rem; letter-spacing: -1px; }
.prof-rating .score { font-weight: 700; font-size: 0.85rem; color: var(--gray-700); }
.prof-rating .count { font-size: 0.75rem; color: var(--gray-400); }
.prof-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}
.prof-price span { font-weight: 400; color: var(--gray-400); font-size: 0.75rem; }

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-top      { background: linear-gradient(135deg, #FEF3C7, #FCD34D); color: #92400E; }
.badge-premium  { background: linear-gradient(135deg, #EDE9FE, #C4B5FD); color: #5B21B6; }
.badge-verificado { background: linear-gradient(135deg, #D1FAE5, #6EE7B7); color: #065F46; }
.badge-success  { background: #D1FAE5; color: #065F46; }
.badge-warning  { background: #FEF3C7; color: #92400E; }
.badge-danger   { background: #FEE2E2; color: #991B1B; }
.badge-info     { background: #DBEAFE; color: #1E40AF; }
.badge-gray     { background: var(--gray-100); color: var(--gray-600); }
.badge-primary  { background: rgba(79,70,229,0.1); color: var(--primary); }

/* --- Stars --- */
.stars { color: #FBBF24; letter-spacing: -1px; }
.star.filled { color: #FBBF24; }
.star.half   { color: #FBBF24; opacity: 0.6; }
.star.empty  { color: var(--gray-300); }

/* --- Forms --- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.375rem;
}
.form-label .required { color: var(--danger); margin-left: 0.125rem; }
.form-control {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.form-control::placeholder { color: var(--gray-400); }
.form-control:disabled {
  background: var(--gray-50);
  color: var(--gray-400);
  cursor: not-allowed;
}
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-hint {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 0.375rem;
}
.form-error {
  font-size: 0.78rem;
  color: var(--danger);
  margin-top: 0.375rem;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.input-group {
  display: flex;
  align-items: stretch;
}
.input-group .form-control {
  border-radius: var(--radius) 0 0 var(--radius);
  border-right: none;
}
.input-group-append {
  display: flex;
  align-items: center;
}
.input-group-append .btn {
  border-radius: 0 var(--radius) var(--radius) 0;
}
.input-prefix {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-300);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 0.9rem;
  color: var(--gray-500);
}
.input-prefix + .form-control {
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Checkboxes / Radio */
.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--gray-700);
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}
.cat-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cat-checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  border-radius: 2rem;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition);
  user-select: none;
}
.cat-checkbox-item:hover { border-color: var(--primary); background: rgba(79,70,229,0.05); }
.cat-checkbox-item input { display: none; }
.cat-checkbox-item.checked { border-color: var(--primary); background: rgba(79,70,229,0.1); color: var(--primary); }

/* --- Filters / Search Bar --- */
.search-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.search-bar-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-end;
}
.search-bar-row .form-group { margin-bottom: 0; flex: 1; min-width: 160px; }
.filter-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-100);
}
.filter-tag {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: rgba(79,70,229,0.1);
  color: var(--primary);
  border-radius: 2rem;
  font-size: 0.78rem;
  font-weight: 600;
}
.filter-tag .remove {
  cursor: pointer;
  opacity: 0.7;
  font-size: 0.875rem;
}
.filter-tag .remove:hover { opacity: 1; }

/* --- Pagination --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.page-item a,
.page-item span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.625rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  transition: var(--transition);
}
.page-item a:hover { border-color: var(--primary); color: var(--primary); background: rgba(79,70,229,0.05); }
.page-item.active span { background: var(--primary); color: var(--white); border-color: var(--primary); }
.page-item.disabled span { opacity: 0.4; cursor: not-allowed; }

/* --- Profile Page --- */
.profile-hero {
  background: linear-gradient(135deg, #1E1B4B, #4F46E5);
  padding: 2.5rem 0;
  color: var(--white);
}
.profile-hero-inner {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.profile-avatar {
  position: relative;
  flex-shrink: 0;
}
.profile-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.profile-avatar .verify-icon {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: var(--success);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  border: 2px solid var(--white);
}
.profile-main-info { flex: 1; min-width: 0; }
.profile-main-info h1 { color: var(--white); font-size: 1.75rem; margin-bottom: 0.375rem; }
.profile-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  opacity: 0.9;
}
.profile-meta span { display: flex; align-items: center; gap: 0.25rem; }
.profile-rating-big {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.profile-rating-big .score {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}
.profile-rating-big .details { font-size: 0.8rem; opacity: 0.8; }
.profile-rating-big .stars-big { font-size: 1.25rem; color: #FCD34D; letter-spacing: -1px; }

/* --- Review / Avaliacao --- */
.avaliacao-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.avaliacao-item:last-child { border-bottom: none; }
.avaliacao-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.avaliacao-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.avaliacao-name { font-weight: 600; font-size: 0.9rem; }
.avaliacao-date { font-size: 0.75rem; color: var(--gray-400); margin-top: 0.125rem; }
.avaliacao-body { font-size: 0.875rem; color: var(--gray-600); line-height: 1.5; }
.avaliacao-resposta {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(79,70,229,0.05);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.85rem;
  color: var(--gray-600);
}
.avaliacao-resposta strong { color: var(--primary); }

/* --- Star Rating Input --- */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  gap: 0.25rem;
}
.star-rating input { display: none; }
.star-rating label {
  font-size: 2rem;
  color: var(--gray-300);
  cursor: pointer;
  transition: var(--transition);
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label { color: #FBBF24; }

/* --- Portfolios --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--gray-100);
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 1rem 0.75rem 0.625rem;
  opacity: 0;
  transition: var(--transition);
}
.portfolio-item:hover .portfolio-item-overlay { opacity: 1; }
.portfolio-item-overlay p { color: var(--white); font-size: 0.75rem; margin: 0; }
.portfolio-remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--danger);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.portfolio-item:hover .portfolio-remove { opacity: 1; }

/* --- Dashboard --- */
.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stat-card.success { border-color: var(--success); }
.stat-card.warning { border-color: var(--warning); }
.stat-card.danger  { border-color: var(--danger); }
.stat-card.info    { border-color: var(--info); }
.stat-icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79,70,229,0.1);
  flex-shrink: 0;
}
.stat-card.success .stat-icon { background: rgba(16,185,129,0.1); }
.stat-card.warning .stat-icon { background: rgba(245,158,11,0.1); }
.stat-card.danger  .stat-icon { background: rgba(239,68,68,0.1); }
.stat-card.info    .stat-icon { background: rgba(59,130,246,0.1); }
.stat-number { font-size: 1.75rem; font-weight: 800; color: var(--gray-900); line-height: 1; }
.stat-label  { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.25rem; }

/* --- Chat --- */
.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  height: calc(100vh - 120px);
  min-height: 500px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.chat-sidebar {
  border-right: 1px solid var(--gray-200);
  overflow-y: auto;
  background: var(--gray-50);
}
.chat-sidebar-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  font-weight: 700;
  font-size: 1rem;
  background: var(--white);
}
.conversation-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}
.conversation-item:hover { background: rgba(79,70,229,0.05); }
.conversation-item.active { background: rgba(79,70,229,0.08); border-right: 3px solid var(--primary); }
.conversation-item img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.conversation-info { flex: 1; min-width: 0; }
.conversation-name { font-weight: 600; font-size: 0.875rem; }
.conversation-preview { font-size: 0.78rem; color: var(--gray-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-meta { text-align: right; flex-shrink: 0; }
.conversation-time { font-size: 0.7rem; color: var(--gray-400); }
.unread-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  margin-left: auto;
  margin-top: 0.375rem;
}

.chat-main { display: flex; flex-direction: column; }
.chat-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
}
.chat-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.chat-header .chat-user-name { font-weight: 700; }
.chat-header .chat-user-status { font-size: 0.75rem; color: var(--success); }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  background: #FAFAFA;
}
.message {
  display: flex;
  gap: 0.5rem;
  max-width: 75%;
  align-items: flex-end;
}
.message.mine { align-self: flex-end; flex-direction: row-reverse; }
.message img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  align-self: flex-end;
}
.message-bubble {
  padding: 0.625rem 0.875rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 100%;
  word-break: break-word;
}
.message.mine .message-bubble {
  background: var(--primary);
  color: var(--white);
  border-bottom-right-radius: 0.25rem;
}
.message:not(.mine) .message-bubble {
  background: var(--white);
  color: var(--gray-800);
  border-bottom-left-radius: 0.25rem;
  box-shadow: var(--shadow-sm);
}
.message-time { font-size: 0.68rem; color: var(--gray-400); margin-top: 0.25rem; text-align: right; }
.message.mine .message-time { color: rgba(255,255,255,0.7); }

.chat-input-area {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}
.chat-input-form {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}
.chat-input-form textarea {
  flex: 1;
  border: 1.5px solid var(--gray-200);
  border-radius: 1.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.9rem;
  resize: none;
  max-height: 120px;
  min-height: 44px;
  font-family: var(--font);
  transition: var(--transition);
  outline: none;
}
.chat-input-form textarea:focus { border-color: var(--primary); }
.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.chat-send-btn:hover { background: var(--primary-dark); transform: scale(1.05); }

/* --- Plans --- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}
.plan-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 2px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.15), var(--shadow-lg);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  padding: 0.25rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.plan-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.plan-price { margin: 1.25rem 0; }
.plan-price .amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}
.plan-price .period { font-size: 0.875rem; color: var(--gray-400); }
.plan-features { margin: 1.25rem 0; }
.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-50);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features .check { color: var(--success); font-weight: 700; }
.plan-features .cross { color: var(--gray-300); }

/* --- Notification items --- */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem;
  border-radius: var(--radius);
  transition: var(--transition);
  border-bottom: 1px solid var(--gray-100);
}
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: rgba(79,70,229,0.04); }
.notif-item:hover { background: var(--gray-50); }
.notif-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.notif-icon.mensagem    { background: rgba(59,130,246,0.1); }
.notif-icon.avaliacao   { background: rgba(245,158,11,0.1); }
.notif-icon.visualizacao{ background: rgba(79,70,229,0.1); }
.notif-icon.sistema     { background: rgba(107,114,128,0.1); }
.notif-icon.pagamento   { background: rgba(16,185,129,0.1); }
.notif-content { flex: 1; min-width: 0; }
.notif-title { font-weight: 600; font-size: 0.875rem; color: var(--gray-800); }
.notif-msg   { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.125rem; }
.notif-time  { font-size: 0.72rem; color: var(--gray-400); margin-top: 0.25rem; }

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand { color: var(--white); }
.footer-brand .brand-name {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  opacity: 0.75;
  margin-bottom: 1rem;
}
.footer-social {
  display: flex;
  gap: 0.625rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: var(--white); }
.footer-col h4 { color: var(--white); font-size: 0.875rem; margin-bottom: 1rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  display: block;
  padding: 0.25rem 0;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--white); padding-left: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* --- Toast --- */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  background: var(--gray-900);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  animation: slideIn 0.3s ease;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error   { border-left: 4px solid var(--danger); }
.toast.info    { border-left: 4px solid var(--info); }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(100%); opacity: 0; }
}

/* --- Loading / Spinner --- */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Misc --- */
.divider {
  height: 1px;
  background: var(--gray-200);
  margin: 1.5rem 0;
}
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--gray-400); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-sm      { font-size: 0.85rem; }
.text-xs      { font-size: 0.75rem; }
.font-bold    { font-weight: 700; }
.font-semibold{ font-weight: 600; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.p-4  { padding: 1rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-400);
}
.empty-state .empty-icon { font-size: 4rem; display: block; margin-bottom: 1rem; }
.empty-state h3 { color: var(--gray-500); margin-bottom: 0.5rem; }
.empty-state p  { font-size: 0.9rem; }

.avatar-upload-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gray-200);
}
.upload-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-400);
}
.upload-zone:hover { border-color: var(--primary); color: var(--primary); background: rgba(79,70,229,0.04); }
.upload-zone.dragover { border-color: var(--primary); background: rgba(79,70,229,0.08); }

.sticky-sidebar {
  position: sticky;
  top: 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--gray-300); }

/* Responsive */
@media (max-width: 1024px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .chat-layout { grid-template-columns: 260px 1fr; }
}

@media (max-width: 768px) {
  .navbar-search { display: none; }
  .navbar-nav a span { display: none; }
  .hamburger { display: flex; }
  .nav-collapse { display: none; }
  .nav-collapse.open { display: flex; flex-direction: column; position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: var(--white); z-index: 999; padding: 1.5rem; gap: 0.5rem; }

  .hero { padding: 3rem 1rem 2.5rem; }
  .hero-search { flex-direction: column; border-radius: var(--radius-lg); }
  .hero-stats { gap: 1.25rem; }

  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.75rem; }
  .prof-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .profile-hero-inner { flex-direction: column; gap: 1rem; }
  .profile-rating-big { width: 100%; }
  .chat-layout { grid-template-columns: 1fr; height: auto; }
  .chat-sidebar { height: 250px; }
  .chat-messages { height: 350px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 0.75rem; }
}
