/* ============================================
   MYPEAS Agency Dashboard Styles
   ============================================ */

:root {
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --secondary-color: #64748b;
  --success-color: #22c55e;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-gray: #f1f5f9;
  --border-color: #e2e8f0;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo {
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: 3rem;
  flex: 1;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
}

/* User Menu & Avatar */
.nav-user {
  position: relative;
}

.nav-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.nav-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.nav-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 1rem;
}

.dropdown-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.dropdown-email {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 0.125rem;
  word-break: break-all;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
  text-align: left;
}

.dropdown-item:hover {
  background: var(--bg-light);
}

.dropdown-icon {
  font-size: 1rem;
  opacity: 0.7;
}

.dropdown-logout {
  color: var(--danger-color);
}

.dropdown-logout:hover {
  background: #fef2f2;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--border-radius);
}

.nav-hamburger:hover {
  background: var(--bg-light);
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile-menu {
  display: none;
  background: var(--bg-white);
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.5rem 1.5rem;
}

.nav-mobile-menu.show {
  display: block;
}

.mobile-link {
  display: block;
  width: 100%;
  padding: 0.875rem 0;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

.mobile-link:hover {
  color: var(--primary-color);
}

.mobile-link.active {
  color: var(--primary-color);
}

.mobile-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.5rem 0;
}

.mobile-user-info {
  padding: 0.75rem 0;
}

.mobile-user-name {
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-user-email {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.mobile-logout {
  color: var(--danger-color);
}

/* ============================================
   Main Content
   ============================================ */

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  min-height: calc(100vh - 64px - 300px);
}

/* ============================================
   Dashboard States
   ============================================ */

.dashboard-state {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Loading State */
#state-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.loading-spinner {
  animation: spin 1s linear infinite;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================
   Login Card
   ============================================ */

.login-card {
  max-width: 420px;
  margin: 2rem auto;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-lg);
  padding: 2.5rem;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: var(--text-secondary);
}

.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.login-footer p {
  margin: 0;
  color: var(--text-secondary);
}

.login-footer a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* ============================================
   Pending & Rejected Cards
   ============================================ */

.pending-card,
.rejected-card {
  max-width: 550px;
  margin: 2rem auto;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-lg);
  padding: 3rem;
  text-align: center;
}

.pending-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: #fef3c7;
  border-radius: 50%;
  color: var(--warning-color);
  margin-bottom: 1.5rem;
}

.rejected-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: #fef2f2;
  border-radius: 50%;
  color: var(--danger-color);
  margin-bottom: 1.5rem;
}

.pending-card h1,
.rejected-card h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pending-card > p,
.rejected-card > p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.pending-subtext {
  margin-bottom: 2rem !important;
}

.pending-details,
.rejected-reason {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.pending-details h4,
.rejected-reason h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.pending-details p,
.rejected-reason p {
  color: var(--text-secondary);
  margin: 0;
}

.pending-next {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  margin-bottom: 2rem;
  text-align: left;
}

.pending-next h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.pending-next ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-secondary);
}

.pending-next li {
  margin-bottom: 0.5rem;
}

.rejected-contact {
  margin-bottom: 2rem !important;
}

.rejected-contact a {
  color: var(--primary-color);
  text-decoration: none;
}

.pending-actions,
.rejected-actions {
  display: flex;
  justify-content: center;
}

/* ============================================
   Dashboard Header
   ============================================ */

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.header-content h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.company-name {
  color: var(--text-secondary);
  margin: 0;
}

.header-stats {
  display: flex;
  gap: 1rem;
}

.stat-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 100px;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   Dashboard Tabs
   ============================================ */

.dashboard-tabs {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 0.5rem;
  margin-bottom: 2rem;
}

.tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  background: none;
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.tab:hover {
  background: var(--bg-light);
  color: var(--text-primary);
}

.tab.active {
  background: var(--primary-color);
  color: white;
}

.tab.active:hover {
  background: var(--primary-hover);
}

.tab svg {
  flex-shrink: 0;
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--bg-gray);
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.tab.active .tab-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* ============================================
   Tab Content
   ============================================ */

.tab-content {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* ============================================
   Leads List
   ============================================ */

.leads-header {
  margin-bottom: 1.5rem;
}

.leads-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.leads-header p {
  color: var(--text-secondary);
  margin: 0;
}

.leads-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem;
  color: var(--text-secondary);
}

.leads-empty {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}

.leads-empty svg {
  margin-bottom: 1rem;
  color: #cbd5e1;
}

.leads-empty h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.leads-empty p {
  margin: 0;
}

.leads-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Lead Card */
.lead-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: all 0.2s;
}

.lead-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--box-shadow);
}

.lead-score {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
}

