/* PKOIN staking page — mirrors the Blocknet staking page. */

.staking-hero .project-hero__copy h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }

.staking-hero__easy { color: #d5e2e8; }

.staking-metrics {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-top: 20px;
}

.staking-metric {
  display: flex;
  flex-direction: column;
  padding: 14px 15px;
  border: 1px solid rgba(53, 189, 255, 0.2);
  border-radius: 14px;
  background: rgba(4, 12, 19, 0.72);
}

.staking-metric small {
  color: #7fa4b8;
  font-size: 0.56rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.staking-metric strong {
  margin-top: 8px;
  color: #eaf7fd;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1;
}

.staking-metric > span { margin-top: 6px; color: #8ea7b4; font-size: 0.72rem; }

.staking-metric--share strong { color: #55f5ac; }

.staking-metric b { color: #cfe9f7; font-weight: 700; }

/* ---------- Calculator ---------- */

.staking-calculator {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 13px;
  margin-top: 18px;
}

.staking-calculator__inputs,
.staking-calculator__results {
  padding: 22px;
  border: 1px solid rgba(53, 189, 255, 0.2);
  border-radius: 17px;
  background: rgba(4, 13, 19, 0.9);
}

.staking-calculator__inputs h3,
.staking-calculator__results h3 {
  margin: 0 0 16px;
  color: #f0f6f8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
}

.staking-field { display: block; margin-top: 12px; }

.staking-field > span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: #a6b6c0;
  font-size: 0.73rem;
  font-weight: 900;
}

.staking-field small { color: #66808f; font-weight: 400; }

.staking-field input {
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  padding: 0 13px;
  color: #eafcff;
  font: 900 1rem/1 "Trebuchet MS", sans-serif;
  border: 1px solid rgba(53, 189, 255, 0.27);
  border-radius: 10px;
  outline: none;
  background: rgba(53, 189, 255, 0.055);
}

.staking-field input:focus {
  border-color: rgba(53, 189, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(53, 189, 255, 0.08), 0 0 20px rgba(53, 189, 255, 0.08);
}

.staking-field__control { display: flex; gap: 7px; }

.staking-field__control input { flex: 1 1 auto; }

.staking-field__control button {
  flex: 0 0 auto;
  padding: 0 12px;
  color: #04120d;
  font-size: 0.6rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  border: 0;
  border-radius: 10px;
  background: #55f5ac;
  cursor: pointer;
}

.staking-field__hint {
  display: block;
  margin-top: 6px;
  color: #7f96a2;
  font-size: 0.67rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.4;
}

.staking-field--scenario input {
  border-color: rgba(85, 245, 172, 0.3);
  background: linear-gradient(90deg, rgba(85, 245, 172, 0.08), rgba(53, 189, 255, 0.04));
}

.staking-field--scenario input:focus { border-color: #55f5ac; box-shadow: 0 0 0 3px rgba(85, 245, 172, 0.08), 0 0 22px rgba(85, 245, 172, 0.09); }

.staking-calc-mode { display: block; margin-top: 10px; color: #708895; font-size: 0.66rem; line-height: 1.4; }

.staking-calc-button {
  width: 100%;
  min-height: 42px;
  margin-top: 15px;
  color: #04120d;
  font-weight: 900;
  letter-spacing: 0.06em;
  border: 0;
  border-radius: 10px;
  background: #55f5ac;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(85, 245, 172, 0.16);
}

.staking-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }

.staking-result {
  position: relative;
  display: flex;
  height: 78px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 8px 12px;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(85, 245, 172, 0.2);
  border-radius: 13px;
  background:
    radial-gradient(circle at 50% 120%, rgba(85, 245, 172, 0.11), transparent 55%),
    linear-gradient(145deg, rgba(85, 245, 172, 0.075), rgba(3, 11, 16, 0.82));
}

.staking-result::before {
  position: absolute;
  top: 0;
  left: 27%;
  width: 46%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(85, 245, 172, 0.7), transparent);
}

.staking-result small { color: #9aadb6; font-size: 0.66rem; font-weight: 900; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase; }

.staking-result strong {
  display: block;
  margin-top: 5px;
  color: #55f5ac;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.35vw, 1.78rem);
  line-height: 1;
  text-shadow: 0 0 18px rgba(85, 245, 172, 0.13);
}

.staking-result span { display: block; margin-top: 3px; color: #8ea2ac; font-size: 0.75rem; line-height: 1; }

.staking-result--reward strong { margin-top: 7px; }

.staking-formula {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 14px 16px;
  color: #a6bbc5;
  font: 0.84rem/1.55 Consolas, monospace;
  border: 1px solid rgba(53, 189, 255, 0.12);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.staking-formula strong {
  color: #35bdff;
  font: 900 0.68rem/1.2 "Trebuchet MS", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.staking-return-note {
  margin: 10px 0 0;
  padding: 13px 15px;
  color: #a9bcc5;
  font-size: 0.78rem;
  line-height: 1.55;
  border: 1px solid rgba(255, 200, 87, 0.2);
  border-left: 3px solid #ffc85c;
  border-radius: 11px;
  background: rgba(255, 200, 87, 0.055);
}

.staking-return-note strong { color: #ffc85c; }

/* ---------- APR history ---------- */

.staking-history {
  margin: 17px 0 0;
  padding: 23px;
  border: 1px solid rgba(53, 189, 255, 0.19);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 0, rgba(85, 245, 172, 0.09), transparent 34%),
    linear-gradient(145deg, rgba(7, 21, 29, 0.96), rgba(3, 9, 14, 0.98));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.staking-history__header { display: flex; align-items: end; justify-content: space-between; gap: 24px; }

.staking-history__header > div:first-child > span {
  color: #35bdff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.staking-history__header h2 {
  margin: 6px 0 4px;
  color: #f2f8fa;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.staking-history__header p { max-width: 620px; margin: 0; color: #8298a5; font-size: 0.8rem; line-height: 1.5; }

.staking-history__ranges {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  width: min(100%, 650px);
  gap: 5px;
}

.staking-history__ranges button {
  min-width: 0;
  padding: 8px 5px;
  color: #78919e;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  border: 1px solid rgba(53, 189, 255, 0.15);
  border-radius: 8px;
  background: rgba(53, 189, 255, 0.035);
  cursor: pointer;
}

.staking-history__ranges button:hover,
.staking-history__ranges button.is-active {
  color: #03130d;
  border-color: #55f5ac;
  background: #55f5ac;
  box-shadow: 0 0 18px rgba(85, 245, 172, 0.13);
}

.staking-history__summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 17px; }

.staking-history__summary article {
  padding: 12px 14px;
  border: 1px solid rgba(85, 245, 172, 0.14);
  border-radius: 11px;
  background: rgba(4, 14, 20, 0.72);
}

.staking-history__summary small {
  display: block;
  color: #748b98;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.staking-history__summary strong {
  display: block;
  margin-top: 6px;
  color: #55f5ac;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.staking-history__summary strong.is-negative { color: #ff6576; }

.staking-history__stage {
  position: relative;
  min-height: 320px;
  margin-top: 10px;
  overflow-x: auto;
  border: 1px solid rgba(53, 189, 255, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    rgba(1, 8, 13, 0.74);
  background-size: 38px 38px;
}

.staking-history__stage svg { display: block; width: 100%; min-width: 680px; height: 320px; }

.staking-chart-grid { stroke: rgba(129, 166, 183, 0.16); stroke-width: 1; }
.staking-chart-label { fill: #708896; font: 600 13px "Trebuchet MS", sans-serif; }
.staking-chart-line { fill: none; stroke: url(#stakingAprLine); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(85, 245, 172, 0.28)); }
.staking-chart-single { stroke: rgba(85, 245, 172, 0.32); stroke-width: 2; stroke-dasharray: 7 8; }
.staking-chart-point { fill: #55f5ac; stroke: #07131a; stroke-width: 3; }

.staking-history__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 25px;
  color: #7f96a2;
  font-size: 0.82rem;
  text-align: center;
}

.staking-history__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
  color: #6f8695;
  font-size: 0.7rem;
}

@media (max-width: 1100px) {
  .staking-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .staking-calculator { grid-template-columns: 1fr; }
  .staking-history__header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .staking-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staking-history { padding: 16px; }
  .staking-history__ranges { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
