/*
 * FlipForge approved visual system override
 * Uses the approved silver / charcoal / gold palette and Söhne-style typography.
 * No external font or asset dependency is loaded by the prototype.
 */

:root {
  --bg: #030914;
  --bg-elevated: #07101d;
  --surface: #0a1321;
  --surface-2: #101a29;
  --surface-3: #172232;
  --border: rgba(139, 146, 143, .34);
  --border-soft: rgba(139, 146, 143, .18);
  --text: #f2f2f2;
  --text-soft: #d8dcdb;
  --muted: #8b928f;
  --silver: #cfd3d2;
  --silver-dark: #717876;
  --gold: #d4af37;
  --gold-strong: #edc34b;
  --gold-deep: #715915;
  --blue: #cfd3d2;
  --blue-deep: #3f4748;
  --purple: #8b928f;
  --green: #48c98c;
  --green-deep: #153e2d;
  --orange: #e9a42f;
  --red: #ee6a75;
  --shadow: 0 22px 65px rgba(0, 0, 0, .42);
  --radius: 5px;
  --radius-sm: 3px;
  font-family: "Söhne", "Sohne", "Neue Haas Grotesk Text Pro", "Helvetica Neue", Arial, sans-serif;
}

body {
  background:
    radial-gradient(circle at 72% -15%, rgba(212, 175, 55, .09), transparent 30rem),
    linear-gradient(145deg, #020610, #06101d 62%, #020711);
}

.prototype-banner {
  min-height: 34px;
  color: var(--gold-strong);
  background: rgba(2, 7, 15, .98);
  border-bottom: 1px solid rgba(212, 175, 55, .48);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.prototype-banner strong {
  color: var(--gold-strong);
  letter-spacing: .18em;
}

.prototype-banner span {
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: none;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(2, 7, 15, .99), rgba(4, 10, 18, .99)),
    #030914;
  border-right-color: rgba(212, 175, 55, .2);
  box-shadow: 14px 0 40px rgba(0, 0, 0, .3);
}

.brand-block {
  padding: 20px 18px 17px;
  border-bottom-color: rgba(212, 175, 55, .24);
}

.brand {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
}

.brand-mark {
  position: relative;
  width: 46px;
  height: 46px;
  display: block;
  filter: drop-shadow(0 6px 15px rgba(0, 0, 0, .5));
}

.brand-corner {
  position: absolute;
  width: 15px;
  height: 15px;
  border-color: #f2f2f2;
  border-style: solid;
  border-width: 0;
  box-shadow: 0 0 10px rgba(242, 242, 242, .08);
}

.brand-corner-tl {
  top: 2px;
  left: 2px;
  border-top-width: 6px;
  border-left-width: 6px;
}

.brand-corner-tr {
  top: 2px;
  right: 2px;
  border-top-width: 6px;
  border-right-width: 6px;
}

.brand-corner-bl {
  bottom: 2px;
  left: 2px;
  border-bottom-width: 6px;
  border-left-width: 6px;
}

.brand-corner-br {
  right: 2px;
  bottom: 2px;
  border-right-width: 6px;
  border-bottom-width: 6px;
}

.brand-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  background: linear-gradient(145deg, #edc34b, #b78918);
  border: 1px solid #f5d263;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, .22),
    0 0 18px rgba(212, 175, 55, .46);
}

.brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.brand-name {
  color: #f2f2f2;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: .145em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .12);
}

.brand-subtitle {
  margin-top: 7px;
  color: var(--gold-strong);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .19em;
  line-height: 1.25;
  white-space: nowrap;
}

.prototype-chip {
  margin-top: 14px;
  margin-left: 60px;
  color: var(--gold-strong);
  background: rgba(212, 175, 55, .06);
  border: 1px solid rgba(212, 175, 55, .4);
  border-radius: 2px;
  letter-spacing: .15em;
}

.primary-nav a {
  min-height: 41px;
  color: #b8bfbd;
  border-radius: 2px;
  font-weight: 540;
  letter-spacing: .02em;
}

.primary-nav a span:first-child {
  color: var(--silver-dark);
}

.primary-nav a:hover {
  color: #f2f2f2;
  background: rgba(242, 242, 242, .025);
}

.primary-nav a[aria-current="page"] {
  color: #f2f2f2;
  background: linear-gradient(90deg, rgba(212, 175, 55, .11), rgba(212, 175, 55, .025));
  border-color: rgba(212, 175, 55, .38);
  box-shadow: inset 3px 0 0 var(--gold);
}

.primary-nav a[aria-current="page"] span:first-child {
  color: var(--gold-strong);
}

.plan-card {
  background:
    linear-gradient(145deg, rgba(212, 175, 55, .07), rgba(139, 146, 143, .025)),
    #080f19;
  border-color: rgba(212, 175, 55, .28);
  border-radius: 3px;
}

.usage-track span {
  background: linear-gradient(90deg, #8b6b15, var(--gold-strong));
}

.avatar {
  color: #050a10;
  background: linear-gradient(145deg, #f2f2f2, #8b928f);
  border-color: #d7dbda;
}

.topbar {
  background: rgba(3, 9, 20, .94);
  border-bottom-color: rgba(212, 175, 55, .17);
}

.global-search,
.date-button,
.icon-button,
.profile-button,
.field select {
  background: #070f1a;
  border-color: rgba(139, 146, 143, .32);
  border-radius: 3px;
}

.global-search:focus-within {
  border-color: rgba(212, 175, 55, .65);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .08);
}

.notification-dot {
  color: #070b10;
  background: var(--gold-strong);
  border-color: #030914;
}

.page-heading {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(212, 175, 55, .16);
}

.eyebrow {
  color: var(--gold-strong);
  font-weight: 620;
  letter-spacing: .19em;
}

h1,
h2,
h3 {
  font-weight: 560;
}

h1 {
  color: #f2f2f2;
  letter-spacing: -.015em;
}

h2 {
  letter-spacing: .01em;
}

.button {
  border-radius: 2px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.button-primary {
  color: #070a0f;
  background: linear-gradient(145deg, #e6bd3e, #b78b1d);
  border-color: #f0c84c;
}

.button-secondary {
  color: #f2f2f2;
  background: rgba(242, 242, 242, .025);
  border-color: rgba(139, 146, 143, .42);
}

.metric-card,
.panel {
  background:
    linear-gradient(145deg, rgba(17, 27, 42, .94), rgba(6, 13, 23, .98));
  border-color: rgba(139, 146, 143, .3);
  border-radius: 5px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, .28);
}

.metric-card::before,
.panel::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 175, 55, .72), transparent 48%);
}