.lead-info {
  flex: 1;
  min-width: 0;
}

.lead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.lead-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: var(--bg-gray);
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.lead-tag.interest {
  background: #dbeafe;
  color: #1d4ed8;
}

.lead-tag.budget {
  background: #dcfce7;
  color: #15803d;
}

.lead-tag.country {
  background: #f3e8ff;
  color: #7c3aed;
}

.lead-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.lead-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.lead-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.lead-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Lead Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge.claimed {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-badge.contacted {
  background: #fef3c7;
  color: #b45309;
}

.status-badge.converted {
  background: #dcfce7;
  color: #15803d;
}

.status-badge.closed {
  background: var(--bg-gray);
  color: var(--text-secondary);
}

/* Lead Contact Details (for claimed leads) */
.lead-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.contact-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-item svg {
  flex-shrink: 0;
  color: var(--text-secondary);
}

/* ============================================
   Profile Section
   ============================================ */

.profile-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.profile-section > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 1rem;
}

.form-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* ============================================
   Form Elements
   ============================================ */

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
  background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder {
  color: #94a3b8;
}

.field-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.375rem;
}

.field-error {
  display: block;
  font-size: 0.8rem;
  color: var(--danger-color);
  margin-top: 0.375rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Input with prefix */
.input-with-prefix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.input-with-prefix input {
  padding-left: 2rem;
}

/* Input with toggle (password) */
.input-with-toggle {
  position: relative;
}

.input-with-toggle input {
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.25rem;
  display: flex;
}

.password-toggle:hover {
  color: var(--text-primary);
}

/* Budget range */
.budget-range {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.form-group-inline {
  flex: 1;
}

.form-group-inline label {
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.range-separator {
  color: var(--text-secondary);
  padding-bottom: 0.875rem;
  font-weight: 500;
}

/* Checkbox grid */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.checkbox-simple {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s;
}

.checkbox-simple:hover {
  border-color: var(--primary-color);
}

.checkbox-simple input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

.checkbox-simple input:checked + .checkbox-label {
  color: var(--primary-color);
  font-weight: 600;
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* Form actions */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Form banners */
.form-error-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  color: var(--danger-color);
}

.form-error-banner svg {
  flex-shrink: 0;
}

.form-success-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  color: #15803d;
}

.form-success-banner svg {
  flex-shrink: 0;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-primary:disabled {
  background: #a5b4fc;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--bg-gray);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-light);
  border-color: #cbd5e1;
}

.btn-success {
  background: var(--success-color);
  color: white;
}

.btn-success:hover {
  background: #16a34a;
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-outline:hover {
  background: #f5f3ff;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

.btn-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spinner {
  animation: spin 1s linear infinite;
}

/* ============================================
   Modal
   ============================================ */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.25rem;
  border-radius: var(--border-radius);
}

.modal-close:hover {
  background: var(--bg-light);
  color: var(--text-primary);
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.modal-header p {
  color: var(--text-secondary);
  margin: 0;
}

.modal-body {
  margin-bottom: 1.5rem;
}

.modal-field {
  margin-bottom: 1rem;
}

.modal-field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.modal-field-value {
  font-size: 1rem;
  color: var(--text-primary);
}

.modal-field-value a {
  color: var(--primary-color);
  text-decoration: none;
}

.modal-field-value a:hover {
  text-decoration: underline;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: #1e293b;
  color: white;
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  padding-right: 2rem;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 40px;
}

.footer-description {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.2s;
}

.social-link:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.footer-column-title {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: white;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
}

.footer-copyright {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-user {
    display: none !important;
  }

  .nav-hamburger {
    display: flex;
  }

  .dashboard-header {
    flex-direction: column;
    gap: 1.5rem;
  }

  .header-stats {
    width: 100%;
    justify-content: space-between;
  }

  .stat-card {
    flex: 1;
    padding: 0.75rem;
    min-width: auto;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .dashboard-tabs {
    flex-direction: column;
  }

  .tab {
    justify-content: flex-start;
  }

  .tab-content {
    padding: 1.5rem;
  }

  .lead-card {
    flex-direction: column;
    gap: 1rem;
  }

  .lead-score {
    align-self: flex-start;
  }

  .lead-actions {
    flex-direction: row;
    width: 100%;
  }

  .lead-actions .btn {
    flex: 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .budget-range {
    flex-direction: column;
    gap: 0.75rem;
  }

  .range-separator {
    display: none;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    padding: 1.5rem;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .header-stats {
    flex-direction: column;
  }

  .stat-card {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .stat-value {
    font-size: 1.5rem;
    order: 2;
    margin-left: auto;
  }

  .stat-label {
    order: 1;
  }

  .lead-contact {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }
}
