/* Business Profile — page styles */

.bp-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  color: var(--white, #f5f5f7);
}

.bp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.bp-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0 0 .35rem;
  letter-spacing: -0.015em;
}
.bp-subtitle {
  color: var(--muted, #a1a1aa);
  margin: 0;
  font-size: 0.95rem;
  max-width: 62ch;
}

.bp-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted, #a1a1aa);
  text-transform: uppercase;
  margin: 0 0 .9rem;
}
.bp-badge {
  display: inline-block;
  background: var(--border, #2a2a30);
  color: var(--white, #e5e5ea);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.7rem;
  margin-left: .5rem;
  letter-spacing: 0;
  text-transform: none;
}

.bp-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}
.bp-empty {
  grid-column: 1 / -1;
  background: var(--card, #17171b);
  border: 1px dashed var(--border, #2a2a30);
  border-radius: 14px;
  padding: 3rem 1.5rem;
  text-align: center;
}
.bp-empty-icon { font-size: 2.2rem; margin-bottom: .6rem; }
.bp-empty-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: .35rem;
}
.bp-empty-desc {
  color: var(--muted, #a1a1aa);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  max-width: 50ch;
  margin-left: auto; margin-right: auto;
}

.bp-card {
  background: var(--card, #17171b);
  border: 1px solid var(--border, #2a2a30);
  border-radius: 14px;
  padding: 1.1rem 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: border-color .15s ease;
}
.bp-card:hover { border-color: var(--accent, #7c3aed); }
.bp-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
}
.bp-card-name {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
}
.bp-card-geo {
  font-size: 0.72rem;
  color: var(--muted, #a1a1aa);
  background: rgba(255,255,255,0.04);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid var(--border, #2a2a30);
}
.bp-card-industry {
  font-size: 0.85rem;
  color: var(--muted, #a1a1aa);
}
.bp-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}
.bp-card-chip {
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  color: #c4b5fd;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bp-card-chip.more {
  background: rgba(255,255,255,0.04);
  border-color: var(--border, #2a2a30);
  color: var(--muted, #a1a1aa);
}
.bp-card-meta {
  display: flex;
  gap: .9rem;
  font-size: 0.75rem;
  color: var(--muted, #a1a1aa);
  margin-top: .2rem;
}
.bp-card-meta span strong { color: var(--white, #e5e5ea); font-weight: 600; }
.bp-card-actions {
  display: flex;
  gap: .5rem;
  margin-top: auto;
  padding-top: .4rem;
}
.bp-card-actions button {
  flex: 1;
  background: transparent;
  color: var(--white, #e5e5ea);
  border: 1px solid var(--border, #2a2a30);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all .12s;
}
.bp-card-actions button:hover {
  border-color: var(--accent, #7c3aed);
  color: #fff;
}
.bp-card-actions button.bp-edit {
  background: var(--accent, #7c3aed);
  border-color: var(--accent, #7c3aed);
  color: #fff;
  font-weight: 600;
}
.bp-card-actions button.bp-edit:hover { filter: brightness(1.1); }
.bp-card-actions button.bp-danger:hover {
  border-color: #ef4444;
  color: #ef4444;
}

/* Modal */
.bp-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.72);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.bp-modal-inner {
  background: var(--card, #17171b);
  border: 1px solid var(--border, #2a2a30);
  border-radius: 16px;
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.5rem;
}
.bp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.bp-modal-header h2 { margin: 0; font-size: 1.25rem; }
.bp-modal-close {
  background: transparent;
  border: none;
  color: var(--muted, #a1a1aa);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 .3rem;
}
.bp-modal-close:hover { color: #fff; }

.bp-field { margin-bottom: 1rem; }
.bp-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.bp-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--white, #e5e5ea);
}
.bp-optional {
  color: var(--muted, #a1a1aa);
  font-weight: 400;
  font-size: 0.75rem;
}
.bp-input,
.bp-select {
  width: 100%;
  background: #0d0d10;
  border: 1px solid var(--border, #2a2a30);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--white, #e5e5ea);
  font-size: 0.92rem;
  font-family: inherit;
}
.bp-input:focus,
.bp-select:focus {
  outline: none;
  border-color: var(--accent, #7c3aed);
}
textarea.bp-input { resize: vertical; min-height: 70px; }
.bp-hint {
  margin-top: .3rem;
  font-size: 0.76rem;
  color: var(--muted, #a1a1aa);
}

.bp-chip-box {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  background: #0d0d10;
  border: 1px solid var(--border, #2a2a30);
  border-radius: 8px;
  padding: 8px 10px;
  min-height: 44px;
  align-items: center;
}
.bp-chip-box:focus-within { border-color: var(--accent, #7c3aed); }
.bp-chips { display: contents; }
.bp-chip {
  background: rgba(124,58,237,0.14);
  border: 1px solid rgba(124,58,237,0.35);
  color: #c4b5fd;
  padding: 3px 4px 3px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  overflow: hidden;
}
.bp-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.bp-chip button {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 4px;
  opacity: 0.7;
}
.bp-chip button:hover { opacity: 1; }
.bp-chip-input {
  flex: 1;
  min-width: 140px;
  background: transparent;
  border: none;
  color: var(--white, #e5e5ea);
  font-size: 0.9rem;
  font-family: inherit;
  padding: 2px 4px;
  outline: none;
}

.bp-form-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.4);
  color: #fca5a5;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.86rem;
  margin: .5rem 0 1rem;
}
.bp-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
  margin-top: 1.25rem;
}
.bp-modal-actions button { padding: 9px 18px; font-size: 0.88rem; }

@media (max-width: 720px) {
  .bp-field-row  { grid-template-columns: 1fr; }
  .bp-header { flex-direction: column; align-items: stretch; }
}
