.bpc-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-top: 8px solid #0ea5e9;
}

.bpc-card:not(.bpc-boy) {
  border-top-color: #0d9488;
}

.theme-dark .bpc-card {
  background: #0f172a;
  border-color: #1e293b;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.bpc-main {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.bpc-left {
  background: #f8fafc;
  padding: 40px;
  border-right: 1px solid #e2e8f0;
}

.theme-dark .bpc-left {
  background: #1e293b;
  border-right-color: #334155;
}

.bpc-right {
  background: #fff;
  padding: 40px;
}

.theme-dark .bpc-right {
  background: #0f172a;
}

.bpc-section-marker {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #475569;
  margin-bottom: 32px;
}

.theme-dark .bpc-section-marker {
  color: #94a3b8;
}

.bpc-input-group {
  margin-bottom: 24px;
}

.bpc-input-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.theme-dark .bpc-input-label {
  color: #f8fafc;
}

.bpc-sex-selector {
  display: flex;
  gap: 8px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 14px;
}

.theme-dark .bpc-sex-selector {
  background: #334155;
}

.bpc-sex-btn {
  flex: 1;
  padding: 12px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bpc-sex-btn.bpc-active {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.theme-dark .bpc-sex-btn.bpc-active {
  background: #0f172a;
}

.bpc-boy .bpc-sex-btn[data-sex="boy"].bpc-active {
  color: #0ea5e9;
}

.bpc-card:not(.bpc-boy .bpc-sex-btn[data-sex="girl"].bpc-active) {
  color: #0d9488;
}

.bpc-unit-nav {
  display: flex;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 14px;
}

.theme-dark .bpc-unit-nav {
  background: #334155;
}

.bpc-unit-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bpc-unit-tab.bpc-active {
  background: #fff;
  color: #0d9488;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.bpc-boy .bpc-unit-tab.bpc-active {
  color: #0ea5e9;
}

.theme-dark .bpc-unit-tab.bpc-active {
  background: #0f172a;
}

.bpc-stepper-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 10px;
  margin-bottom: 12px;
}

.theme-dark .bpc-stepper-box {
  background: #334155;
  border-color: #475569;
}

.bpc-btn-step {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: #f8fafc;
  color: #1e293b;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-dark .bpc-btn-step {
  background: #0f172a;
  color: #fff;
}

.bpc-btn-step:hover {
  background: #0d9488;
  color: #fff;
}

.bpc-boy .bpc-btn-step:hover {
  background: #0ea5e9;
}

.bpc-val-view {
  text-align: center;
}

.bpc-val-big {
  display: block;
  font-size: 2.25rem;
  font-weight: 900;
  color: #0f172a;
}

.theme-dark .bpc-val-big {
  color: #fff;
}

.bpc-val-sub {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 700;
}

.bpc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  margin: 16px 0;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  outline: none;
}

.theme-dark .bpc-slider {
  background: #475569;
}

.bpc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0d9488;
  cursor: pointer;
  border: 4px solid #fff;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.4);
}

.bpc-boy .bpc-slider::-webkit-slider-thumb {
  background: #0ea5e9;
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.4);
}

.bpc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bpc-num-input {
  width: 100%;
  padding: 16px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  background: #fff;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.theme-dark .bpc-num-input {
  background: #334155;
  border-color: #475569;
  color: #fff;
}

.bpc-num-input:focus {
  border-color: #0d9488;
  outline: none;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.bpc-boy .bpc-num-input:focus {
  border-color: #0ea5e9;
}

.bpc-history-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.bpc-btn-secondary {
  padding: 16px;
  background: #0f172a;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bpc-btn-secondary:hover {
  background: #0d9488;
  transform: translateY(-2px);
}

.bpc-boy .bpc-btn-secondary:hover {
  background: #0ea5e9;
}

.bpc-btn-clear {
  padding: 12px;
  background: transparent;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-dark .bpc-btn-clear {
  border-color: #334155;
}

.bpc-btn-clear:hover {
  color: #f43f5e;
  border-color: #f43f5e;
}

.bpc-res-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.bpc-res-item {
  background: #f8fafc;
  padding: 24px 12px;
  border-radius: 24px;
  text-align: center;
  border: 1px solid #e2e8f0;
}

.theme-dark .bpc-res-item {
  background: #1e293b;
  border-color: #334155;
}

.bpc-res-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 8px;
}

.bpc-percent-val {
  display: block;
  font-size: 2.25rem;
  font-weight: 950;
  color: #0d9488;
  line-height: 1;
  margin-bottom: 4px;
}

.bpc-boy .bpc-percent-val {
  color: #0ea5e9;
}

.theme-dark .bpc-percent-val {
  color: #2dd4bf;
}

.bpc-res-desc {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
}

.bpc-alert-msg {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  padding: 16px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 24px;
}

.theme-dark .bpc-alert-msg {
  background: rgba(154, 52, 18, 0.1);
  border-color: rgba(154, 52, 18, 0.2);
  color: #fdba74;
}

.bpc-hidden {
  display: none;
}

.bpc-chart-box {
  margin-top: 16px;
  height: 300px;
  width: 100%;
}

.bpc-disclaimer {
  margin-top: 40px;
  padding: 20px;
  background: #f1f5f9;
  border-radius: 16px;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  font-style: italic;
}

.theme-dark .bpc-disclaimer {
  background: #1e293b;
}

@media (max-width: 900px) {
  .bpc-main {
    grid-template-columns: 1fr;
  }

  .bpc-left {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 40px 20px;
  }

  .bpc-right {
    padding: 40px 20px;
  }

  .bpc-res-grid {
    grid-template-columns: 1fr;
  }
}