:root {
  --bg: #070708;
  --panel: #0d0e10;
  --panel2: #0a0b0c;
  --text: #f5f5f5;
  --muted: #9aa0a6;
  --gold: #d6a63a;
  --gold2: #b8902f;
  --line: #1b1c20;
  --shadow: 0 24px 80px rgba(0, 0, 0, .55);
  --radius: 22px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1200px 600px at 50% 10%, rgba(214, 166, 58, .09), transparent 60%),
              radial-gradient(900px 500px at 15% 30%, rgba(214, 166, 58, .06), transparent 60%),
              radial-gradient(900px 500px at 85% 35%, rgba(214, 166, 58, .05), transparent 60%),
              var(--bg);
  color: var(--text);
  /* Deterrence: Disable selection */
  -webkit-user-select: none;
  user-select: none; 
}

a { color: inherit; text-decoration: none; }

/* --- Components --- */
.ticker {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0));
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #cfcfcf;
  overflow: hidden;
  white-space: nowrap;
}

.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); display: inline-block; opacity: .9;
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; letter-spacing: .06em;
}

.brandMark {
  width: 34px; height: 34px; border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, rgba(214, 166, 58, .9), rgba(214, 166, 58, .35) 45%, rgba(214, 166, 58, .12) 70%, transparent 72%), #0c0d0f;
  border: 1px solid rgba(214, 166, 58, .35);
  box-shadow: 0 12px 30px rgba(214, 166, 58, .08);
  position: relative;
}

.brandMark:before, .brandMark:after {
  content: ""; position: absolute;
  background: rgba(7, 7, 8, .9); border-radius: 3px;
  width: 4px; height: 16px; top: 9px; left: 16px;
  transform: rotate(35deg);
}
.brandMark:after {
  left: 14px; top: 12px; height: 14px; transform: rotate(-35deg);
}

.navLinks {
  display: flex; gap: 24px; font-size: 12px;
  letter-spacing: .18em; text-transform: uppercase;
  color: #c7c7c7; align-items: center;
}
.navLinks span { opacity: .85; transition: opacity 0.2s; cursor: pointer;}
.navLinks span:hover { opacity: 1; color: var(--gold); }

.btn {
  background: var(--gold); color: #111; border: 0;
  padding: 12px 16px; border-radius: 14px;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s;
}
.btn:hover { background: var(--gold2); }

.btnGhost {
  background: transparent; color: #ddd;
  border: 1px solid rgba(214, 166, 58, .35);
  padding: 12px 16px; border-radius: 14px;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; transition: all 0.2s;
}
.btnGhost:hover { border-color: rgba(214, 166, 58, .6); color: #fff; background: rgba(214,166,58,0.1); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 18px 40px; }

.hero {
  margin: 14px 0 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0)),
              radial-gradient(800px 400px at 50% 0%, rgba(214, 166, 58, .12), transparent 55%),
              var(--panel2);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 38px 28px;
  position: relative; overflow: hidden;
}

.heroTop {
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: #bfbfbf; margin-bottom: 12px; position: relative; z-index: 1;
}

.heroTitle {
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 64px; line-height: 1.02; margin: 0;
  position: relative; z-index: 1;
}
.heroTitle .gold { color: var(--gold); }

.heroSub {
  max-width: 800px; margin-top: 14px; color: var(--muted);
  font-size: 18px; line-height: 1.5; position: relative; z-index: 1;
}

.heroActions { display: flex; gap: 12px; margin-top: 18px; position: relative; z-index: 1; flex-wrap: wrap; }

.grid {
  display: grid; grid-template-columns: 340px 1fr;
  gap: 16px; align-items: start;
}

.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0)), var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 16px 50px rgba(0, 0, 0, .35); overflow: hidden;
}

.panelHeader {
  padding: 18px 18px 10px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.panelHeader h3 {
  margin: 0; font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: #cfcfcf;
}

.mini { color: var(--muted); font-size: 12px; }
.panelBody { padding: 14px 18px 18px; }
.row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }

.sliderRow { padding: 10px 0; border-bottom: 1px dashed rgba(255, 255, 255, .06); }
.sliderRow:last-child { border-bottom: 0; }

label {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: #c7c7c7; display: block; margin-bottom: 6px;
}
input[type="range"] {
    width: 100%; cursor: grab; accent-color: var(--gold);
}
input[type="range"]:active { cursor: grabbing; }

.wVal {
  font-variant-numeric: tabular-nums; color: var(--gold);
  font-weight: 800; font-size: 12px; letter-spacing: .06em;
}

