@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
:root {
  --color-primary: #3498db;
  --color-secondary: #2c3e50;
  --color-tertiary: #e74c3c;
  --color-text-primary: #fff;
  --color-text-secondary: #A198C3;
  --color-text-tertiary: #E35FCF;
  --color-background: #000;
  --color-light-primary: #2c3e50;
  --color-light-secondary: #3498db;
  --color-light-tertiary: #e74c3c;
  --color-light-text-primary: #000;
  --color-light-text-secondary: #2C3E50;
  --color-light-text-tertiary: #7014E3;
  --color-light-background: #fff;
  --font-family: "Montserrat", Arial, sans-serif;
  --font-weight-normal: 400;
  --font-weight-bold: 600;
  --font-weight-black: 800;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
}
*::before, *::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
}

.body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  margin: 0;
  min-height: 100vh;
  min-width: 320px;
  padding: 0;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  width: 100%;
}
@media screen and (max-width: 767px) {
  .wrapper {
    padding: 0 2rem;
  }
}
@media screen and (max-width: 575px) {
  .wrapper {
    padding: 0 1rem;
  }
}

.body {
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: var(--font-weight-normal);
  line-height: 1.2;
}
html[data-theme=light] .body {
  color: var(--color-light-text-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
}

a {
  color: var(--color-text-secondary);
  font-weight: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
html[data-theme=light] a {
  color: var(--color-light-text-secondary);
}

html {
  background-color: var(--color-background);
  background-image: radial-gradient(farthest-corner circle at 20% -20%, transparent 0%, transparent 66%, #000000 100%), conic-gradient(from 35deg at 10% -20%, transparent, transparent, #3D98A2, #510FA6, transparent, transparent, transparent, transparent);
}
html[data-theme=light] {
  background-color: var(--color-light-background);
  background-image: radial-gradient(farthest-corner circle at 20% -20%, transparent 0%, transparent 66%, #fff 100%), conic-gradient(from 35deg at 20% -20%, transparent, transparent, #5FFBFE, #B789F1, transparent, transparent, transparent, transparent);
  color: var(--color-light-text-primary);
}
@media screen and (max-width: 575px) {
  html {
    background-image: radial-gradient(farthest-corner circle at 20% -20%, transparent 0%, transparent 66%, #000000 100%), conic-gradient(from 50deg at 10% -20%, transparent, transparent, #3D98A2, #510FA6, transparent, transparent, transparent, transparent);
  }
  html[data-theme=light] {
    background-image: radial-gradient(farthest-corner circle at 20% -20%, transparent 0%, transparent 66%, #fff 100%), conic-gradient(from 50deg at 20% -20%, transparent, transparent, #5FFBFE, #B789F1, transparent, transparent, transparent, transparent);
  }
}

.bg-gradient-pink,
.bg-gradient-cyan {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  pointer-events: none;
}

@keyframes gradient-pink-pulse {
  0% {
    opacity: 0.8;
    transform: skew(-20deg) scale(1.1);
  }
  50% {
    opacity: 0.6;
    transform: skew(5deg) scale(1);
  }
  100% {
    opacity: 0.8;
    transform: skew(-20deg) scale(1.1);
  }
}
@media screen and (min-width: 768px) {
  .bg-gradient-pink {
    animation: gradient-pink-pulse 20s ease-in-out infinite;
    background: radial-gradient(ellipse 35% 60% at 35% 30%, #E35FCF 0%, transparent 100%);
    opacity: 0.8;
    transform: skew(-15deg) translateX(-4%);
    transform-origin: 20% 0;
    z-index: 1;
  }
}

@keyframes gradient-cyan-pulse {
  0% {
    opacity: 0.3;
    transform: skew(30deg) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: skew(20deg) scale(1.1);
  }
  100% {
    opacity: 0.3;
    transform: skew(30deg) scale(1);
  }
}
@media screen and (min-width: 768px) {
  .bg-gradient-cyan {
    animation: gradient-cyan-pulse 25s ease-in-out infinite;
    background: radial-gradient(ellipse 25% 30% at 50% 20%, #5FFBFE 0%, transparent 100%);
    opacity: 0.4;
    transform: skew(30deg);
    transform-origin: 20% 0;
    z-index: 0;
  }
}

.header {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3rem);
  -webkit-backdrop-filter: blur(3rem);
  position: sticky;
  top: 0;
  z-index: 1000;
}
html[data-theme=light] .header {
  background-color: rgba(255, 255, 255, 0.5);
}
.header .wrapper {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  z-index: 4;
}

.main {
  display: grid;
  padding: 20px 0;
  place-items: center;
  position: relative;
  z-index: 2;
}

.logo {
  background-color: var(--color-light-background);
  color: var(--color-light-text-primary);
  border-radius: 0 1rem 0 1rem;
  display: inline-block;
  font-size: 2rem;
  margin: 0;
  mix-blend-mode: screen;
  padding: 0.375em 0.5em;
  width: auto;
}
html[data-theme=light] .logo {
  background-color: var(--color-background);
  color: var(--color-text-primary);
}
@media screen and (max-width: 575px) {
  .logo {
    font-size: 1.5rem;
  }
}
.logo b {
  font-weight: var(--font-weight-black);
  margin-right: 0.125em;
}

.home .main .wrapper {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
@media screen and (max-width: 575px) {
  .home .main .wrapper {
    gap: 2rem;
  }
}

.content-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.description {
  font-size: 4rem;
  font-weight: var(--font-weight-normal);
  margin: 0;
}
@media screen and (max-width: 767px) {
  .description {
    font-size: 3rem;
  }
}
@media screen and (max-width: 575px) {
  .description {
    font-size: 2rem;
  }
}

.value-props {
  color: var(--color-text-primary);
  display: flex;
  flex-flow: row wrap;
  font-size: 1.25rem;
  gap: 0.5rem 1rem;
  letter-spacing: 1px;
  list-style: none;
  margin: 0;
  padding-left: 0;
  text-transform: uppercase;
}
@media screen and (max-width: 575px) {
  .value-props {
    flex-flow: column wrap;
    font-size: 1rem;
  }
}
html[data-theme=light] .value-props {
  color: var(--color-light-text-primary);
}

.value-prop {
  position: relative;
  padding-left: 1.3rem;
}
.value-prop::before {
  background-color: white;
  border-radius: 0.05rem;
  content: "";
  height: 0.4rem;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 0.4rem;
}
@media screen and (max-width: 575px) {
  .value-prop::before {
    left: 0.25rem;
  }
}
html[data-theme=light] .value-prop::before {
  background-color: var(--color-background);
}
@media screen and (min-width: 576px) {
  .value-prop:first-child {
    padding-left: 0;
  }
  .value-prop:first-child::before {
    display: none;
  }
}

.button {
  background-color: transparent;
  border: 1px solid var(--color-text-primary);
  border-radius: 99rem;
  color: var(--color-text-primary);
  cursor: pointer;
  display: inline-block;
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.03rem;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}
.button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-text-primary);
  text-decoration: none;
}
html[data-theme=light] .button {
  border: 1px solid var(--color-light-text-primary);
  color: var(--color-light-text-primary);
}
.button[title] {
  position: relative;
}
.button[title]::after {
  background-color: white;
  border-radius: 0.5rem;
  color: black;
  content: attr(title);
  font-size: 0.875rem;
  left: 50%;
  line-height: 1;
  opacity: 0;
  padding: 0.75rem;
  pointer-events: none;
  position: absolute;
  top: -3.3rem;
  transform: translate(-50%, 0.5rem);
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
  z-index: 1;
}
.button[title]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='8' viewBox='0 0 20 8'%3E%3Cpath fill='white' d='M2.8394 1.20213C2.09164 0.433285 1.06829 3.05176e-05 0 3.05176e-05H20C18.9793 3.05176e-05 17.9975 0.395726 17.2583 1.10515L11.1704 6.94745C10.3835 7.70272 9.14054 7.68109 8.3799 6.89897L2.8394 1.20213Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: auto 50%;
  content: "";
  display: block;
  height: 1rem;
  left: 50%;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  position: absolute;
  text-align: center;
  top: -1rem;
  transform: translate(-50%, 0.5rem);
  transition: opacity 0.15s ease, transform 0.15s ease;
  width: 100%;
  z-index: 1;
}
.button[title]:hover::after {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.button[title]:hover::before {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.footer {
  color: var(--color-text-secondary);
  font-size: 0.9em;
  letter-spacing: 0.4px;
  padding: 1rem 0;
  position: relative;
  z-index: 3;
}
.footer .wrapper {
  align-items: center;
  display: flex;
  flex-flow: row wrap;
  gap: 0.5rem 1rem;
}
html[data-theme=light] .footer {
  color: var(--color-light-text-secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  padding-left: 0;
}

.footer-link {
  display: inline-block;
}

.copyright {
  opacity: 0.8;
}

.accessories {
  display: grid;
  grid-auto-flow: column;
  justify-content: end;
  gap: 1rem;
}

label.switch-container input {
  display: none;
}
label.switch-container .switch {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 99rem;
  cursor: pointer;
  height: 2rem;
  position: relative;
  transition: 0.4s;
  width: 3.5rem;
}
label.switch-container .switch .handle {
  background-color: var(--color-light-background);
  border-radius: 50%;
  height: 1.6rem;
  left: 0.2rem;
  overflow: hidden;
  position: absolute;
  top: 0.2rem;
  transition: 0.4s;
  width: 1.6rem;
}
label.switch-container .switch .handle::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23667DFF' d='M11.01 3.05C6.51 3.54 3 7.36 3 12c0 4.97 4.03 9 9 9 4.63 0 8.45-3.5 8.95-8 .09-.79-.78-1.42-1.54-.95-.84.54-1.84.85-2.91.85-2.98 0-5.4-2.42-5.4-5.4 0-1.06.31-2.06.84-2.89.45-.67-.04-1.63-.93-1.56'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 70%;
  content: "";
  height: 100%;
  position: absolute;
  transform: translate(130%, 30%);
  transition: all 0.4s ease;
  width: 100%;
}
label.switch-container .switch .handle::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FBBB55' d='M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 70%;
  content: "";
  height: 100%;
  position: absolute;
  width: 100%;
  transition: all 0.4s ease;
}
html[data-theme=light] label.switch-container .switch {
  background-color: rgba(0, 0, 0, 0.2);
}
html[data-theme=light] label.switch-container .switch .handle {
  background-color: var(--color-light-background);
}
label.switch-container input:checked + .switch .handle {
  transform: translateX(1.5rem);
}
label.switch-container input:checked + .switch .handle::before {
  transform: translate(0%, 0%);
}
label.switch-container input:checked + .switch .handle::after {
  transform: translate(-130%, 30%);
}

.header .wrapper {
  display: flex;
  justify-content: space-between;
  min-height: 72px;
}

.header nav, .action-row, .account-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.header .brand {
  color: inherit;
  font-weight: 800;
}

.home .main {
  padding: 1.5rem 0;
  align-content: start;
}

.home .main > .wrapper {
  gap: 1.25rem;
}

.home .main .logo {
  font-size: 1.4rem;
}

.home .content-row {
  gap: 0.75rem;
}

.home .description {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.12;
}

.home .intro {
  margin: 0;
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.5;
}

.home .value-props {
  font-size: 0.85rem;
  flex-direction: row;
}

.home .market-panel {
  padding: 1rem 1.25rem;
}

.home .market-panel .eyebrow {
  margin: 0 0 0.35rem;
}

.home .market-panel h2 {
  margin: 0;
  font-size: 1.3rem;
}

.home .market-panel .section-heading {
  margin-bottom: 0.6rem;
}

.home .market-panel th, .home .market-panel td {
  padding: 0.65rem 0.6rem;
}

.home #market-status {
  margin: 0.65rem 0 0.4rem;
  font-size: 0.75rem;
}

.home .market-notes {
  font-size: 0.75rem;
}

.home .market-notes summary {
  color: inherit;
  opacity: 0.8;
}

.home .steps {
  gap: 1.25rem;
}

.home .steps h3 {
  font-size: 1rem;
  margin: 0.5rem 0;
}

.home .steps p {
  margin: 0.5rem 0;
}

@media (max-width: 575px) {
  .home .main {
    padding: 1rem 0;
  }
  .home .market-panel {
    padding: 1rem 0.75rem;
  }
  .home .market-panel .section-heading {
    flex-wrap: nowrap;
  }
  .home .market-panel h2 {
    font-size: 1.1rem;
  }
}
.home .main .logo {
  align-self: flex-start;
}

.intro {
  max-width: 660px;
  line-height: 1.7;
  font-size: 1.1rem;
}

.panel {
  border: 1px solid rgba(161, 152, 195, 0.35);
  border-radius: 0 1.25rem 0 1.25rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

html[data-theme=light] .panel {
  background: rgba(255, 255, 255, 0.6);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.eyebrow {
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
}

html[data-theme=light] .eyebrow {
  color: var(--color-light-text-tertiary);
}

.small, #market-status, #quote-status {
  font-size: 0.85rem;
  line-height: 1.6;
  opacity: 0.8;
}

p {
  line-height: 1.6;
}

h2 {
  margin-top: 0.4rem;
}

.steps, .quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

th, td {
  padding: 1rem 0.6rem;
  border-bottom: 1px solid rgba(161, 152, 195, 0.2);
  white-space: nowrap;
}

thead {
  font-size: 0.8rem;
  opacity: 0.8;
}

.account {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.account-nav {
  margin: 2rem 0;
}

.controls {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.controls label {
  display: grid;
  gap: 0.75rem;
  flex: 1;
  font-size: 0.85rem;
  min-width: 180px;
}

input, select {
  font: inherit;
  padding: 0.8rem;
  border: 1px solid #A198C3;
  border-radius: 0.5rem;
  background: #171320;
  color: white;
  width: 100%;
}

html[data-theme=light] input, html[data-theme=light] select {
  background: white;
  color: #222;
}

button {
  font-family: inherit;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quote-card h2 {
  font-size: 2.6rem;
  margin-bottom: 0;
}

.quote-card dl {
  font-size: 0.8rem;
}

.quote-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(161, 152, 195, 0.2);
}

dd {
  margin: 0;
  text-align: right;
}

.selected, [aria-current=page] {
  border-color: #E35FCF;
}

#quote-detail, details.panel {
  margin-top: 1.5rem;
}

summary {
  cursor: pointer;
}

.login-panel {
  max-width: 620px;
  margin: 3rem auto;
}

[hidden] {
  display: none !important;
}

/* Historical page: compact, dense tabular display. */
.history .main > .wrapper {
  gap: 0.75rem;
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.history .intro-tight {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.8rem;
}

.history .history-panel {
  padding: 1rem 1.25rem;
}

.history .eyebrow-inline {
  margin: 0 0 0.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.history .eyebrow-inline #history-status {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  opacity: 0.75;
}

.history .compact-table {
  font-size: 0.78rem;
}

.history .compact-table th, .history .compact-table td {
  padding: 0.4rem 0.5rem;
}

.history .compact-table thead tr:first-child th {
  font-size: 0.72rem;
  opacity: 0.7;
  border-bottom: none;
  padding-bottom: 0.25rem;
}

.history .compact-table thead tr:first-child th[colspan] {
  text-align: left;
}

.history .compact-table thead tr:nth-child(2) th {
  font-size: 0.72rem;
}

.history .history-more-row {
  margin-top: 0.75rem;
  text-align: center;
}

.history .history-filters {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.25rem 0 0.75rem;
}

.history .history-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.history .filter-pill {
  font-size: 0.72rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  opacity: 0.75;
}

.history .filter-pill[aria-current=true] {
  opacity: 1;
  border-color: #E35FCF;
}

/* Vertical dividers between the three column groups so Date | Spot | MWC/USD
 * Moving Averages | Average Block Difficulty read as distinct sections.
 * Scoped away from .vols — that table has one flat RV group, no sub-sections. */
.history:not(.vols) .compact-table thead tr:first-child th:nth-child(n+3),
.history:not(.vols) .compact-table thead tr:nth-child(2) th:nth-child(3),
.history:not(.vols) .compact-table thead tr:nth-child(2) th:nth-child(7),
.history:not(.vols) .compact-table tbody td:nth-child(4),
.history:not(.vols) .compact-table tbody td:nth-child(8) {
  border-left: 1px solid rgba(161, 152, 195, 0.4);
}

/* Mobile only: smooth horizontal scroll, sticky Date column, tighter cells.
 * On desktop the table fits without scroll so no sticky is needed; applying
 * `position: sticky` plus a background would just paint an unwanted shadow. */
.history .table-scroll {
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  .history .intro-tight {
    font-size: 1.4rem;
  }
  .history .history-panel {
    padding: 0.75rem;
  }
  .history .compact-table {
    font-size: 0.7rem;
  }
  .history .compact-table th, .history .compact-table td {
    padding: 0.35rem 0.4rem;
  }
  .history .compact-table thead tr:first-child th,
  .history .compact-table thead tr:nth-child(2) th {
    font-size: 0.65rem;
  }
  /* Pin the Date header + each tbody row's Date cell to the left edge during
   * horizontal scroll. The thead's second row has MWC/USD as its first child
   * so we scope the thead rule to the row that actually contains Date. */
  .history .compact-table thead tr:first-child th:first-child,
  .history .compact-table tbody tr > *:first-child {
    position: sticky;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
  }
  html[data-theme=light] .history .compact-table thead tr:first-child th:first-child,
  html[data-theme=light] .history .compact-table tbody tr > *:first-child {
    background: rgba(255, 255, 255, 0.9);
  }
}
/* Vols page: snapshot cards + chart. Theme-aware colors live on CSS vars so
   the Chart.js renderer can pick them up at draw time with getComputedStyle. */
:root {
  --vol-rv-30: #B188FF;
  --vol-rv-60: #5EA2FF;
  --vol-rv-90: #E35FCF;
  --vol-iv-muted: #A198C3;
  --vol-grid: rgba(161,152,195,0.18);
  --vol-axis-text: #9B91B5;
  --vol-card-bg: rgba(255,255,255,.02);
  --vol-card-border: rgba(161,152,195,.3);
}

html[data-theme=light] {
  /* Deeper saturations so lines + card values stay readable on white. */
  --vol-rv-30: #6D28D9;
  --vol-rv-60: #1D4ED8;
  --vol-rv-90: #BE185D;
  --vol-iv-muted: #4B4A6A;
  --vol-grid: rgba(60,52,100,0.15);
  --vol-axis-text: #4B4A6A;
  --vol-card-bg: rgba(0,0,0,.03);
  --vol-card-border: rgba(60,52,100,.25);
}

.vols .vols-snapshot {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.vols .vols-snapshot .eyebrow {
  margin: 0 0 0.6rem;
}

/* auto-fit lets the grid pack as many 150px+ cards per row as the panel can
 * hold. At any desktop width the three tenor cards fit on one row; the layout
 * only wraps when the viewport is truly narrower than ~500px. */
.vols .vol-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
}

.vols .vol-snapshot-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem 0.6rem;
  min-width: 0;
  border: 1px solid var(--vol-card-border);
  border-radius: 0.5rem;
  background: var(--vol-card-bg);
}

.vols .vol-snapshot-card .tenor {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--color-text-tertiary);
  text-align: center;
  text-transform: uppercase;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--vol-card-border);
}

.vols .vol-snapshot-card .metrics {
  display: flex;
  gap: 0.35rem;
}

.vols .vol-snapshot-card .metric {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.vols .vol-snapshot-card .metric-label {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--vol-iv-muted);
  text-transform: uppercase;
}

.vols .vol-snapshot-card .value {
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.vols .vol-snapshot-card .metric-iv .value {
  color: var(--vol-iv-muted);
}

.vols .vol-tenor-30 .metric-rv .value {
  color: var(--vol-rv-30);
}

.vols .vol-tenor-60 .metric-rv .value {
  color: var(--vol-rv-60);
}

.vols .vol-tenor-90 .metric-rv .value {
  color: var(--vol-rv-90);
}

/* Pin the panels and their contents so a wide Chart.js canvas or long table
 * can never push the layout past the viewport. Without min-width:0, flex/grid
 * children of .panel accept intrinsic widths and overflow outward instead of
 * triggering internal scroll. */
.vols .panel {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.vols .vols-chart-panel {
  padding: 1rem 1.25rem;
  min-width: 0;
}

/* Chart height scales with viewport so narrower windows don't force the chart
 * to spill below the fold. Clamp keeps a readable floor + ceiling. */
.vols .vols-chart-container {
  position: relative;
  width: 100%;
  height: clamp(200px, 36vw, 320px);
  margin: 0.75rem 0 1rem;
}

.vols .vols-chart-container > canvas {
  max-width: 100% !important;
}

/* MA chart on the public /history/ page — same shape as the vols chart. */
.history .ma-chart-panel {
  margin-bottom: 1rem;
}

.history .ma-chart-container {
  position: relative;
  width: 100%;
  height: clamp(220px, 38vw, 360px);
  margin: 0.75rem 0 0.5rem;
}

.history .ma-chart-container > canvas {
  max-width: 100% !important;
}

/* Series-toggle pills: colored swatch always visible so each pill reads as a
 * legend entry even when unselected; selected pills also gain a translucent
 * fill in the series' own color for stronger on/off differentiation. */
.history .series-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 1;
}

.history .series-pill:not([aria-current=true]) {
  opacity: 0.55;
}

.history .series-swatch {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3) inset;
}

/* Table lives inside .table-scroll which handles horizontal overflow — the
 * scroll wrapper itself must be width-constrained so the table columns scroll
 * inside the panel instead of expanding the panel. */
.vols .table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

@media (max-width: 480px) {
  .vols .vol-snapshot-card {
    padding: 0.4rem 0.5rem;
    gap: 0.25rem;
  }
  .vols .vol-snapshot-card .tenor {
    font-size: 0.68rem;
    padding-bottom: 0.25rem;
  }
  .vols .vol-snapshot-card .value {
    font-size: 0.9rem;
  }
}
:focus-visible {
  outline: 2px solid #E35FCF;
  outline-offset: 5px;
}

@media (max-width: 800px) {
  .quote-grid, .steps {
    grid-template-columns: 1fr;
  }
  .section-heading {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
.account-page .main {
  align-content: start;
  padding: 1rem 0;
}

.account-page .account {
  padding-top: 0;
  padding-bottom: 1.5rem;
}

.account .section-heading h1 {
  margin: 0.25rem 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.account .section-heading .eyebrow {
  margin: 0;
}

.account .account-nav {
  margin: 0.85rem 0;
  gap: 0.6rem;
}

/* Pricing shell: tabs sit above the body panel and the active tab visually
 * "connects" to it by sharing the border edge (negative bottom margin so the
 * tab paints over the panel's top border). */
/* Rounded tabs sitting flush against each other. The rounded top corners are
 * the only visual seam between neighboring tabs. Active tab shares the body
 * panel's background and overlaps the panel's top border by one pixel so the
 * two look fused into a single surface. */
.pricing-shell {
  margin-top: 1rem;
}

.pricing-tabs {
  display: flex;
  gap: 0;
  padding: 0;
  margin: 0;
}

.pricing-tab {
  background: rgba(0, 0, 0, 0.22);
  color: var(--color-text-secondary);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.6rem 1.4rem 0.7rem;
  position: relative;
  margin-bottom: -1px;
  border: none;
  border-radius: 0.75rem 0.75rem 0 0;
  transition: background 0.15s, color 0.15s;
}

.pricing-tab:hover {
  color: var(--color-text-primary);
  background: rgba(0, 0, 0, 0.3);
}

.pricing-tab[aria-current=page] {
  background: rgba(0, 0, 0, 0.35);
  color: var(--color-text-primary);
  z-index: 2;
}

html[data-theme=light] .pricing-tab {
  background: rgba(255, 255, 255, 0.35);
  color: #4B4A6A;
}

html[data-theme=light] .pricing-tab[aria-current=page] {
  background: rgba(255, 255, 255, 0.6);
  color: var(--color-light-text-primary);
}

.pricing-body {
  border-top-left-radius: 0;
  padding: 1.25rem;
}

/* Nested controls row (used inside each pricing view): three fields across. */
.pricing-view > .controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.pricing-view > .controls label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .pricing-view > .controls {
    grid-template-columns: 1fr;
  }
  .pricing-tabs {
    flex-wrap: wrap;
  }
}
/* `<details>` blocks inside pricing views don't need the full panel chrome. */
.pricing-view > details {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(161, 152, 195, 0.2);
  border-radius: 0.5rem;
}

html[data-theme=light] .pricing-view > details {
  background: rgba(255, 255, 255, 0.3);
}

/* MM Economics panel — shows PnL MM makes against our implied-vol feed. */
.pricing-view > .mm-econ {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(161, 152, 195, 0.25);
  border-radius: 0.5rem;
}

html[data-theme=light] .pricing-view > .mm-econ {
  background: rgba(255, 255, 255, 0.3);
}

.pricing-view > .mm-econ h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.pricing-view > .mm-econ .mm-sub {
  margin: 0 0 0.65rem;
}

.mm-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.mm-row {
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(161, 152, 195, 0.2);
  border-radius: 0.4rem;
  background: rgba(0, 0, 0, 0.1);
}

.mm-row .mm-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  font-weight: 600;
}

.mm-row .mm-pnl {
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 0.2rem;
}

.mm-row .mm-detail {
  font-size: 0.72rem;
  color: var(--color-text-secondary);
  margin-top: 0.1rem;
}

.mm-pnl.positive {
  color: #4ADE80;
}

.mm-pnl.negative {
  color: #F87171;
}

.mm-pnl.neutral {
  color: var(--color-text-secondary);
}

@media (max-width: 700px) {
  .mm-rows {
    grid-template-columns: 1fr;
  }
}
.account .button {
  font-size: 0.85rem;
  padding: 0.45rem 0.85rem;
}

.account .panel {
  padding: 1rem;
}

.account .controls {
  gap: 1rem;
}

.account .controls label {
  gap: 0.4rem;
  font-size: 0.8rem;
}

.account input, .account select {
  padding: 0.55rem 0.65rem;
  min-height: 38px;
}

.account #quote-status {
  margin: 0.55rem 0;
  font-size: 0.75rem;
  line-height: 1.4;
}

.account .quote-grid {
  gap: 1rem;
}

.account .quote-card .eyebrow {
  margin: 0 0 0.4rem;
}

.account .quote-card h2 {
  font-size: 2rem;
  margin: 0;
}

.account .quote-card > p:not(.eyebrow) {
  margin: 0.35rem 0 0.6rem;
  font-size: 0.8rem;
}

.account .quote-card dl {
  margin: 0.4rem 0 0.75rem;
}

.account .quote-card dl div {
  padding: 0.5rem 0;
  line-height: 1.3;
}

.account #quote-detail, .account details.panel {
  margin-top: 0.85rem;
}

.account details.panel summary {
  font-size: 0.85rem;
}

.account #quote-detail h2 {
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}

.account #quote-detail h3 {
  margin: 0.4rem 0;
  font-size: 0.9rem;
}

.account #quote-detail p {
  margin: 0.4rem 0;
  font-size: 0.85rem;
}

.account .login-panel {
  margin: 1rem auto;
}

@media (min-width: 761px) and (max-width: 800px) {
  .account .quote-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.auth-form .button {
  justify-self: start;
}

.auth-form .errorlist {
  color: #ffb8ca;
  padding-left: 1.25rem;
  font-size: 0.85rem;
}

html[data-theme=light] .auth-form .errorlist {
  color: #a10035;
}

.auth-form .small ul {
  padding-left: 1.25rem;
}

.header nav form {
  margin: 0;
}

.amount-control {
  display: flex;
  align-items: center;
  border: 1px solid #A198C3;
  border-radius: 0.5rem;
  background: #171320;
  color: white;
}

.amount-control > span {
  padding-left: 0.8rem;
  font-weight: 600;
}

.account .amount-control input {
  border: 0;
  background: transparent;
  padding-left: 0.45rem;
  min-width: 0;
}

.amount-control:focus-within {
  outline: 2px solid #E35FCF;
  outline-offset: 2px;
}

.account .amount-control input:focus-visible {
  outline: none;
}

html[data-theme=light] .amount-control {
  background: white;
  color: #222;
}

.account #amount-help {
  font-size: 0.72rem;
}

.inquiry-panel {
  max-width: 760px;
  margin: 1rem auto;
}

.inquiry-panel h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.inquiry-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.inquiry-message {
  grid-column: 1/-1;
}

.inquiry-panel textarea {
  width: 100%;
  resize: vertical;
  font: inherit;
  padding: 0.8rem;
  border: 1px solid #A198C3;
  border-radius: 0.5rem;
  background: #171320;
  color: white;
  box-sizing: border-box;
}

html[data-theme=light] .inquiry-panel textarea {
  background: white;
  color: #222;
}

.contact-email {
  font-size: 0.85rem;
  text-decoration: underline;
}

@media (max-width: 575px) {
  .inquiry-fields {
    grid-template-columns: 1fr;
  }
}

/*# sourceMappingURL=style.css.e7b06d327096.map */