/* =========================================================
   DF / BNB — Currency (Gold Bullion Calculator + Lists)
   Self-contained: does NOT rely on .cmptBtn from guide shell.
   All classes prefixed gb (Gold Bullion) to avoid collisions.
   ========================================================= */

/* ── Page wrapper ─────────────────────────────────────── */
.gbPage {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 16px 48px;
}

/* ── Header block ─────────────────────────────────────── */
.gbTop {
  background: rgba(0, 0, 0, .03);
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: 18px;
  padding: 18px 18px 16px;
  margin-bottom: 18px;
}

.gbTopRow {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.gbTopH1 {
  font-weight: 800;
  letter-spacing: .04em;
  font-size: 21px;
  margin: 0 0 4px;
  color: #205d58;
}

.gbTopSub {
  opacity: .8;
  font-size: 14px;
  margin: 0;
  color: #1a120e;
}

/* ── Badge / pill ─────────────────────────────────────── */
.gbBadgeRow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gbBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(0, 0, 0, .14);
  background: rgba(255, 255, 255, .35);
  white-space: nowrap;
}

.gbBadge.is-emporium {
  background: rgba(32, 93, 88, .12);
  border-color: rgba(32, 93, 88, .30);
  color: #1a5c4e;
}

.gbBadge.is-sale {
  background: rgba(190, 90, 20, .10);
  border-color: rgba(190, 90, 20, .28);
  color: #8b4412;
}

.gbDot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ── Card ─────────────────────────────────────────────── */
.gbCard {
  border: 1px solid rgba(0, 0, 0, .10);
  background: rgba(0, 0, 0, .02);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 18px;
}

.gbCardHead {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.gbCardHead h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
}

.gbCardBody {
  padding: 16px;
}

.gbCount {
  font-size: 12px;
  font-weight: 700;
  opacity: .65;
}

/* ── Buttons ──────────────────────────────────────────── */

/* Primary — teal solid */
.gbBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .03em;
  cursor: pointer;
  border: 1px solid rgba(17, 68, 58, .70);
  background: #205d58;
  color: #f0ede4;
  transition: background .15s, border-color .15s;
  text-decoration: none;
  white-space: nowrap;
}

.gbBtn:hover {
  background: #17503f;
  border-color: rgba(17, 68, 58, .90);
}

.gbBtn:active {
  background: #123f31;
}

/* Full-width variant */
.gbBtnFull {
  width: 100%;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 15px;
}

/* Secondary — outlined */
.gbBtnSecondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, .18);
  background: rgba(255, 255, 255, .45);
  color: inherit;
  transition: background .15s;
  white-space: nowrap;
}

.gbBtnSecondary:hover {
  background: rgba(0, 0, 0, .07);
}

/* ── Search input ─────────────────────────────────────── */
.gbSearchRow {
  margin-bottom: 12px;
}

.gbSearchInput {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, .16);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, .55);
  outline: none;
  transition: border-color .15s;
}

.gbSearchInput:focus {
  border-color: #205d58;
}

/* ── Plan list (picker) ───────────────────────────────── */
.gbPlanList {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: 12px;
  background: rgba(255, 255, 255, .25);
}

.gbPlanRow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  cursor: pointer;
  font-size: 13px;
  transition: background .1s;
}

.gbPlanRow:last-child { border-bottom: none; }
.gbPlanRow:hover      { background: rgba(255, 255, 255, .55); }
.gbPlanRow.is-selected { background: rgba(32, 93, 88, .08); }

.gbPlanName { font-weight: 600; flex: 1; min-width: 0; }
.gbPlanCost { font-weight: 800; font-size: 12px; opacity: .80; white-space: nowrap; }

.gbPlanAdd {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .18);
  background: rgba(255, 255, 255, .55);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .1s;
}

.gbPlanAdd:hover       { background: rgba(32, 93, 88, .18); }
.gbPlanAdd.is-added    { background: rgba(32, 93, 88, .20); border-color: rgba(32, 93, 88, .35); color: #205d58; }

/* ── Cart ─────────────────────────────────────────────── */
.gbCart {
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: 12px;
  background: rgba(255, 255, 255, .25);
  min-height: 44px;
}

.gbCartEmpty {
  padding: 12px;
  text-align: center;
  font-size: 13px;
  opacity: .55;
  font-style: italic;
}

.gbCartRow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  font-size: 13px;
}

