/* ── Birth Chart Calculator ─────────────────────────────────────────────── */

.bcc-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 880px;
  margin: 2rem auto;
  background: #f5f3ff;
  border: 1.5px solid #c4b5fd;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(79,70,229,0.18);
  color: #1e1b4b;
  box-sizing: border-box;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.bcc__header {
  background: linear-gradient(135deg, #0f0e2a 0%, #1e1b4b 60%, #312e81 100%);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  position: relative;
  overflow: hidden;
}

.bcc__header::before {
  content: '✦ ✧ ✦ ✧ ✦';
  position: absolute;
  top: 0.6rem;
  right: 1rem;
  font-size: 0.75rem;
  color: rgba(167,139,250,0.35);
  letter-spacing: 0.5em;
}

.bcc__header::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.25) 0%, transparent 70%);
}

.bcc__logo {
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.bcc__title {
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 0.3rem;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.bcc__subtitle {
  font-size: 0.9rem;
  color: #a5b4fc;
  margin: 0;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* ── Body ────────────────────────────────────────────────────────────────── */

.bcc__body { padding: clamp(1.25rem, 4vw, 2rem); }

/* ── Error ───────────────────────────────────────────────────────────────── */

#bcc-error {
  display: none;
  padding: 0.85rem 1rem;
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: 10px;
  color: #dc2626;
  font-size: 0.93rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/* ── Form ────────────────────────────────────────────────────────────────── */

.bcc__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 580px) { .bcc__form-grid { grid-template-columns: 1fr; } }

.bcc__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bcc__field--full { grid-column: 1 / -1; }

.bcc__field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #4c1d95;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.bcc__input, .bcc__select {
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #c4b5fd;
  border-radius: 9px;
  font-size: 0.97rem;
  color: #1e1b4b;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bcc__input:focus, .bcc__select:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

.bcc__field-hint {
  font-size: 0.75rem;
  color: #7c3aed;
  opacity: 0.7;
}

.bcc__loc-hint {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: #6d28d9;
  padding: 0.65rem 0.9rem;
  background: #ede9fe;
  border-radius: 8px;
  border-left: 3px solid #7c3aed;
  line-height: 1.5;
}

/* ── Calculate button ────────────────────────────────────────────────────── */

.bcc__btn-calc {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.bcc__btn-calc:hover  { filter: brightness(1.1); }
.bcc__btn-calc:active { transform: scale(0.99); }

/* ── Results ─────────────────────────────────────────────────────────────── */

.bcc__results { display: none; }

.bcc__section-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #4c1d95;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 1.5rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── Chart title ─────────────────────────────────────────────────────────── */

#bcc-chart-title {
  font-size: clamp(1.1rem, 3.5vw, 1.4rem);
  font-weight: 900;
  color: #1e1b4b;
  text-align: center;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

/* ── Big 3 ───────────────────────────────────────────────────────────────── */

.bcc__big3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 560px) { .bcc__big3 { grid-template-columns: 1fr; } }

.bcc__big3-card {
  background: #13111f;
  border: 2px solid #4f46e5;
  border-radius: 14px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color 0.2s;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bcc__big3-sym {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.bcc__big3-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: #a5b4fc;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}

.bcc__big3-sign-icon {
  font-size: 2.5rem;
  line-height: 1;
  display: block;
  margin-bottom: 0.35rem;
}

.bcc__big3-sign-name {
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 0.3rem;
}

.bcc__big3-meta {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.bcc__big3-desc {
  font-size: 0.82rem;
  color: #c4b5fd;
  line-height: 1.6;
  text-align: left;
}

.bcc__big3-unknown {
  color: #6366f1;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  padding: 1.5rem 0.5rem;
  height: 100%;
  justify-content: center;
}

.bcc__big3-unknown span { font-weight: 700; color: #818cf8; }
.bcc__big3-unknown small { color: #6366f1; font-size: 0.78rem; line-height: 1.5; }

/* ── Chart + Table layout ────────────────────────────────────────────────── */

.bcc__chart-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .bcc__chart-layout { grid-template-columns: 1fr; }
}

.bcc__svg-wrap {
  background: #0f0e2a;
  border: 1.5px solid #4f46e5;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#bcc-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Planet table ────────────────────────────────────────────────────────── */

.bcc__planet-table {
  background: #ede9fe;
  border: 1.5px solid #c4b5fd;
  border-radius: 12px;
  overflow: hidden;
}

.bcc__planet-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid #d8b4fe;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.bcc__planet-row:last-child { border-bottom: none; }
.bcc__planet-row:nth-child(even) { background: #f5f3ff; }

.bcc__planet-name {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: #1e1b4b;
  white-space: nowrap;
}

.bcc__planet-sym {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.bcc__sign-pill {
  padding: 0.18rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.bcc__planet-deg {
  font-size: 0.82rem;
  color: #6d28d9;
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
}

.bcc__planet-elem {
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

/* ── Element bars ────────────────────────────────────────────────────────── */

.bcc__element-bars {
  background: #ede9fe;
  border: 1.5px solid #c4b5fd;
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.bcc__elem-row {
  display: grid;
  grid-template-columns: 100px 1fr 80px;
  align-items: center;
  gap: 0.75rem;
}

.bcc__elem-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #1e1b4b;
}

.bcc__elem-bar-wrap {
  height: 10px;
  background: #d8b4fe;
  border-radius: 5px;
  overflow: hidden;
}

.bcc__elem-bar {
  height: 100%;
  border-radius: 5px;
  transition: width 0.7s ease;
  width: 0%;
}

.bcc__elem-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: #6d28d9;
  text-align: right;
}

/* ── Info box ────────────────────────────────────────────────────────────── */

.bcc__info {
  margin-top: 0.5rem;
  padding: 1.1rem 1.2rem;
  background: #ede9fe;
  border-radius: 10px;
  border-left: 4px solid #7c3aed;
  font-size: 0.91rem;
  color: #4c1d95;
  line-height: 1.75;
}

.bcc__info strong { color: #1e1b4b; }
