/* domain.mycoach.ing - Domain Finder */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: #f5f7ff;
  color: #1f2937;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  position: relative;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: #4338ca;
  text-decoration: none;
}
.logo span { color: #10b981; }

nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #4b5563;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  transition: .2s;
}
.nav-link:hover { background: #eef2ff; color: #4338ca; }

.user-badge { font-weight: 600; color: #1f2937; cursor: default; }
.tier-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: #eef2ff;
  color: #4338ca;
  margin-left: 4px;
}
.tier-pro, .tier-agency, .tier-enterprise { background: #f0fdf4; color: #166534; }

.mobile-menu { display: none; border: none; background: none; cursor: pointer; padding: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: white; }
.btn-outline { background: white; border: 1px solid #d1d5db; color: #374151; }
.btn-white { background: white; color: #4338ca; font-weight: 700; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 16px; }
.full { width: 100%; }

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 40px;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.1;
  margin-bottom: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, #1f2937, #4338ca);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  max-width: 600px;
  margin: 0 auto 28px;
  color: #6b7280;
  font-size: 18px;
}

/* Search box */
.search-box {
  background: white;
  padding: 14px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(79,70,229,.1);
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 860px;
  margin: 0 auto 18px;
  flex-wrap: wrap;
}
.search-box input {
  flex: 1;
  min-width: 220px;
  border: none;
  background: #f3f4f6;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 16px;
  outline: none;
}
.search-box input:focus { background: #eef2ff; }
.search-box select {
  border: 1px solid #e5e7eb;
  background: white;
  padding: 14px;
  border-radius: 14px;
  color: #374151;
  font-size: 14px;
  cursor: pointer;
}

/* Chips */
.chips {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.chips-left { justify-content: flex-start; }
.chips-wrap { max-height: 400px; overflow-y: auto; }

.chip {
  background: white;
  border: 1.5px solid #dbe2ff;
  color: #4f46e5;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: .2s;
}
.chip:hover { background: #eef2ff; }
.chip.active { background: #4f46e5; color: white; border-color: #4f46e5; }
.chip-more { background: #f3f4f6; color: #6b7280; border-color: #d1d5db; }

.search-meta {
  font-size: 13px;
  color: #9ca3af;
}
.search-meta a { color: #4f46e5; text-decoration: none; font-weight: 600; }

/* Results */
.results {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 60px;
}

.card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,.05);
}
.card-locked { opacity: .7; }

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.results-header h3 { font-size: 18px; }

.results-filters {
  display: flex;
  gap: 6px;
}
.filter {
  padding: 6px 14px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: .2s;
}
.filter.active, .filter:hover { background: #eef2ff; color: #4338ca; }

/* Domain rows */
.domain-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
  gap: 16px;
}
.domain-row:last-child { border-bottom: none; }

.domain-name { font-size: 20px; font-weight: 700; color: #111827; }
.domain-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.badge.available { background: #dcfce7; color: #166534; }
.badge.premium { background: #fef3c7; color: #92400e; }
.badge.taken { background: #f3f4f6; color: #6b7280; }
.badge.expiring { background: #ede9fe; color: #6d28d9; }
.badge.error { background: #fee2e2; color: #991b1b; }

.score { color: #9ca3af; font-size: 13px; }
.actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-box {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  border-radius: 20px;
  padding: 24px;
}
.sidebar-box h3 { margin-bottom: 10px; font-size: 20px; }
.sidebar-box p { color: rgba(255,255,255,.85); margin-bottom: 14px; font-size: 14px; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 28px; font-weight: 800; }
.stat-label { font-size: 12px; color: #9ca3af; text-transform: uppercase; }
.text-green { color: #16a34a; }
.text-gray { color: #9ca3af; }
.text-purple { color: #7c3aed; }

/* Loading */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px;
  color: #6b7280;
}
.spinner {
  width: 24px; height: 24px;
  border: 3px solid #e5e7eb;
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.spinner-sm {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.limit-msg {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
  font-size: 15px;
}

/* Pricing */
.pricing-section { margin-bottom: 60px; }
.section-title { text-align: center; font-size: 36px; font-weight: 800; margin-bottom: 10px; }
.section-subtitle { text-align: center; color: #6b7280; margin-bottom: 36px; font-size: 16px; }

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.plan {
  background: white;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(0,0,0,.05);
  border: 2px solid transparent;
  position: relative;
}
.plan.featured { border-color: #4f46e5; transform: translateY(-6px); }
.plan.current { border-color: #10b981; }
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #4f46e5;
  color: white;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.plan h3 { font-size: 22px; margin-bottom: 8px; }
.price { font-size: 38px; font-weight: 800; margin-bottom: 18px; }
.price span { font-size: 15px; color: #6b7280; font-weight: 500; }
.plan ul { list-style: none; margin-bottom: 20px; }
.plan li { padding: 8px 0; color: #4b5563; border-bottom: 1px solid #f1f5f9; font-size: 14px; padding-left: 24px; position: relative; }
.plan li.check::before { content: '\2713'; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.plan li.x::before { content: '\2717'; position: absolute; left: 0; color: #d1d5db; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}
.modal {
  background: white;
  border-radius: 24px;
  padding: 36px;
  width: 420px;
  max-width: 95vw;
  position: relative;
  animation: slideUp .2s ease;
}
.modal-lg { width: 640px; }
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: none;
  background: none;
  font-size: 28px;
  cursor: pointer;
  color: #9ca3af;
  line-height: 1;
}
.modal h2 { margin-bottom: 6px; font-size: 24px; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; justify-content: flex-end; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  margin-top: 12px;
  outline: none;
}
.input:focus { border-color: #4f46e5; }

.error-msg {
  background: #fef2f2;
  color: #991b1b;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-top: 12px;
}

.text-muted { color: #6b7280; font-size: 14px; }
.text-center { text-align: center; }
.mt-12 { margin-top: 12px; }

/* Footer */
footer {
  text-align: center;
  padding: 24px;
  color: #9ca3af;
  font-size: 14px;
  border-top: 1px solid #e5e7eb;
}
footer a { color: #4f46e5; text-decoration: none; }

/* Responsive */
@media (max-width: 900px) {
  .results, .pricing { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .plan.featured { transform: none; }
  nav { display: none; }
  header.nav-open nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    z-index: 100;
  }
  .mobile-menu { display: block; }
  .domain-row { flex-direction: column; align-items: flex-start; }
  .actions { width: 100%; }
}