.metric-card::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.metric-icon {
  color: var(--gold-strong);
  border-radius: 2px;
}

.panel-header {
  border-bottom-color: rgba(139, 146, 143, .18);
}

.panel-link {
  color: var(--gold-strong);
}

.line-chart .ask-line {
  stroke: #cfd3d2;
}

.line-chart .value-line {
  stroke: var(--gold-strong);
}

.line-chart .area {
  fill: rgba(212, 175, 55, .08);
}

.line-chart .grid {
  stroke: rgba(139, 146, 143, .2);
}

.legend-item:first-child .legend-swatch {
  background: #cfd3d2 !important;
}

.legend-item:nth-child(2) .legend-swatch {
  background: var(--gold-strong) !important;
}

.card-thumb,
.large-card-thumb {
  color: var(--gold-strong);
  background:
    linear-gradient(145deg, rgba(242, 242, 242, .08), transparent 38%),
    #08111d;
  border-color: rgba(139, 146, 143, .42);
  border-radius: 3px;
}

.signal-track,
.population-bar {
  background: #030914;
  border-color: rgba(139, 146, 143, .24);
  border-radius: 2px;
}

.population-bar span {
  background: linear-gradient(90deg, #705511, var(--gold-strong));
}

.readiness-ring {
  background: conic-gradient(var(--gold-strong) var(--progress), rgba(139, 146, 143, .18) 0);
}

.check-item,
.explanation-card,
.key-value,
.grade-card,
.comparison-row > * {
  background: rgba(242, 242, 242, .018);
  border-color: rgba(139, 146, 143, .2);
  border-radius: 3px;
}

.grade-card.recommended {
  border-color: rgba(212, 175, 55, .5);
  box-shadow: inset 0 3px 0 var(--gold);
}

.swap-button {
  color: var(--gold-strong);
  background: #08111d;
  border-color: rgba(212, 175, 55, .52);
  border-radius: 2px;
}

.boundary-note {
  color: #d9dcdb;
  background: rgba(212, 175, 55, .04);
  border-color: rgba(212, 175, 55, .25);
  border-radius: 2px;
}

.toast {
  border-left-color: var(--gold-strong);
  border-radius: 3px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline-color: rgba(212, 175, 55, .92);
}

@media (max-width: 1180px) {
  .brand-name { font-size: 18px; }
  .brand-subtitle { font-size: 7px; }
}

@media (max-width: 900px) {
  .brand {
    grid-template-columns: 45px minmax(0, 1fr);
  }

  .prototype-chip {
    margin-left: 57px;
  }
}

@media (max-width: 640px) {
  .brand-name { font-size: 19px; }
  .brand-subtitle { white-space: normal; }
}
