@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Clash+Display:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.bpc-wrap {
  --bpc-yellow:      #FFD000;
  --bpc-yellow-dim:  #E6BC00;
  --bpc-black:       #080808;
  --bpc-card:        #111111;
  --bpc-surface:     #181818;
  --bpc-surface2:    #1F1F1F;
  --bpc-border:      #272727;
  --bpc-text:        #F2F0EA;
  --bpc-muted:       #686868;
  --bpc-muted2:      #444;
  --bpc-green:       #00D46A;
  --bpc-red:         #FF4545;

  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bpc-black);
  color: var(--bpc-text);
  border-radius: 22px;
  overflow: hidden;
  max-width: 1000px;
  margin: 36px auto;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), 0 0 0 1px #1d1d1d;
}

/* ── HEADER ───────────────────────────────── */
.bpc-header {
  background: var(--bpc-yellow);
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bpc-logo { display: flex; align-items: center; gap: 12px; }

.bpc-logo-icon {
  font-size: 36px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

.bpc-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--bpc-black);
  margin: 0;
  letter-spacing: -1px;
  line-height: 1;
}

.bpc-subtitle {
  font-size: 10px;
  color: rgba(0,0,0,0.5);
  margin: 3px 0 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

.bpc-header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.bpc-badge {
  background: rgba(0,0,0,0.12);
  color: var(--bpc-black);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
}

.bpc-updated {
  font-size: 10px;
  color: rgba(0,0,0,0.45);
  font-weight: 500;
}

/* ── SLAB BAR ─────────────────────────────── */
.bpc-slab-bar {
  background: var(--bpc-surface);
  border-bottom: 1px solid var(--bpc-border);
  padding: 10px 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
  color: var(--bpc-muted);
}

.bpc-slab-title { font-weight: 700; color: var(--bpc-yellow); margin-right: 4px; }
.bpc-slab-item strong { color: var(--bpc-text); }
.bpc-slab-divider { color: var(--bpc-muted2); }

/* ── BODY GRID ────────────────────────────── */
.bpc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

/* ── INPUTS ───────────────────────────────── */
.bpc-inputs {
  padding: 28px 26px;
  border-right: 1px solid var(--bpc-border);
  background: var(--bpc-card);
  overflow-y: auto;
}

.bpc-section-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bpc-yellow);
  margin-bottom: 14px;
}

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

.bpc-field { margin-bottom: 14px; }

.bpc-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--bpc-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.bpc-field label span {
  font-size: 10px;
  background: rgba(255,208,0,0.1);
  color: var(--bpc-yellow);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
}

.bpc-hint {
  display: block;
  font-size: 10px;
  color: var(--bpc-muted);
  margin-top: 4px;
  opacity: 0.6;
  line-height: 1.4;
}

.bpc-field input,
.bpc-field select {
  width: 100%;
  background: var(--bpc-surface2);
  border: 1px solid var(--bpc-border);
  border-radius: 9px;
  color: var(--bpc-text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  padding: 9px 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.bpc-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23686868' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
  cursor: pointer;
}

.bpc-field input:focus,
.bpc-field select:focus {
  border-color: var(--bpc-yellow);
  box-shadow: 0 0 0 3px rgba(255,208,0,0.1);
}

/* slab hint */
#bpc-slab-display { font-weight: 600; color: var(--bpc-yellow); opacity: 1; }

.bpc-btn {
  width: 100%;
  background: var(--bpc-yellow);
  color: var(--bpc-black);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  margin-top: 18px;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(255,208,0,0.2);
  letter-spacing: 0.3px;
}

.bpc-btn:hover {
  background: #ffe433;
  box-shadow: 0 6px 26px rgba(255,208,0,0.35);
  transform: translateY(-1px);
}
.bpc-btn:active { transform: translateY(0); }

.bpc-btn-reset {
  background: transparent;
  border: 1px solid var(--bpc-border);
  color: var(--bpc-muted);
  box-shadow: none;
  margin-top: 8px;
}
.bpc-btn-reset:hover {
  background: var(--bpc-surface);
  color: var(--bpc-text);
  box-shadow: none;
}

/* ── RESULTS ──────────────────────────────── */
.bpc-results {
  background: var(--bpc-black);
  padding: 28px 24px;
}

.bpc-result-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--bpc-muted);
  gap: 12px;
}
.bpc-placeholder-icon { font-size: 52px; opacity: 0.2; }
.bpc-result-placeholder p { font-size: 14px; line-height: 1.7; margin: 0; }
.bpc-placeholder-note {
  font-size: 11px;
  line-height: 1.7;
  background: var(--bpc-surface);
  border: 1px solid var(--bpc-border);
  border-radius: 10px;
  padding: 10px 16px;
  max-width: 240px;
  color: var(--bpc-muted);
}