.gbCartRow:last-child { border-bottom: none; }
.gbCartTotal          { background: rgba(32, 93, 88, .06); font-weight: 900; }
.gbCartName           { font-weight: 600; flex: 1; min-width: 0; }
.gbCartCost           { font-weight: 800; font-size: 12px; opacity: .80; white-space: nowrap; }

.gbCartRemove {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(190, 40, 40, .25);
  background: rgba(190, 40, 40, .08);
  color: rgba(150, 30, 30, .80);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .1s;
}

.gbCartRemove:hover { background: rgba(190, 40, 40, .18); }

/* ── Input grid (Step 3) ──────────────────────────────── */
.gbInputGrid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.gbInputBox {
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, .30);
}

.gbInputLabel {
  display: block;
  font-size: 11px;
  font-weight: 800;
  opacity: .70;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.gbInputField {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, .55);
  outline: none;
  transition: border-color .15s;
  appearance: auto; /* keep native select arrow */
}

.gbInputField:focus { border-color: #205d58; }

/* ── Result block ─────────────────────────────────────── */
.gbResult {
  display: none;
  margin-top: 14px;
  border: 1px solid rgba(32, 93, 88, .25);
  border-radius: 14px;
  padding: 16px;
  background: rgba(32, 93, 88, .06);
}

.gbResult.is-visible { display: block; }

.gbResultTitle {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
}

.gbResultGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gbStat {
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .35);
  text-align: center;
}

.gbStatNum {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  color: #205d58;
}

.gbStatLabel {
  font-size: 11px;
  font-weight: 700;
  opacity: .70;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.gbDisclaimer {
  font-size: 12px;
  opacity: .65;
  margin: 10px 0 0;
  text-align: center;
}

/* ── Lists page — selector row ────────────────────────── */
.gbListControls {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.gbListSelect {
  flex: 0 0 auto;
  min-width: 260px;
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, .16);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, .55);
  outline: none;
  cursor: pointer;
  transition: border-color .15s;
  appearance: auto;
}

.gbListSelect:focus { border-color: #205d58; }

/* The search input in lists reuses .gbSearchInput but without bottom margin */
.gbListControls .gbSearchInput {
  flex: 1;
  min-width: 180px;
  margin-bottom: 0;
}

/* ── Lists page — table ───────────────────────────────── */
.gbTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.gbTable th {
  text-align: left;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .60;
  border-bottom: 2px solid rgba(0, 0, 0, .10);
  white-space: nowrap;
}

.gbTable th:last-child { text-align: right; }

.gbTable td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  vertical-align: middle;
}

.gbTable tr:last-child td { border-bottom: none; }
.gbTable tr:hover td      { background: rgba(255, 255, 255, .40); }

.gbPlanNameCell { font-weight: 700; }
.gbGoldNormal   { font-weight: 700; opacity: .75; white-space: nowrap; }
.gbGoldMinerva  { font-weight: 900; color: #1a5c4e; white-space: nowrap; }
.gbGoldSaving   { font-size: 11px; font-weight: 700; opacity: .55; text-align: right; white-space: nowrap; }

/* Add-to-calc button in lists table */
.gbAddBtn {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(32, 93, 88, .28);
  background: rgba(32, 93, 88, .08);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background .1s;
  color: inherit;
}

.gbAddBtn:hover    { background: rgba(32, 93, 88, .18); }
.gbAddBtn.is-added { background: rgba(32, 93, 88, .20); border-color: rgba(32, 93, 88, .40); color: #1a5c4e; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 800px) {
  .gbInputGrid  { grid-template-columns: 1fr 1fr; }
  .gbResultGrid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .gbInputGrid         { grid-template-columns: 1fr; }
  .gbResultGrid        { grid-template-columns: 1fr; }
  .gbTopRow            { flex-direction: column; align-items: flex-start; }
  .gbGoldSaving        { display: none; }
  .gbListSelect        { min-width: 100%; }
  .gbListControls      { flex-direction: column; }
  .gbStatNum           { font-size: 22px; }
}