.pill {
  padding: 6px 10px; border: 1px solid rgba(214, 166, 58, .35);
  border-radius: 999px; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: #e5e5e5; background: rgba(214, 166, 58, .06);
}
.warn { color: #ffcc66; border-color: #ffcc66; }

.controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

select, .textInput {
  background: #0b0c0e; color: #eaeaea;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px; padding: 10px 12px; outline: none;
}
select:focus, .textInput:focus { border-color: rgba(214, 166, 58, .55); }

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; padding: 14px 18px 18px; border-bottom: 1px solid var(--line);
}

.card {
  background: radial-gradient(320px 220px at 40% 10%, rgba(214, 166, 58, .08), transparent 55%), rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px; overflow: hidden; position: relative; min-height: 260px;
  transition: transform 0.2s;
}
.card:hover { transform: translateY(-2px); border-color: rgba(214,166,58,.3); }
.card.best { border-color: rgba(214, 166, 58, .45); box-shadow: 0 0 0 1px rgba(214, 166, 58, .15) inset; }

.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold); color: #111; font-weight: 900;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; z-index: 2;
}

.cardImg {
  height: 150px; background: #0b0c0e;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cardImg img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }

.cardBody { padding: 12px 12px 14px; }
.cutName {
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 28px; margin: 0 0 6px;
}
.cutSub {
  margin: 0 0 10px; color: #aeb4bb; font-size: 12px;
  letter-spacing: .18em; text-transform: uppercase;
}

.scoreRow { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.scoreLabel { color: #aeb4bb; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.scoreVal {
  font-variant-numeric: tabular-nums; font-size: 36px;
  font-weight: 900; color: var(--gold);
}
.scoreSub {
  font-variant-numeric: tabular-nums; color: #bdbdbd;
  font-size: 12px; margin-top: 2px; text-transform: uppercase; letter-spacing: .16em;
}

table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td {
  padding: 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, .06);
  text-align: left; vertical-align: middle; font-size: 13px;
}
th {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: #c9c9c9; cursor: pointer; user-select: none;
}
th:hover { color: #fff; }
th .sortHint { opacity: .55; margin-left: 6px; }
tr:hover td { background: rgba(255, 255, 255, .02); }
.right { text-align: right; }
.muted { color: var(--muted); }

.kpiBar {
  height: 8px; background: rgba(255, 255, 255, .08);
  border-radius: 999px; overflow: hidden;
}
.kpiFill {
  height: 100%; background: linear-gradient(90deg, rgba(214, 166, 58, .9), rgba(214, 166, 58, .35));
  width: 0%; transition: width 0.3s ease;
}

.compareGrid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; padding: 14px 18px 18px;
}
.compareBox {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px; padding: 14px; background: rgba(255, 255, 255, .02);
}
.compareTitle {
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 34px; margin: 0 0 6px;
}
.compareText { color: var(--muted); line-height: 1.5; }

.metricRow {
  display: grid; grid-template-columns: 90px 1fr 1fr;
  gap: 10px; align-items: center; margin: 10px 0;
}
.metricRow .mName { color: #c9c9c9; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.mVal { font-weight: 900; color: var(--gold); font-size: 12px; }
.small { font-size: 12px; color: var(--muted); }

.footer {
  margin-top: 18px; padding: 18px; color: #9aa0a6;
  font-size: 12px; line-height: 1.5; border-top: 1px solid rgba(255, 255, 255, .06);
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .02);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; color: #d9d9d9; transition: all 0.2s;
}
.chip.active { border-color: rgba(214, 166, 58, .45); background: rgba(214, 166, 58, .06); color: #fff; }
.chip:hover { border-color: var(--gold); }

/* --- NEW: Lock Toggle Switch --- */
.toggleSwitch {
  position: relative; display: inline-block; width: 34px; height: 18px;
}
.toggleSwitch input { opacity: 0; width: 0; height: 0; }
.sliderRound {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background-color: #2a2a2a; transition: .4s; border-radius: 34px;
}
.sliderRound:before {
  position: absolute; content: ""; height: 12px; width: 12px;
  left: 3px; bottom: 3px; background-color: #777; transition: .4s; border-radius: 50%;
}
input:checked + .sliderRound { background-color: rgba(214, 166, 58, .2); }
input:checked + .sliderRound:before { transform: translateX(16px); background-color: var(--gold); }

@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .compareGrid { grid-template-columns: 1fr; }
  .heroTitle { font-size: 44px; }
}