/* HERO */
.bpc-profit-hero {
  background: var(--bpc-yellow);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.bpc-profit-hero.loss {
  background: linear-gradient(135deg, #1e0505, #2d0808);
  border: 1px solid rgba(255,69,69,0.25);
}

.bpc-profit-hero::after {
  content: '⚡';
  position: absolute;
  right: 10px; bottom: -10px;
  font-size: 80px;
  opacity: 0.1;
  line-height: 1;
}

.bpc-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bpc-profit-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.5);
  margin-bottom: 6px;
  font-weight: 700;
}
.bpc-profit-hero.loss .bpc-profit-label { color: rgba(255,255,255,0.4); }

.bpc-profit-amount {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--bpc-black);
  letter-spacing: -2px;
}
.bpc-profit-hero.loss .bpc-profit-amount { color: var(--bpc-red); }

.bpc-profit-margin {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  background: rgba(0,0,0,0.1);
  color: var(--bpc-black);
}
.bpc-profit-hero.loss .bpc-profit-margin {
  background: rgba(255,69,69,0.15);
  color: var(--bpc-red);
}

.bpc-hero-secondary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}
.bpc-hero-stat-val {
  font-size: 18px;
  font-weight: 800;
  color: rgba(0,0,0,0.75);
  line-height: 1;
}
.bpc-profit-hero.loss .bpc-hero-stat-val { color: rgba(255,255,255,0.6); }
.bpc-hero-stat-lbl {
  font-size: 10px;
  color: rgba(0,0,0,0.45);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.bpc-profit-hero.loss .bpc-hero-stat-lbl { color: rgba(255,255,255,0.3); }

/* BREAKDOWN */
.bpc-breakdown {
  background: var(--bpc-card);
  border: 1px solid var(--bpc-border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
}
.bpc-breakdown-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bpc-muted);
  margin-bottom: 12px;
}
.bpc-breakdown-subhead {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bpc-yellow);
  margin: 10px 0 6px;
  opacity: 0.8;
}
.bpc-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  padding: 5px 0;
}
.bpc-breakdown-row span:first-child { color: var(--bpc-muted); }
.bpc-breakdown-row.positive span:last-child { color: var(--bpc-green); font-weight: 600; }
.bpc-breakdown-row.negative span:last-child { color: var(--bpc-red); font-weight: 500; }
.bpc-breakdown-row.total span { font-weight: 800; color: var(--bpc-text); font-size: 13px; }
.bpc-breakdown-divider {
  border: none;
  border-top: 1px dashed var(--bpc-border);
  margin: 8px 0;
}

/* METRICS */
.bpc-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.bpc-metric {
  background: var(--bpc-card);
  border: 1px solid var(--bpc-border);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}
.bpc-metric-value {
  font-size: 17px;
  font-weight: 800;
  color: var(--bpc-yellow);
  margin-bottom: 4px;
  line-height: 1;
}
.bpc-metric-label { font-size: 10px; color: var(--bpc-muted); letter-spacing: 0.3px; }

/* VERDICT */
.bpc-verdict-text {
  background: var(--bpc-surface);
  border-left: 3px solid var(--bpc-yellow);
  border-radius: 0 10px 10px 0;
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--bpc-muted);
  line-height: 1.6;
}

/* FOOTER */
.bpc-footer {
  background: var(--bpc-surface);
  border-top: 1px solid var(--bpc-border);
  padding: 10px 32px;
  font-size: 10.5px;
  color: var(--bpc-muted2);
  line-height: 1.5;
}

/* ANIMATION */
.bpc-result-content { animation: bpcIn 0.4s ease; }
@keyframes bpcIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 720px) {
  .bpc-body { grid-template-columns: 1fr; }
  .bpc-inputs { border-right: none; border-bottom: 1px solid var(--bpc-border); }
  .bpc-profit-amount { font-size: 34px; }
  .bpc-header, .bpc-slab-bar, .bpc-footer { padding-left: 18px; padding-right: 18px; }
  .bpc-inputs, .bpc-results { padding: 20px 16px; }
  .bpc-metrics { grid-template-columns: repeat(2, 1fr); }
  .bpc-row-2 { grid-template-columns: 1fr; }
}
