:root {
  --fundal: #f2f6ed;
  --fundal-2: #e9efe0;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-solid: #ffffff;
  --linie: rgba(25, 65, 53, 0.14);
  --text: #14241f;
  --text-dim: #536c63;
  --accent: #0a9f6a;
  --accent-2: #ffb347;
  --accent-3: #136f5a;
  --pozitiv: #0b8f57;
  --negativ: #cc3f4b;
  --umbrire: 0 14px 34px rgba(16, 42, 32, 0.12);
}

* {
  box-sizing: border-box;
}

*:focus-visible {
  outline: 3px solid rgba(10, 159, 106, 0.35);
  outline-offset: 2px;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 90% -10%, #d5efd8 0%, transparent 36%),
    radial-gradient(circle at 10% 20%, #ffe8c4 0%, transparent 40%),
    linear-gradient(170deg, var(--fundal) 0%, var(--fundal-2) 100%);
  position: relative;
}

.fundal-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(19, 80, 64, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 80, 64, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

h1,
h2,
h3,
.brand-text strong,
.metrice strong,
th button {
  font-family: "Chakra Petch", sans-serif;
}

.antet {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(242, 246, 237, 0.9);
  border-bottom: 1px solid var(--linie);
}

.bara-nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.sigla {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.86rem;
  font-weight: 800;
  color: #063325;
  background: linear-gradient(145deg, #9ceec4 0%, #66d9a6 100%);
  box-shadow: 0 8px 18px rgba(16, 101, 74, 0.2);
}

.brand-text {
  display: grid;
}

.brand-text strong {
  font-size: 1.22rem;
  line-height: 1;
}

.brand-text small {
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.nav {
  display: flex;
  gap: 1.1rem;
}

.nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--accent-3);
}

.stare-piata {
  border: 1px solid var(--linie);
  border-radius: 999px;
  padding: 0.34rem 0.74rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--panel);
  font-size: 0.86rem;
  color: #21473b;
}

.dot-stare {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #889998;
}

.stare-piata.deschisa .dot-stare {
  background: #18bb74;
  box-shadow: 0 0 10px rgba(24, 187, 116, 0.5);
}

.stare-piata.inchisa .dot-stare {
  background: #f39d34;
  box-shadow: 0 0 10px rgba(243, 157, 52, 0.45);
}

.ticker {
  border-top: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
  min-height: 36px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
}

.ticker-track {
  display: inline-flex;
  gap: 2.2rem;
  color: #2d5248;
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker 30s linear infinite;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.hero {
  padding: 3.2rem 0 1.8rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.1rem;
}

.supratitlu {
  margin: 0;
  color: #2f6f5d;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 800;
}

h1 {
  margin: 0.72rem 0 0.9rem;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.04;
  max-width: 17.5ch;
}

.lead {
  margin: 0;
  max-width: 62ch;
  line-height: 1.72;
  color: var(--text-dim);
}

.actiuni {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn-primar,
.btn-secundar {
  border: 0;
  border-radius: 12px;
  padding: 0.76rem 1rem;
  text-decoration: none;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
}

.btn-primar {
  color: #093427;
  background: linear-gradient(140deg, #9ceec4 0%, #55cf97 100%);
}

.btn-secundar {
  color: #345a50;
  border: 1px solid var(--linie);
  background: rgba(255, 255, 255, 0.8);
}

.taguri {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.taguri li {
  border: 1px solid var(--linie);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.72);
  color: #32564b;
}

.panou-live {
  border: 1px solid var(--linie);
  border-radius: 18px;
  background: linear-gradient(160deg, #ffffff 0%, #f6fcf4 100%);
  box-shadow: var(--umbrire);
  padding: 1.1rem;
}

.panou-live h2 {
  margin: 0;
  font-size: 1.1rem;
}

.metrice {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.metrice article {
  border: 1px solid var(--linie);
  border-radius: 12px;
  padding: 0.72rem;
  background: rgba(255, 255, 255, 0.75);
}

.metrice p {
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metrice strong {
  margin-top: 0.32rem;
  display: inline-block;
  font-size: 1.26rem;
}

.mini-grafic {
  margin-top: 0.95rem;
  border: 1px solid var(--linie);
  border-radius: 12px;
  height: 92px;
  background: linear-gradient(180deg, rgba(230, 248, 236, 0.8) 0%, rgba(255, 255, 255, 0.7) 100%);
  overflow: hidden;
}

.mini-grafic svg {
  width: 100%;
  height: 100%;
}

.mini-grafic path {
  fill: none;
  stroke: #0a9f6a;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.live-controls {
  margin-top: 0.86rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.btn-refresh,
.btn-auto {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn-refresh {
  color: #5a3200;
  background: linear-gradient(130deg, #ffd89f 0%, #ffbb59 100%);
}

.btn-auto {
  color: #0a3b2c;
  background: linear-gradient(130deg, #b4f1cf 0%, #7be0ae 100%);
}

.btn-auto.pauza {
  color: #5b420d;
  background: linear-gradient(130deg, #ffe4b8 0%, #f4c26a 100%);
}

.actualizare {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

section {
  padding: 1.8rem 0;
}

.cap-sectiune {
  margin-bottom: 0.9rem;
}

.cap-sectiune h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.cap-sectiune p {
  margin: 0.42rem 0 0;
  color: var(--text-dim);
}

.oportunitati-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.card-oportunitate {
  border: 1px solid var(--linie);
  border-radius: 14px;
  background: linear-gradient(130deg, #f8fff8 0%, #fff8ea 100%);
  padding: 0.72rem;
  box-shadow: var(--umbrire);
}

.card-oportunitate h3 {
  margin: 0;
  font-size: 0.98rem;
}

.card-oportunitate p {
  margin: 0.34rem 0 0;
  color: #3b6157;
  font-size: 0.84rem;
}

.layout-piata {
  display: grid;
  grid-template-columns: 1.65fr 0.85fr;
  gap: 1rem;
  align-items: start;
}

.panou-terminal,
.card-lateral,
.calculator-box,
.grid-flux article,
.contact-box {
  border: 1px solid var(--linie);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--umbrire);
}

.panou-terminal {
  padding: 0.95rem;
}

.bara-control {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 0.66rem;
  align-items: end;
  margin-bottom: 0.72rem;
}

label {
  display: grid;
  gap: 0.32rem;
}

label span {
  color: #3f665b;
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(21, 82, 65, 0.2);
  background: #ffffff;
  color: var(--text);
  padding: 0 0.7rem;
  font: inherit;
}

input::placeholder {
  color: #7c9f95;
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.68rem;
}

.chipuri-categorie {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip-categorie {
  border: 1px solid rgba(23, 88, 70, 0.22);
  border-radius: 999px;
  background: #fff;
  color: #2f5b50;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.42rem 0.62rem;
  cursor: pointer;
}

.chip-categorie.activ {
  color: #0d4b3a;
  background: linear-gradient(140deg, #b9f4d3 0%, #91e8bc 100%);
  border-color: rgba(10, 159, 106, 0.44);
}

.switch-view {
  border: 1px solid rgba(23, 88, 70, 0.2);
  border-radius: 11px;
  background: #fff;
  padding: 0.2rem;
  display: inline-flex;
  gap: 0.2rem;
}

.btn-view {
  border: 0;
  border-radius: 8px;
  min-height: 32px;
  padding: 0 0.72rem;
  font-weight: 700;
  font-size: 0.81rem;
  color: #40665c;
  background: transparent;
  cursor: pointer;
}

.btn-view.activ {
  background: #def5e7;
  color: #114a3a;
}

.rezumat-filtru {
  margin: 0 0 0.66rem;
  color: #4a6f65;
  font-size: 0.85rem;
  font-weight: 600;
}

.tabel-wrap {
  border: 1px solid var(--linie);
  border-radius: 13px;
  overflow: auto;
  background: #fbfef9;
}

table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

thead {
  background: #edf7ee;
}

th,
td {
  padding: 0.78rem;
  text-align: left;
  border-bottom: 1px solid rgba(25, 65, 53, 0.1);
  font-size: 0.94rem;
}

th button {
  border: 0;
  background: transparent;
  color: #255749;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}

tbody tr:hover {
  background: rgba(142, 229, 184, 0.12);
}

.col-simbol {
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1c4f41;
}

.delta-pozitiv {
  color: var(--pozitiv);
  font-weight: 800;
}

.delta-negativ {
  color: var(--negativ);
  font-weight: 800;
}

.eticheta-lichiditate,
.eticheta-stare {
  display: inline-block;
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  font-size: 0.76rem;
  font-weight: 800;
}

.lichiditate-ridicata {
  color: #0f5f41;
  background: #b7efd1;
}

.lichiditate-medie {
  color: #74510d;
  background: #ffe0a9;
}

.lichiditate-limitata {
  color: #7a2d2d;
  background: #ffd0d0;
}

.stare-disponibil {
  color: #155b41;
  background: #caefd9;
}

.stare-limitat {
  color: #76510e;
  background: #ffe6b6;
}

.stare-cerere {
  color: #7a2d2d;
  background: #ffd4d4;
}

.celula-lichiditate {
  display: grid;
  gap: 0.24rem;
}

.bara-lichiditate {
  height: 6px;
  border-radius: 999px;
  background: #e4efe7;
  overflow: hidden;
}

.bara-lichiditate span {
  display: block;
  height: 100%;
  border-radius: inherit;
  width: var(--nivel);
  background: linear-gradient(90deg, #73dba5 0%, #0ea16d 100%);
}

.btn-watch {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(21, 82, 65, 0.24);
  border-radius: 10px;
  background: #fff;
  color: #8daaa1;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn-watch:hover {
  transform: translateY(-1px);
  border-color: rgba(21, 82, 65, 0.44);
}

.btn-watch.activ {
  color: #e49315;
  border-color: rgba(227, 146, 14, 0.45);
  background: #fff7e8;
}

.grid-cotatii {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.72rem;
}

.card-cotatie {
  border: 1px solid rgba(22, 88, 69, 0.18);
  border-radius: 14px;
  background: #fbfef9;
  padding: 0.72rem;
  box-shadow: 0 8px 20px rgba(11, 57, 43, 0.08);
}

.card-cotatie-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-cotatie-header strong {
  font-size: 0.96rem;
}

.card-cotatie-header span {
  color: #4f756a;
  font-size: 0.78rem;
}

.card-cotatie-body {
  margin-top: 0.58rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.44rem;
}

.meta-card {
  border: 1px solid rgba(22, 88, 69, 0.14);
  border-radius: 10px;
  padding: 0.46rem;
}

.meta-card p {
  margin: 0;
  color: #58796f;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meta-card strong {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.92rem;
  color: #194e40;
}

.card-cotatie-footer {
  margin-top: 0.58rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.56rem;
}

.card-cotatie-footer .btn-watch {
  width: auto;
  min-width: 38px;
  padding: 0 0.52rem;
}

.panou-lateral {
  display: grid;
  gap: 0.9rem;
}

.card-lateral {
  padding: 0.9rem;
}

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

.titlu-lateral h3,
.card-lateral h3 {
  margin: 0;
  font-size: 1.06rem;
}

.titlu-lateral span {
  color: var(--text-dim);
  font-size: 0.82rem;
}

.lista-watchlist {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.52rem;
}

.item-watch {
  border: 1px solid rgba(25, 65, 53, 0.12);
  border-radius: 12px;
  padding: 0.56rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.52rem;
  background: #fbfef9;
}

.item-watch strong {
  display: block;
  font-size: 0.92rem;
}

.item-watch small {
  color: var(--text-dim);
  font-size: 0.78rem;
}

.item-watch button {
  border: 0;
  border-radius: 8px;
  padding: 0.38rem 0.52rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  color: #7b3030;
  background: #ffe3e3;
}

.gol {
  margin: 0.65rem 0 0;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.hint {
  margin: 0.6rem 0 0;
  color: var(--text-dim);
  font-size: 0.84rem;
  line-height: 1.5;
}

.alerta-status {
  margin: 0.55rem 0 0;
  border-radius: 10px;
  padding: 0.56rem 0.62rem;
  font-size: 0.84rem;
  font-weight: 700;
  background: #eef4ec;
  color: #47665d;
}

.alerta-status.alerta-ok {
  background: #d9f4e4;
  color: #0f6344;
}

.alerta-status.alerta-warn {
  background: #ffeccd;
  color: #7c5414;
}

.calculator-box {
  padding: 0.95rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  align-items: end;
}

.rezultate-calc {
  grid-column: 1 / -1;
  border: 1px solid rgba(25, 65, 53, 0.12);
  border-radius: 12px;
  background: #fbfef9;
  padding: 0.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.rezultate-calc p {
  margin: 0;
  color: #375c52;
  font-size: 0.9rem;
}

.rezultate-calc strong {
  color: #114a3b;
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.03rem;
}

.grid-flux {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.grid-flux article {
  padding: 1rem;
}

.grid-flux h3 {
  margin: 0;
  font-size: 1.1rem;
}

.grid-flux p {
  margin: 0.5rem 0 0;
  line-height: 1.65;
  color: var(--text-dim);
}

.contact-box {
  padding: 1.1rem;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1rem;
  background: linear-gradient(125deg, #f8fff8 0%, #fff7e7 100%);
}

.contact-box h2 {
  margin: 0;
}

.contact-box p {
  margin: 0.45rem 0 0;
  color: var(--text-dim);
}

.contact-box ul {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.8;
  color: #385f54;
}

.subsol {
  margin-top: 1.3rem;
  border-top: 1px solid var(--linie);
  padding: 1rem 0 1.4rem;
  color: #527066;
}

.toast-ui {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  border-radius: 12px;
  padding: 0.66rem 0.78rem;
  color: #f0fff8;
  background: rgba(18, 72, 57, 0.94);
  box-shadow: 0 16px 26px rgba(10, 44, 34, 0.22);
  font-size: 0.84rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-ui.show {
  opacity: 1;
  transform: translateY(0);
}

.btn-sus {
  position: fixed;
  right: 1rem;
  bottom: 4.2rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(150deg, #0f855c 0%, #0b6c4c 100%);
  box-shadow: 0 12px 20px rgba(9, 62, 45, 0.24);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 80;
}

.btn-sus.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.is-hidden {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.65s ease forwards;
}

.reveal:nth-of-type(2) {
  animation-delay: 0.08s;
}

.reveal:nth-of-type(3) {
  animation-delay: 0.16s;
}

.reveal:nth-of-type(4) {
  animation-delay: 0.24s;
}

.reveal:nth-of-type(5) {
  animation-delay: 0.3s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .oportunitati-top {
    grid-template-columns: 1fr;
  }

  .layout-piata,
  .hero-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .bara-control {
    grid-template-columns: repeat(2, 1fr);
  }

  .calculator-box {
    grid-template-columns: repeat(2, 1fr);
  }

  .rezultate-calc {
    grid-template-columns: 1fr;
  }

  .grid-cotatii {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav {
    display: none;
  }

  .bara-nav {
    flex-wrap: wrap;
    min-height: auto;
    padding: 0.8rem 0;
  }

  .stare-piata {
    width: 100%;
    justify-content: center;
  }

  .bara-control,
  .calculator-box,
  .metrice,
  .grid-flux {
    grid-template-columns: 1fr;
  }

  .control-row {
    align-items: stretch;
  }

  .switch-view {
    width: 100%;
    justify-content: stretch;
  }

  .btn-view {
    flex: 1;
  }

  .live-controls {
    grid-template-columns: 1fr;
  }

  .btn-primar,
  .btn-secundar {
    width: 100%;
    text-align: center;
  }

  .toast-ui {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.8rem;
  }

  .btn-sus {
    right: 0.75rem;
    bottom: 4.4rem;
  }
}
