@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

/* Interfața modulară: siglă, meniu de colț, hartă și rubrici noi */

/* Siglă: ceas relativist traversat de orbită */
.relativity-logo::before,
.relativity-logo::after,
.relativity-logo i {
  display: none;
}

/* Realizări XP, PFP-uri și titluri — versiunea extinsă până la 100.000 XP. */
.romania-map-layout {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 390px) !important;
  align-items: start !important;
}

.xp-achievement-trail {
  min-height: 0 !important;
  max-height: min(82vh, 860px);
  overflow: auto !important;
  position: sticky;
  top: 92px;
  scrollbar-width: thin;
  scrollbar-color: rgba(35, 99, 78, .5) rgba(226, 235, 221, .8);
}

.xp-achievement-trail::-webkit-scrollbar { width: 9px; }
.xp-achievement-trail::-webkit-scrollbar-track { background: rgba(226, 235, 221, .8); border-radius: 99px; }
.xp-achievement-trail::-webkit-scrollbar-thumb { background: rgba(35, 99, 78, .45); border-radius: 99px; }

.xp-trail-path {
  height: var(--xp-trail-height, 570px) !important;
  margin-top: 14px !important;
}

.xp-trail-path svg {
  height: 100% !important;
}

.xp-trail-path svg path {
  stroke: rgba(49, 112, 89, .88) !important;
  stroke-width: 4.5 !important;
  stroke-dasharray: 6 11 !important;
}

.xp-trail-path svg .xp-trail-shadow {
  stroke: rgba(185, 205, 162, .36) !important;
  stroke-width: 17 !important;
  stroke-dasharray: none !important;
}

.xp-trail-node {
  width: 48px !important;
  height: 48px !important;
}

.xp-trail-node:hover,
.xp-trail-node:focus-visible {
  z-index: 8;
  outline: none;
}

.xp-node-bubble {
  width: 48px !important;
  height: 48px !important;
  position: relative;
  overflow: hidden;
  border: 4px solid #fffaf0 !important;
  background: linear-gradient(145deg, #dfe7d8, #f8f5e7) !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.xp-node-bubble img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.xp-node-bubble i {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  position: absolute;
  right: -2px;
  bottom: -2px;
  border: 2px solid #fffaf0;
  border-radius: 50%;
  color: #fff;
  background: #27795e;
  font-size: .55rem;
  font-style: normal;
  font-weight: 900;
}

.xp-node-bubble-title {
  color: #fff8e7 !important;
  background: radial-gradient(circle at 30% 20%, #dbbd75, #244f42 72%) !important;
  font-family: var(--serif);
}

.xp-trail-node.done .xp-node-bubble {
  filter: saturate(1.08);
  box-shadow: 0 10px 22px rgba(29, 92, 71, .24);
}

.xp-trail-node.current .xp-node-bubble {
  color: #533f12;
  background: radial-gradient(circle at 30% 20%, #fff0ae, #dfbc55 68%) !important;
  animation: trail-pulse 1.9s ease-in-out infinite;
}

.xp-trail-node.locked .xp-node-bubble {
  filter: grayscale(.72);
  opacity: .62;
}

.xp-node-card {
  width: 136px !important;
  padding: 8px 10px !important;
  border-radius: 14px !important;
  backdrop-filter: blur(10px);
  background: rgba(255, 254, 248, .92) !important;
}

.xp-trail-node.card-right .xp-node-card { left: 58px !important; }
.xp-trail-node.card-left .xp-node-card { right: 58px !important; }
.xp-node-card small { font-size: .49rem !important; letter-spacing: .04em; text-transform: uppercase; }
.xp-node-card strong { font-size: .63rem !important; }
.xp-node-card em { font-size: .48rem !important; }

.leader-avatar-photo {
  overflow: hidden;
  padding: 0 !important;
  color: transparent !important;
  background: #f4eddc !important;
}

.leader-avatar-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.row-user {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.row-user > span:not(.leader-avatar) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.row-user small {
  color: #9b7b3f;
  font-size: .55rem;
  font-weight: 820;
}

.creator-badge {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
  color: #7b5d22;
  font-size: .54rem;
  font-weight: 880;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.creator-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c8942c;
  box-shadow: 0 0 0 3px rgba(200, 148, 44, .14);
}

.achievement-popup-modal[hidden] { display: none !important; }
.achievement-popup-modal {
  position: fixed;
  z-index: 1300;
  inset: 0;
  padding: 24px;
  display: grid;
  place-items: center;
}

.achievement-popup-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 26, 23, .42);
  backdrop-filter: blur(6px);
}

.achievement-popup-card {
  width: min(100%, 560px);
  position: relative;
  z-index: 1;
  padding: 24px;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 22px;
  align-items: center;
  border: 1px solid rgba(255, 250, 236, .6);
  border-radius: 24px;
  color: #173d36;
  background: linear-gradient(145deg, #fffdf6, #edf5e9);
  box-shadow: 0 34px 90px rgba(10, 31, 27, .32);
}

.achievement-popup-close {
  width: 34px;
  height: 34px;
  position: absolute;
  top: 13px;
  right: 13px;
  border: 1px solid rgba(23, 61, 54, .15);
  border-radius: 50%;
  color: #24483f;
  background: #fffaf0;
  cursor: pointer;
}

.achievement-popup-art {
  width: 132px;
  height: 132px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 6px solid #fff8e8;
  border-radius: 30px;
  color: #fff8e8;
  background: radial-gradient(circle at 30% 20%, #d8b86d, #1f5044 72%);
  box-shadow: 0 18px 34px rgba(34, 83, 67, .2);
}

.achievement-popup-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.achievement-popup-art span {
  font-family: var(--serif);
  font-size: 4.2rem;
}

.achievement-popup-card small {
  color: #96743b;
  font-size: .63rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.achievement-popup-card h3 {
  margin: 6px 0 8px;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: .95;
}

.achievement-popup-card p {
  margin: 0 0 16px;
  color: #5b6e68;
  line-height: 1.6;
}

.profile-title-badge {
  width: fit-content;
  margin-top: 7px;
  padding: 6px 10px;
  display: inline-flex;
  border: 1px solid rgba(168, 130, 57, .28);
  border-radius: 999px;
  color: #6f5120;
  background: #fbf2d9;
  font-size: .58rem;
  font-weight: 850;
}

.profile-stats-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.profile-stats-strip span {
  padding: 13px;
  border: 1px solid rgba(24, 66, 58, .12);
  border-radius: 14px;
  background: #f8f5ec;
}

.profile-stats-strip strong {
  display: block;
  color: #193f37;
  font-size: 1.2rem;
}

.profile-stats-strip small {
  color: #71807b;
  font-size: .58rem;
  font-weight: 760;
}

.profile-reward-selector {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(24, 66, 58, .12);
  border-radius: 18px;
  background: linear-gradient(145deg, #fbf8ef, #eef5eb);
}

.profile-reward-heading,
.profile-reward-grid section header,
.profile-active-loadout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-reward-heading h3 {
  margin: 0;
  color: #173d36;
}

.profile-reward-heading > strong {
  color: #1c634f;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
}

.profile-active-loadout {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 253, 247, .8);
}

.profile-active-loadout > div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #60736d;
  font-size: .6rem;
  font-weight: 760;
}

.profile-active-loadout b {
  color: #173d36;
  font-size: .8rem;
}

.profile-reward-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.profile-reward-grid section {
  min-width: 0;
}

.profile-reward-grid section header strong {
  color: #173d36;
  font-size: .72rem;
}

.profile-reward-grid section header button {
  border: 0;
  color: #876834;
  background: transparent;
  cursor: pointer;
  font: 850 .58rem "Space Grotesk", sans-serif;
}

.profile-reward-scroll,
.profile-title-scroll {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.profile-reward-option,
.profile-title-option {
  width: 100%;
  min-height: 54px;
  padding: 8px;
  display: grid;
  align-items: center;
  border: 1px solid rgba(31, 82, 68, .13);
  border-radius: 14px;
  color: #1c4139;
  background: rgba(255, 254, 249, .88);
  cursor: pointer;
  text-align: left;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.profile-reward-option {
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
}

.profile-reward-option img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.profile-title-option {
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.profile-reward-option small,
.profile-title-option small {
  color: #92723c;
  font-size: .54rem;
  font-weight: 850;
}

.profile-reward-option.active,
.profile-title-option.active {
  border-color: rgba(33, 116, 86, .55);
  box-shadow: 0 10px 24px rgba(32, 92, 73, .12);
}

.profile-reward-option:hover,
.profile-title-option:hover {
  transform: translateY(-1px);
}

.profile-reward-empty {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  color: #6d7b77;
  background: rgba(255, 255, 255, .58);
  font-size: .64rem;
}

.account-avatar-achievement {
  border: 3px solid #fff5dc;
  box-shadow: 0 12px 24px rgba(34, 83, 67, .18);
}

@media (max-width: 1120px) {
  .romania-map-layout {
    grid-template-columns: 1fr !important;
  }

  .xp-achievement-trail {
    position: relative;
    top: auto;
    width: min(100%, 430px) !important;
    margin-inline: auto;
  }
}

@media (max-width: 620px) {
  .xp-node-card {
    width: 112px !important;
  }

  .profile-stats-strip,
  .achievement-popup-card {
    grid-template-columns: 1fr;
  }

  .achievement-popup-art {
    width: 108px;
    height: 108px;
  }
}

.relativity-logo svg {
  width: 48px;
  height: 48px;
  overflow: visible;
  color: var(--j-forest);
}

.logo-clock,
.logo-orbit,
.logo-ticks,
.logo-hands {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-clock {
  stroke-width: 2.6;
}

.logo-orbit {
  stroke-width: 2.2;
  opacity: 0.74;
}

.logo-ticks {
  stroke-width: 2.3;
  opacity: 0.72;
}

.logo-hands {
  stroke-width: 3;
}

.logo-core {
  fill: var(--j-sun);
  stroke: var(--j-forest);
  stroke-width: 1.5;
}

.logo-particle {
  fill: var(--j-coral);
  stroke: var(--j-paper);
  stroke-width: 2;
}

.brand:hover .logo-orbit {
  animation: logo-orbit-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes logo-orbit-pulse {
  to {
    transform: rotate(-12deg);
    transform-origin: 32px 32px;
  }
}

/* Meniul cu trei puncte în triunghi */
.corner-menu {
  position: relative;
  z-index: 105;
  margin-left: auto;
}

.corner-menu-toggle {
  width: 50px;
  height: 50px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 75, 60, 0.2);
  border-radius: 50%;
  color: var(--j-forest);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 20px rgba(23, 75, 60, 0.1);
  cursor: pointer;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.corner-menu-toggle:hover,
.corner-menu-toggle[aria-expanded="true"] {
  color: white;
  background: var(--j-forest);
  transform: rotate(10deg);
}

.corner-dots {
  position: relative;
  width: 24px;
  height: 22px;
  display: block;
}

.corner-dots i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}

.corner-dots i:nth-child(1) {
  left: 9px;
  top: 1px;
}

.corner-dots i:nth-child(2) {
  left: 2px;
  bottom: 1px;
}

.corner-dots i:nth-child(3) {
  right: 2px;
  bottom: 1px;
}

.corner-menu-panel {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  width: min(350px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 125px));
  padding: 14px;
  display: grid;
  gap: 7px;
  overflow-y: auto;
  border: 1px solid rgba(23, 75, 60, 0.16);
  border-radius: 22px;
  z-index: 999;
  background: #fffdf5;
  box-shadow: 0 26px 70px rgba(21, 61, 48, 0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.97);
  transform-origin: top right;
  transition: opacity 170ms ease, visibility 170ms ease, transform 170ms ease;
}

.corner-menu-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.corner-menu-panel>p {
  margin: 4px 8px 8px;
  color: var(--j-muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.corner-menu-panel a {
  min-height: 66px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 15px;
  background: #edf6e8;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.corner-menu-panel a:hover,
.corner-menu-panel a.active {
  border-color: rgba(23, 75, 60, 0.24);
  background: white;
  transform: translateX(-3px);
}

.corner-menu-panel a>span {
  width: 36px;
  height: 36px;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--j-forest);
  background: var(--j-sun);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.6rem;
  font-weight: 850;
}

.corner-menu-panel strong {
  align-self: end;
  color: var(--j-forest-deep);
  font-size: 0.85rem;
}

.corner-menu-panel small {
  align-self: start;
  color: var(--j-muted);
  font-size: 0.66rem;
}

/* Imaginea de intrare */
.home-hero {
  grid-template-columns: minmax(430px, 46%) minmax(0, 54%);
  padding: 28px;
  gap: 0;
}

.home-hero::before {
  display: none;
}

.hero-copy {
  width: min(700px, calc(100% - 44px));
  margin-left: max(10px, calc((100vw - 1420px) / 2));
  padding-right: 46px;
}

.hero-copy h1 {
  font-size: clamp(3.6rem, 5.1vw, 6.1rem);
}

.hero-landscape {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 148px);
  margin: 0;
  overflow: hidden;
  border-radius: 34px;
  background: var(--j-forest);
  box-shadow: 0 30px 75px rgba(23, 75, 60, 0.22);
  isolation: isolate;
}

.hero-landscape::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 53, 44, 0.25), transparent 35%), linear-gradient(0deg, rgba(14, 53, 44, 0.55), transparent 30%);
  pointer-events: none;
}

.hero-landscape img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  object-position: 56% center;
  transition: transform 1.2s ease;
}

.home-hero:hover .hero-landscape img {
  transform: scale(1.018);
}

.hero-landscape figcaption {
  position: absolute;
  z-index: 2;
  left: 26px;
  right: 26px;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Clasamentul pe harta României */
.leaderboard-hero-copy>p:last-child {
  max-width: 700px;
  color: #536b63;
  line-height: 1.7;
}

.romania-ranking-section {
  margin-top: 26px;
  padding: clamp(24px, 4vw, 54px);
  border: 1px solid var(--j-line);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 253, 245, 0.98), rgba(227, 244, 221, 0.78));
  box-shadow: 0 22px 60px rgba(23, 75, 60, 0.1);
}

.romania-map-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 30px;
}

.romania-map-heading h2 {
  margin: 0;
  color: var(--j-forest-deep);
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.5vw, 5rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.romania-map-heading>p {
  max-width: 390px;
  margin: 0 0 7px;
  color: var(--j-muted);
  line-height: 1.65;
}

.romania-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 26px;
}

.romania-map-stage {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  border: 1px solid rgba(23, 75, 60, 0.16);
  border-radius: 26px;
  background:
    radial-gradient(circle at 35% 35%, rgba(101, 200, 239, 0.24), transparent 26rem),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(23, 75, 60, 0.035) 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(23, 75, 60, 0.035) 40px),
    #e9f5e1;
}

.romania-map-image {
  position: absolute;
  left: 5%;
  top: 7%;
  width: 90%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 18px 20px rgba(23, 75, 60, 0.16));
}

.map-city-label {
  position: absolute;
  z-index: 2;
  left: var(--map-x);
  top: var(--map-y);
  color: rgba(23, 75, 60, 0.62);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.51rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  pointer-events: none;
  transform: translate(12px, 18px);
}

.map-city-label::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.community-user-marker {
  position: absolute;
  z-index: 5;
  left: var(--map-x);
  top: var(--map-y);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: z-index 0s, transform 160ms ease;
}

.community-user-marker:hover,
.community-user-marker:focus-visible {
  z-index: 20;
  transform: translate(-50%, -50%) scale(1.1);
}

.community-user-marker .leader-avatar {
  width: 34px;
  height: 34px;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(18, 55, 44, 0.25);
}

.community-user-marker>small {
  position: absolute;
  left: 50%;
  top: calc(100% + 2px);
  padding: 2px 5px;
  border-radius: 5px;
  color: white;
  background: rgba(14, 53, 44, 0.86);
  font-size: 0.48rem;
  white-space: nowrap;
  transform: translateX(-50%);
}

.community-user-marker>small .creator-badge {
  margin-left: 5px;
  color: #ffe8a5;
  font-size: .44rem;
}

.community-user-marker>small .creator-badge i {
  width: 5px;
  height: 5px;
  background: #ffe8a5;
  box-shadow: none;
}

.podium-map-marker {
  z-index: 12;
}

.podium-map-marker .leader-avatar {
  width: 48px;
  height: 48px;
  border-color: var(--j-sun);
}

.podium-map-marker.rank-1 .leader-avatar {
  width: 58px;
  height: 58px;
  box-shadow: 0 0 0 6px rgba(255, 200, 63, 0.25), 0 8px 22px rgba(18, 55, 44, 0.3);
}

.map-xp {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  min-width: 76px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 2px solid white;
  border-radius: 999px;
  color: var(--j-forest-deep);
  background: var(--j-sun);
  box-shadow: 0 8px 18px rgba(23, 75, 60, 0.17);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.57rem;
  font-weight: 850;
  white-space: nowrap;
  transform: translateX(-50%);
}

.map-xp::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  border: 5px solid transparent;
  border-top-color: white;
  transform: translateX(-50%);
}

.map-xp b {
  color: #b4472f;
}

.avatar-local {
  color: white;
  background: var(--j-forest);
}

.local-map-marker .leader-avatar {
  box-shadow: 0 0 0 5px rgba(255, 118, 88, 0.32);
}

.map-compass {
  position: absolute;
  right: 22px;
  bottom: 20px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 75, 60, 0.28);
  border-radius: 50%;
  color: var(--j-forest);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.58rem;
}

.map-compass i {
  position: absolute;
  width: 14px;
  height: 31px;
  background: linear-gradient(var(--j-coral) 0 50%, var(--j-forest) 50%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.map-compass b {
  position: absolute;
  top: -15px;
}

.map-user-detail {
  padding: 25px;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  color: white;
  background: linear-gradient(155deg, var(--j-forest), var(--j-forest-deep));
  box-shadow: 0 18px 45px rgba(14, 53, 44, 0.23);
}

.map-user-rank {
  color: var(--j-lime);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.map-user-title {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.map-user-title h3 {
  margin: 0;
  font-size: 1rem;
}

.map-user-title p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.65rem;
}

.map-user-detail>strong {
  margin-top: 34px;
  color: var(--j-sun);
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
}

.map-user-detail dl {
  margin: 30px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.map-user-detail dl div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.map-user-detail dt {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.56rem;
}

.map-user-detail dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.map-user-detail>small {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.55;
}

.your-map-score {
  margin-top: 24px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 25px;
  align-items: center;
  border: 1px solid var(--j-line);
  border-radius: 22px;
  background: var(--j-paper);
  box-shadow: 0 14px 38px rgba(23, 75, 60, 0.08);
}

.your-map-score .kicker {
  margin-bottom: 7px;
}

.your-rank-number {
  color: var(--j-forest);
  font-family: var(--serif);
  font-size: 2.8rem;
}

.your-map-score>div:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.your-map-score>div:nth-child(2) strong {
  font-size: 1.3rem;
}

.your-map-score>div:nth-child(2) small {
  color: var(--j-muted);
}

.ranking-row[type="button"] {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(17, 21, 61, 0.09);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

/* Alegerea localității în cont */
.local-account-form {
  margin-top: 24px;
}

.local-account-form label {
  display: block;
  margin: 12px 0 6px;
  color: var(--j-forest-deep);
  font-size: 0.68rem;
  font-weight: 760;
}

.local-account-form input,
.local-account-form select,
.new-topic-form input,
.new-topic-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--j-line);
  border-radius: 10px;
  color: var(--j-ink);
  background: white;
}

.local-account-form .button {
  width: 100%;
  margin-top: 18px;
}

.location-field-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 10px;
}

.location-search-label {
  margin-top: 9px !important;
}

.locality-data-note {
  margin: 10px 0 0;
  padding: 9px 10px;
  display: flex;
  gap: 8px;
  border-radius: 10px;
  color: var(--j-muted);
  background: var(--j-mist);
  font-size: 0.58rem;
  line-height: 1.45;
}

.locality-data-note span {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--j-forest);
  font-weight: 800;
}

.map-consent {
  margin-top: 13px !important;
  padding: 10px;
  display: flex !important;
  gap: 10px;
  border: 1px solid var(--j-line);
  border-radius: 12px;
  cursor: pointer;
}

.map-consent input {
  width: 17px;
  min-height: 17px;
  margin-top: 2px;
}

.map-consent span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.map-consent small {
  color: var(--j-muted);
  font-weight: 400;
  line-height: 1.4;
}

.profile-location-card {
  margin-top: 28px;
  padding: 15px;
  display: flex;
  gap: 12px;
  border-radius: 15px;
  background: var(--j-mist);
}

.profile-location-card>span {
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--j-forest);
}

.profile-location-card div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-location-card small {
  color: var(--j-muted);
}

.profile-location-card p {
  margin: 2px 0 0;
  color: var(--j-muted);
  font-size: 0.62rem;
}

/* Sesiunea online din pagina Cont */
.online-account-panel {
  margin-top: 22px;
  padding: 14px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(24, 123, 109, 0.2);
  border-radius: 15px;
  background: linear-gradient(135deg, #edf8ed, #f8f5e5);
}

.online-account-panel .account-avatar {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  font-size: 1.35rem;
}

.account-avatar-photo {
  overflow: hidden;
  padding: 0;
  background: #e7eadf;
}

.account-avatar-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.online-account-panel>div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.online-account-panel small {
  color: #147b6d;
  font-size: 0.58rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.online-account-panel strong,
.online-account-panel span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-account-panel strong {
  color: var(--j-forest-deep);
  font-size: 0.84rem;
}

.online-account-panel span {
  color: var(--j-muted);
  font-size: 0.65rem;
}

.online-account-panel>b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #147b6d;
  font-size: 0.62rem;
}

.online-account-panel>b i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22a895;
  box-shadow: 0 0 0 4px rgba(34, 168, 149, 0.12);
}

.account-profile-compact {
  margin-top: 28px;
}

.account-action-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.account-action-row .account-signout,
.account-card>.account-signout {
  min-height: 40px;
  margin-top: 0;
  padding: 0 13px;
  border: 1px solid var(--j-line);
  border-radius: 10px;
}

.account-card>.account-signout {
  margin-top: 15px;
}

.account-delete-local {
  color: #8b4c3c !important;
}

.account-signout:disabled {
  cursor: wait;
  opacity: 0.65;
}

.account-notice.is-success {
  color: #17664d;
  border-color: rgba(34, 168, 149, 0.25);
  background: #e5f5e9;
}

.account-card-loading {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.account-loading-mark {
  width: 42px;
  height: 42px;
  margin: 44px 0 24px;
  border: 2px solid rgba(20, 123, 109, 0.16);
  border-top-color: #147b6d;
  border-radius: 50%;
  animation: account-loading 850ms linear infinite;
}

.account-card-loading h2 {
  margin: 0;
  color: var(--j-forest-deep);
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
}

.account-card-loading p {
  margin: 12px 0 0;
  color: var(--j-muted);
  font-size: 0.75rem;
}

.profile-tool.is-authenticated {
  position: relative;
  color: #0f7769;
}

.profile-tool.is-authenticated::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 7px;
  height: 7px;
  border: 2px solid #f5f2e8;
  border-radius: 50%;
  background: #22a895;
}

@keyframes account-loading {
  to { transform: rotate(360deg); }
}

@media(max-width:540px) {
  .online-account-panel {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .online-account-panel>b {
    grid-column: 2;
  }
}

/* Discuții */
.discussion-hero,
.missions-hero,
.lessons-hub-hero {
  width: min(100% - 80px, 1360px);
  margin: 0 auto;
  padding: 82px 0 62px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 65px;
  align-items: end;
}

.discussion-hero h1,
.missions-hero h1,
.lessons-hub-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--j-forest-deep);
  font-family: var(--serif);
  font-size: clamp(3.4rem, 5.5vw, 6.5rem);
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: -0.055em;
}

.discussion-hero>div>p:last-child,
.missions-hero>div>p:last-child,
.lessons-hub-hero>div>p:last-child {
  max-width: 720px;
  color: var(--j-muted);
  line-height: 1.7;
}

.discussion-hero aside,
.missions-hero aside,
.lessons-total {
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-radius: 22px;
  color: white;
  background: var(--j-forest);
}

.discussion-hero aside strong,
.missions-hero aside strong,
.lessons-total strong {
  color: var(--j-sun);
  font-family: var(--serif);
  font-size: 3.4rem;
  font-weight: 400;
}

.discussion-hero aside span,
.missions-hero aside span,
.lessons-total span,
.lessons-total small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.7rem;
  line-height: 1.5;
}

.discussion-layout {
  width: min(100% - 80px, 1360px);
  margin: 0 auto 110px;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 28px;
  align-items: start;
}

.discussion-categories {
  position: sticky;
  top: 112px;
  padding: 15px;
  display: grid;
  gap: 5px;
  border: 1px solid var(--j-line);
  border-radius: 22px;
  background: var(--j-paper);
  box-shadow: 0 15px 40px rgba(23, 75, 60, 0.08);
}

.discussion-categories>p {
  margin: 13px 8px 5px;
  color: var(--j-muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.discussion-categories button {
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 0;
  border-radius: 12px;
  color: var(--j-ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.discussion-categories button:hover,
.discussion-categories button.active {
  color: white;
  background: var(--j-forest);
}

.discussion-categories button strong {
  font-size: 0.72rem;
}

.discussion-categories button small {
  color: var(--j-muted);
  font-size: 0.56rem;
}

.discussion-categories button.active small,
.discussion-categories button:hover small {
  color: rgba(255, 255, 255, 0.58);
}

.discussion-main {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--j-line);
  border-radius: 25px;
  background: rgba(255, 253, 245, 0.8);
}

.discussion-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: end;
}

.discussion-section-heading h2 {
  margin: 0;
  color: var(--j-forest-deep);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.5vw, 4rem);
  font-weight: 400;
}

.discussion-section-heading>div>span {
  color: var(--j-muted);
  font-size: 0.65rem;
}

.new-topic-form {
  margin: 28px 0;
  padding: 22px;
  border-radius: 18px;
  background: var(--j-mist);
}

.new-topic-form label {
  display: block;
  margin: 10px 0 6px;
  font-size: 0.66rem;
  font-weight: 800;
}

.new-topic-form textarea {
  min-height: 120px;
  padding-top: 12px;
  resize: vertical;
}

.new-topic-form>div {
  margin-top: 13px;
  display: flex;
  gap: 8px;
}

.thread-list {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.thread-card {
  padding: 22px;
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 15px;
  border: 1px solid var(--j-line);
  border-radius: 17px;
  background: white;
}

.thread-card>span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--j-forest);
  background: var(--j-sun);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.6rem;
  font-weight: 800;
}

.thread-card small {
  color: var(--j-muted);
}

.thread-card h3 {
  margin: 7px 0;
  color: var(--j-forest-deep);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
}

.thread-card p {
  margin: 0;
  color: var(--j-muted);
  line-height: 1.6;
}

.thread-card button {
  margin-top: 13px;
  padding: 0;
  border: 0;
  color: var(--j-leaf);
  background: none;
  cursor: pointer;
  font-weight: 800;
}

.discussion-online-note {
  margin: 24px 0 0;
  padding: 14px;
  display: flex;
  gap: 10px;
  border-radius: 14px;
  color: var(--j-muted);
  background: var(--j-mist);
  font-size: 0.68rem;
}

/* Misiuni */
.mission-groups {
  width: min(100% - 80px, 1360px);
  margin: 0 auto;
  display: grid;
  gap: 55px;
}

.mission-group>header {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--j-forest);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mission-group>header i {
  height: 1px;
  flex: 1;
  background: var(--j-line);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.mission-card {
  position: relative;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--j-line);
  border-radius: 22px;
  background: var(--j-paper);
  box-shadow: 0 15px 38px rgba(23, 75, 60, 0.07);
}

.mission-card::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -35px;
  width: 115px;
  height: 115px;
  border: 18px solid var(--j-mist);
  border-radius: 50%;
}

.mission-card.completed {
  border-color: var(--j-leaf);
  background: #eff8e8;
}

.mission-card-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.mission-card-top span {
  color: var(--j-leaf);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mission-card-top strong {
  color: #b85b21;
  font-family: var(--font-geist-mono), monospace;
}

.mission-card h2 {
  margin: 28px 0 8px;
  color: var(--j-forest-deep);
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
}

.mission-card>p {
  max-width: 620px;
  margin: 0;
  color: var(--j-muted);
  line-height: 1.65;
}

.mission-actions {
  position: relative;
  z-index: 2;
  margin-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.mission-actions a {
  color: var(--j-forest);
  font-weight: 800;
}

.mission-actions button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--j-line);
  border-radius: 999px;
  color: var(--j-forest);
  background: white;
  cursor: pointer;
}

.mission-actions button:disabled {
  color: white;
  border-color: var(--j-leaf);
  background: var(--j-leaf);
  cursor: default;
}

.mission-note {
  width: min(100% - 80px, 1360px);
  margin: 60px auto 110px;
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: center;
  border-radius: 20px;
  color: white;
  background: var(--j-forest);
}

.mission-note>span {
  width: 54px;
  height: 54px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--j-forest);
  background: var(--j-sun);
  font-size: 1.5rem;
}

.mission-note p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.6);
}

/* Hubul de lecții */
.lessons-domain-section {
  width: min(100% - 80px, 1360px);
  margin: 0 auto 80px;
  padding: 36px;
  border: 1px solid var(--j-line);
  border-radius: 28px;
  background: rgba(255, 253, 245, 0.78);
}

.lessons-domain-section>header {
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
}

.lessons-domain-section h2 {
  margin: 0;
  color: var(--j-forest-deep);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 4.6rem);
  font-weight: 400;
}

.lessons-domain-section header p:last-child {
  color: var(--j-muted);
}

.lessons-domain-progress {
  width: 220px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
}

.lessons-domain-progress strong {
  grid-row: 1 / 3;
  color: var(--j-forest);
  font-family: var(--serif);
  font-size: 2.1rem;
}

.lessons-domain-progress>span {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--j-mist);
}

.lessons-domain-progress>span i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--j-coral);
}

.lessons-domain-progress small {
  color: var(--j-muted);
}

.lessons-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.lessons-hub-card {
  padding: 20px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  border: 1px solid var(--j-line);
  border-radius: 18px;
  background: white;
}

.lessons-hub-index {
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--j-coral) var(--lesson-progress, 0%), var(--j-mist) 0);
}

.lessons-hub-index::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: white;
}

.lessons-hub-index span {
  position: relative;
  z-index: 1;
  color: var(--j-forest);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.62rem;
  font-weight: 800;
}

.lessons-hub-index i {
  display: none;
}

.lessons-hub-card small {
  color: var(--j-leaf);
  font-weight: 800;
}

.lessons-hub-card h3 {
  margin: 6px 0;
  color: var(--j-forest-deep);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
}

.lessons-hub-card p {
  margin: 0;
  color: var(--j-muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.lessons-hub-card>div:last-child>div {
  margin-top: 15px;
  display: flex;
  gap: 18px;
}

.lessons-hub-card a {
  color: var(--j-forest);
  font-size: 0.72rem;
  font-weight: 800;
}

@media (max-width: 1120px) {
  .home-hero {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .hero-copy {
    width: min(100% - 64px, 850px);
    margin: 0 auto;
    padding: 85px 0 55px;
  }

  .hero-landscape {
    min-height: 540px;
    margin: 0 32px 32px;
  }

  .romania-map-layout {
    grid-template-columns: 1fr;
  }

  .map-user-detail {
    min-height: 260px;
  }
}

@media (max-width: 980px) {
  .header-inner {
    width: min(100% - 30px, 1450px);
  }

  .primary-navigation {
    position: fixed;
    left: 15px;
    right: 15px;
    top: 102px;
    width: auto;
    height: auto;
    padding: 12px;
    display: none;
    transform: none;
    border-radius: 20px;
  }

  .primary-navigation.is-open {
    display: grid;
  }

  .primary-navigation a {
    height: 46px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    margin-right: 9px;
  }

  .corner-menu {
    margin-left: 0;
  }

  .discussion-hero,
  .missions-hero,
  .lessons-hub-hero {
    grid-template-columns: 1fr;
  }

  .discussion-hero aside,
  .missions-hero aside,
  .lessons-total {
    max-width: 400px;
  }

  .discussion-layout {
    grid-template-columns: 1fr;
  }

  .discussion-categories {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

  .discussion-categories>p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .brand {
    gap: 8px;
    font-size: 0.85rem;
    letter-spacing: 0.07em;
  }

  .relativity-logo svg {
    width: 40px;
    height: 40px;
  }

  .corner-menu-toggle {
    width: 44px;
    height: 44px;
  }

  .home-hero {
    min-height: 0;
  }

  .hero-copy {
    width: min(100% - 34px, 850px);
    padding: 65px 0 45px;
  }

  .hero-copy h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .hero-landscape {
    min-height: 430px;
    margin: 0 16px 16px;
    border-radius: 24px;
  }

  .hero-landscape figcaption {
    font-size: 0.48rem;
  }

  .leaderboard-wrap,
  .discussion-hero,
  .missions-hero,
  .lessons-hub-hero,
  .discussion-layout,
  .mission-groups,
  .mission-note,
  .lessons-domain-section {
    width: min(100% - 30px, 1360px);
  }

  .leaderboard-toolbar,
  .romania-map-heading,
  .discussion-section-heading,
  .lessons-domain-section>header {
    align-items: stretch;
    flex-direction: column;
  }

  .romania-ranking-section {
    padding: 18px;
  }

  .romania-map-stage {
    min-height: 470px;
  }

  .map-city-label {
    display: none;
  }

  .community-user-marker:not(.podium-map-marker):not(.local-map-marker) .leader-avatar {
    width: 25px;
    height: 25px;
    font-size: 0.48rem;
  }

  .community-user-marker:not(.podium-map-marker):not(.local-map-marker)>small {
    display: none;
  }

  .your-map-score {
    grid-template-columns: 1fr 1fr;
  }

  .your-map-score .button {
    grid-column: 1 / -1;
  }

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

  .ranking-row {
    min-width: 760px;
  }

  .location-field-grid,
  .mission-grid,
  .lessons-hub-grid {
    grid-template-columns: 1fr;
  }

  .discussion-categories {
    grid-template-columns: 1fr;
  }

  .discussion-main {
    padding: 19px;
  }

  .mission-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .lessons-domain-section {
    padding: 22px;
  }

  .lessons-domain-progress {
    width: 100%;
  }
}

/* =========================================================
   REVIZIE 23 SEPTEMBRIE 2026 — PROBLEME ȘI PROGRES
   ========================================================= */

.problem-reference {
  margin: 0;
  color: #8a6428;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.problem-card .problem-reference {
  margin: 2px 0 8px;
}

.problem-detail-meta .problem-reference {
  color: #72511e;
  background: #fbf1d7;
  border-color: rgba(151, 109, 42, .28);
}

.problem-solved-filter {
  min-height: 44px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  align-self: end;
  gap: 9px;
  border: 1px solid rgba(24, 66, 58, .2);
  border-radius: 7px;
  color: #27443e;
  background: #fffdf7;
  font-size: .78rem;
  font-weight: 750;
  cursor: pointer;
}

.problem-solved-filter input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #1e594e;
}

.problem-detail-formula {
  padding: 0;
  overflow: hidden;
  border-color: rgba(32, 79, 69, .25);
  border-left: 4px solid #a77d45;
  border-radius: 8px;
  background: #fffdf7;
  font-size: clamp(1rem, 1.7vw, 1.26rem);
}

.problem-formula-list {
  display: grid;
}

.problem-formula-line {
  max-width: 100%;
  padding: 17px 20px;
  overflow-x: auto;
  overflow-y: hidden;
  color: #173f37;
  scrollbar-color: rgba(32, 79, 69, .4) transparent;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.problem-formula-line + .problem-formula-line {
  border-top: 1px solid rgba(32, 79, 69, .13);
}

.problem-detail-formula mjx-container[jax="CHTML"][display="true"] {
  width: max-content;
  min-width: 100%;
  max-width: none;
  margin: 0 auto !important;
  padding: .12rem 0;
}

.problem-detail-formula code {
  display: block;
  padding: 17px 20px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.account-progress-menu {
  margin-top: 12px;
}

.account-progress-menu a {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #183f37;
  border: 1px solid rgba(24, 66, 58, .16);
  border-left: 4px solid #a77d45;
  border-radius: 8px;
  background: #fffaf1;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.account-progress-menu a:hover {
  border-color: rgba(24, 66, 58, .38);
  transform: translateY(-1px);
}

.account-progress-menu span,
.account-progress-menu strong,
.account-progress-menu small {
  display: block;
}

.account-progress-menu small {
  margin-bottom: 3px;
  color: #75675b;
  font-size: .62rem;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.account-progress-menu b {
  white-space: nowrap;
  color: #7c5722;
}

.account-progress-menu i {
  margin-left: 5px;
  font-style: normal;
}

@media (max-width: 620px) {
  .problem-formula-line {
    padding: 14px 13px;
    text-align: left;
  }

  .problem-detail-formula mjx-container[jax="CHTML"][display="true"] {
    min-width: max-content;
    font-size: .94rem !important;
  }

  .problem-solved-filter {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .brand>span:last-child {
    display: none;
  }

  .corner-menu-panel {
    position: fixed;
    top: 82px;
    right: 10px;
    left: 10px;
    width: auto;
  }

  .hero-landscape {
    min-height: 370px;
  }

  .hero-landscape figcaption span:last-child {
    display: none;
  }

  .romania-map-stage {
    min-height: 390px;
  }

  .podium-map-marker .leader-avatar {
    width: 40px;
    height: 40px;
  }

  .podium-map-marker.rank-1 .leader-avatar {
    width: 48px;
    height: 48px;
  }

  .map-xp {
    min-width: 65px;
    padding: 5px;
    font-size: 0.5rem;
  }

  .your-map-score {
    grid-template-columns: 1fr;
  }

  .your-map-score .button {
    grid-column: auto;
  }

  .thread-card {
    grid-template-columns: 1fr;
  }

  .new-topic-form>div {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand:hover .logo-orbit {
    animation: none;
  }

  .home-hero:hover .hero-landscape img {
    transform: none;
  }
}

/* Actualizare 12 august: bară rapidă, acces, cont și fundaluri științifice */
.site-header {
  height: auto !important;
}

.activity-bar {
  position: relative;
  z-index: 145;
  min-height: 31px;
  border-bottom: 1px solid rgba(52, 46, 82, .11);
  background: rgba(246, 242, 233, .97);
}

.activity-bar-inner {
  width: min(100% - 40px, 1460px);
  min-height: 31px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.activity-bar-inner > a,
.activity-menu > summary {
  min-height: 25px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 6px;
  color: #4c5269;
  cursor: pointer;
  font: 680 .62rem "Space Grotesk", sans-serif;
  letter-spacing: .015em;
  list-style: none;
}

.activity-menu > summary::-webkit-details-marker {
  display: none;
}

.activity-bar-inner > a:hover,
.activity-menu[open] > summary,
.activity-menu > summary:hover {
  color: #fffdf7;
  background: #29294c;
}

.activity-menu {
  position: relative;
}

.activity-menu nav {
  position: absolute;
  z-index: 180;
  top: calc(100% + 7px);
  right: 0;
  width: 240px;
  padding: 8px;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(83, 72, 126, .18);
  border-radius: 12px;
  background: #fffdf7;
  box-shadow: 0 22px 55px rgba(28, 25, 55, .2);
}

.activity-menu nav a {
  padding: 10px 11px;
  border-radius: 8px;
  color: #34384e;
  font-size: .7rem;
}

.activity-menu nav a:hover {
  color: #fff;
  background: #6050a5;
}

.header-inner {
  min-height: 72px;
}

.header-subscription {
  min-height: 39px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(134, 98, 34, .3);
  border-radius: 999px;
  color: #76571e;
  background: #fff5d8;
  font: 750 .66rem "Space Grotesk", sans-serif;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}

.header-subscription:hover {
  color: #fff;
  background: #826521;
  transform: translateY(-1px);
}

.profile-tool.is-authenticated::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid #f9f5ec;
  border-radius: 50%;
  background: #36a46f;
}

.header-tool.profile-tool {
  position: relative;
}

.auth-access-gate {
  min-height: 100vh;
  padding: 80px 24px;
  display: grid;
  align-content: center;
  justify-items: center;
  color: #f8f2e3;
  text-align: center;
  background: radial-gradient(circle at 50% 35%, rgba(121, 101, 190, .22), transparent 25rem), linear-gradient(145deg, #141a30, #163b3d);
}

.auth-access-gate h1 {
  max-width: 760px;
  margin: 8px 0 12px;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 520;
}

.auth-access-gate > p:not(.section-code) {
  max-width: 620px;
  margin: 0;
  color: rgba(248, 242, 227, .68);
  line-height: 1.7;
}

.auth-access-gate .button {
  margin-top: 24px;
}

.auth-access-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  color: #ffe2a0;
  font-weight: 800;
  animation: auth-access-pulse 1.35s ease-in-out infinite alternate;
}

.auth-access-mark:empty::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .28);
  border-top-color: #ffe2a0;
  border-radius: 50%;
  animation: auth-access-spin .8s linear infinite;
}

.auth-access-gate.is-error .auth-access-mark {
  animation: none;
}

@keyframes auth-access-spin { to { transform: rotate(360deg); } }
@keyframes auth-access-pulse { to { box-shadow: 0 0 0 12px rgba(255, 226, 160, .06); } }

.account-intro h1 {
  color: #fff8e9 !important;
}

.account-auth-choice,
.account-auth-form {
  min-height: 0;
}

.account-auth-choice {
  padding-block: 42px;
}

.auth-choice-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.auth-choice-grid button {
  min-height: 154px;
  padding: 20px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 7px;
  border: 1px solid rgba(68, 61, 105, .16);
  border-radius: 15px;
  color: #2e324f;
  background: linear-gradient(145deg, #fffdf7, #f3efe4);
  cursor: pointer;
  text-align: left;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.auth-choice-grid button:first-child {
  background: linear-gradient(145deg, #fffaf1, #eee9ff);
}

.auth-choice-grid button:hover {
  border-color: rgba(97, 78, 174, .5);
  box-shadow: 0 14px 28px rgba(42, 36, 79, .11);
  transform: translateY(-3px);
}

.auth-choice-grid span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
  border-radius: 50%;
  color: #fff;
  background: #5d4ba4;
  font-size: 1.15rem;
}

.auth-choice-grid strong {
  font: 700 1rem "Space Grotesk", sans-serif;
}

.auth-choice-grid small {
  color: #737688;
  font-size: .67rem;
}

.auth-mode-tabs {
  margin-bottom: 20px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid rgba(61, 55, 91, .13);
  border-radius: 11px;
  background: #eeeadd;
}

.auth-mode-tabs button {
  min-height: 39px;
  border: 0;
  border-radius: 8px;
  color: #626575;
  background: transparent;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 720;
}

.auth-mode-tabs button.active {
  color: #fff;
  background: #37345f;
  box-shadow: 0 6px 14px rgba(45, 41, 84, .18);
}

.email-auth-form {
  display: grid;
  gap: 7px;
}

.email-auth-form label {
  margin-top: 4px;
  color: #4e5567;
  font-size: .7rem;
  font-weight: 680;
}

.email-auth-form input {
  width: 100%;
  min-height: 47px;
  padding: 0 13px;
  border: 1px solid rgba(61, 55, 91, .19);
  border-radius: 10px;
  color: #282d47;
  background: #fffdf8;
}

.email-auth-form input:focus {
  border-color: #6a56ba;
  outline: 3px solid rgba(106, 86, 186, .13);
}

.email-auth-form .button {
  margin-top: 12px;
  border: 0;
  cursor: pointer;
}

.email-auth-form .button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.auth-choice-back {
  margin-top: 18px;
  padding: 0;
  border: 0;
  color: #6553a7;
  background: transparent;
  cursor: pointer;
  font-size: .7rem;
  font-weight: 700;
}

.signup-verification-card {
  overflow: hidden;
}

.signup-verification-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 2px 0 17px;
  border: 1px solid rgba(54, 89, 81, .22);
  border-radius: 50%;
  color: #fffdf7;
  background: linear-gradient(145deg, #254f47, #183a35);
  box-shadow: 0 10px 24px rgba(24, 58, 53, .17);
  font-size: 1.22rem;
}

.signup-verification-card .account-card-copy strong {
  color: #233f3a;
  overflow-wrap: anywhere;
}

.signup-verification-steps {
  margin: 23px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  list-style: none;
}

.signup-verification-steps li {
  min-width: 0;
  display: grid;
  grid-template-columns: 27px 1fr;
  align-items: center;
  gap: 7px;
  color: #7a7d87;
  font-size: .875rem;
  font-weight: 680;
  line-height: 1.25;
}

.signup-verification-steps span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(61, 55, 91, .18);
  border-radius: 50%;
  color: #777888;
  background: #f5f1e8;
  font-size: .68rem;
}

.signup-verification-steps .is-complete,
.signup-verification-steps .is-current {
  color: #284a43;
}

.signup-verification-steps .is-complete span {
  border-color: #315d53;
  color: #fff;
  background: #315d53;
}

.signup-verification-steps .is-current span {
  border-color: #9b782e;
  color: #74561b;
  background: #fff5d9;
  box-shadow: 0 0 0 4px rgba(190, 151, 65, .12);
}

.signup-verification-form input {
  min-height: 58px;
  text-align: center;
  letter-spacing: .48em;
  text-indent: .48em;
  font: 750 1.34rem "Space Grotesk", sans-serif;
  font-variant-numeric: tabular-nums;
}

.signup-verification-form label {
  font-size: .875rem;
}

.signup-verification-form > small {
  color: #737b7a;
  font-size: .8rem;
  line-height: 1.5;
}

.signup-verification-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.signup-verification-actions button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(48, 78, 71, .22);
  border-radius: 9px;
  color: #31564e;
  background: #f7f3e9;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 720;
}

.signup-verification-actions button:hover:not(:disabled),
.signup-verification-actions button:focus-visible {
  border-color: #496f66;
  outline: 3px solid rgba(73, 111, 102, .12);
}

.signup-verification-actions button:disabled {
  cursor: not-allowed;
  opacity: .56;
}

@media (max-width: 620px) {
  .signup-verification-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .signup-verification-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .signup-verification-actions button {
    width: 100%;
  }
}

/* Vizualurile sunt fundaluri ale titlului, fără chenar sau aspect de diagramă generică. */
.subject-page .subject-hero {
  min-height: 630px;
  display: flex;
  align-items: center;
  isolation: isolate;
  color: #fffaf0;
  background: radial-gradient(circle at 76% 44%, rgba(201, 174, 111, .12), transparent 25rem), linear-gradient(125deg, #141827 0%, #122726 58%, #101c24 100%);
}

.subject-quantum .subject-hero {
  background: radial-gradient(circle at 71% 47%, rgba(200, 171, 108, .13), transparent 25rem), radial-gradient(circle at 92% 16%, rgba(72, 96, 149, .16), transparent 26rem), linear-gradient(128deg, #111622, #111e2c 52%, #0d1721);
}

.subject-page .subject-hero::after {
  z-index: 1;
  opacity: 1;
  background: linear-gradient(90deg, rgba(14, 20, 31, .98) 0%, rgba(14, 22, 31, .82) 37%, rgba(14, 22, 31, .2) 72%, rgba(14, 22, 31, .42) 100%);
  mask-image: none;
}

.subject-page .subject-hero-copy {
  position: relative;
  z-index: 3;
  width: min(760px, 62vw);
}

.subject-page .subject-breadcrumb {
  color: rgba(255, 248, 232, .48);
}

.subject-page .subject-order {
  color: #d7bc7d;
}

.subject-page .subject-hero h1 {
  color: #fff9ed;
  text-shadow: 0 10px 38px rgba(0, 0, 0, .28);
}

.subject-page .subject-summary {
  color: rgba(255, 249, 237, .66);
}

.subject-page .subject-summary-accent {
  color: #c7a4ff;
  font-weight: 800;
  text-shadow: 0 8px 28px rgba(111, 72, 190, .34);
}

.subject-page .subject-hero .subject-visual {
  position: absolute;
  z-index: 0;
  top: -3%;
  right: -2%;
  bottom: -4%;
  left: 29%;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  opacity: .82;
  background: none;
  box-shadow: none;
  pointer-events: none;
}

.subject-physics .subject-hero .subject-visual {
  top: -7%;
  right: 2%;
  bottom: -9%;
  left: 37%;
  opacity: .73;
}

.subject-page .subject-visual::before,
.subject-page .subject-visual::after,
.subject-page .subject-visual > p {
  display: none;
}

.subject-page .subject-visual svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.pendulum-aura { fill: url(#pendulum-aura); }
.pendulum-support,
.pendulum-support-detail { stroke: rgba(244, 230, 197, .48); stroke-width: 3; }
.pendulum-support-detail { stroke-width: 1.2; opacity: .55; }
.pendulum-axis { stroke: rgba(244, 230, 197, .17); stroke-width: 1; stroke-dasharray: 6 10; }
.pendulum-orbit { fill: rgba(215, 188, 125, .025); stroke: rgba(215, 188, 125, .4); stroke-width: 1.2; stroke-dasharray: 5 8; }
.pendulum-string { stroke: url(#pendulum-string-gradient); stroke-width: 1.7; }
.pendulum-pivot { fill: #d9bd7d; stroke: rgba(255,255,255,.48); stroke-width: 1; }
.pendulum-bob { fill: url(#pendulum-bob-gradient); stroke: rgba(255, 244, 216, .48); stroke-width: 1; }
.pendulum-bob-light { fill: rgba(255, 255, 255, .65); }
.pendulum-bob-shadow { fill: rgba(0, 0, 0, .22); }

.subject-visual-foucault {
  opacity: .76 !important;
  filter: saturate(.86) contrast(.98);
}

.foucault-backdrop {
  fill: transparent;
}

.foucault-gallery path {
  fill: none;
  stroke: rgba(236, 226, 198, .18);
  stroke-width: 2;
}

.foucault-floor-aura {
  fill: rgba(255, 248, 230, .045);
}

.foucault-floor-outer,
.foucault-floor-inner {
  fill: none;
  stroke: rgba(230, 215, 178, .34);
  stroke-width: 1.3;
}

.foucault-floor-inner {
  stroke: rgba(230, 215, 178, .22);
}

.foucault-floor-light {
  fill: url(#foucault-floor-light);
}

.foucault-hour-tick {
  stroke: rgba(231, 215, 176, .34);
  stroke-width: .95;
  stroke-linecap: round;
}

.foucault-hour-tick.major {
  stroke: rgba(231, 215, 176, .55);
  stroke-width: 1.45;
}

.foucault-hour-number {
  fill: rgba(244, 234, 208, .72);
  font: 700 18px Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  text-anchor: middle;
  dominant-baseline: middle;
}

.foucault-floor-meridian,
.foucault-swing-trace {
  fill: none;
  stroke-linecap: round;
}

.foucault-floor-meridian {
  stroke: rgba(231, 215, 176, .16);
  stroke-width: 1.2;
}

.foucault-swing-trace {
  stroke: rgba(204, 151, 55, .34);
  stroke-width: 2.1;
}

.foucault-cable {
  stroke: url(#foucault-cable-sheen);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.foucault-pivot circle {
  fill: #d4b16a;
  stroke: rgba(255, 247, 223, .55);
  stroke-width: 1.2;
}

.foucault-pivot path {
  fill: none;
  stroke: rgba(242, 226, 181, .58);
  stroke-width: 2;
  stroke-linecap: round;
}

.foucault-bob circle:first-child {
  fill: url(#foucault-bob-gold);
  stroke: rgba(255, 244, 205, .6);
  stroke-width: 1.3;
}

.foucault-bob path {
  fill: none;
  stroke: rgba(92, 62, 24, .32);
  stroke-width: 1.2;
}

.foucault-bob-highlight {
  fill: rgba(255, 255, 255, .55);
}

.foucault-bob-tip {
  fill: #9a6a24 !important;
  stroke: rgba(255, 244, 205, .32) !important;
  stroke-width: 1 !important;
}

.solar-stars circle { fill: rgba(255, 249, 233, .55); }
.solar-orbits ellipse { fill: none; stroke: rgba(220, 205, 174, .25); stroke-width: .8; }
.solar-sun-halo { fill: rgba(218, 178, 96, .1); }
.solar-sun { fill: url(#solar-sun-gradient); filter: url(#solar-sun-glow); }
.solar-planet circle { stroke: rgba(255, 248, 229, .38); stroke-width: .6; }
.solar-saturn-ring { fill: none; stroke: rgba(226, 205, 154, .8); stroke-width: 1.35; }

.info-page-hero,
.subscription-placeholder {
  min-height: 410px;
  padding: 82px max(28px, calc((100vw - 1240px) / 2));
  display: grid;
  align-content: center;
  color: #fff8e9;
  background: radial-gradient(circle at 78% 24%, rgba(201, 169, 100, .17), transparent 24rem), linear-gradient(135deg, #171a31, #173837);
}

.info-page-hero h1,
.subscription-placeholder h1 {
  max-width: 880px;
  margin: 0;
  color: #fff8e9;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 480;
}

.info-page-hero > p:last-child,
.subscription-placeholder > p:last-child {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 248, 233, .65);
  line-height: 1.7;
}

.info-page-content {
  width: min(100% - 48px, 1040px);
  margin: 68px auto 100px;
  display: grid;
  border-top: 1px solid rgba(45, 54, 76, .16);
}

.info-page-content article {
  padding: 30px 0;
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 22px;
  border-bottom: 1px solid rgba(45, 54, 76, .16);
}

.info-page-content article > span {
  color: #7b61b9;
  font: 750 .7rem "Space Grotesk", sans-serif;
}

.info-page-content h2 {
  margin: 0 0 8px;
  color: #263c3b;
  font-size: 1.8rem;
}

.info-page-content p {
  margin: 0;
  color: #5b6c69;
  line-height: 1.75;
}

.subscription-placeholder {
  min-height: 72vh;
}

@media (max-width: 900px) {
  .subject-page .subject-hero {
    min-height: 690px;
    padding-inline: 24px;
  }

  .subject-page .subject-hero-copy {
    width: min(690px, 88vw);
  }

  .subject-page .subject-hero .subject-visual {
    top: 7%;
    right: -18%;
    bottom: -2%;
    left: 20%;
    opacity: .48;
  }

  .subject-physics .subject-hero .subject-visual {
    right: -10%;
    left: 24%;
  }
}

@media (max-width: 680px) {
  .activity-bar-inner {
    width: calc(100% - 18px);
    justify-content: center;
  }

  .activity-bar-inner > a,
  .activity-menu > summary {
    padding-inline: 8px;
    font-size: .58rem;
  }

  .activity-menu nav {
    right: auto;
    left: 0;
  }

  .header-subscription {
    min-height: 37px;
    padding-inline: 10px;
    font-size: .58rem;
  }

  .language-toggle {
    display: none;
  }

  .auth-choice-grid {
    grid-template-columns: 1fr;
  }

  .auth-choice-grid button {
    min-height: 118px;
  }

  .subject-page .subject-hero {
    min-height: 650px;
    padding-top: 54px;
    padding-bottom: 70px;
  }

  .subject-page .subject-hero h1 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .subject-page .subject-hero .subject-visual,
  .subject-physics .subject-hero .subject-visual {
    top: 12%;
    right: -42%;
    bottom: 0;
    left: 5%;
    opacity: .36;
  }

  .subject-page .subject-hero::after {
    background: linear-gradient(90deg, rgba(14, 20, 31, .98), rgba(14, 22, 31, .72));
  }

  .info-page-content {
    width: min(100% - 28px, 1040px);
  }

  .info-page-content article {
    grid-template-columns: 34px 1fr;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-access-mark,
  .auth-access-mark:empty::before {
    animation: none;
  }
}

/* Revizia 2026-08: tipografie modernă, hero fotografic și laborator */
:root {
  --font-geist-sans: "Manrope", "Segoe UI Variable", "Segoe UI", sans-serif;
  --font-geist-mono: "Space Grotesk", "Segoe UI Variable", sans-serif;
  --serif: "Space Grotesk", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --sans: var(--font-geist-sans);
}

body {
  letter-spacing: -0.012em;
}

.brand {
  font-family: "Space Grotesk", var(--sans);
  letter-spacing: -0.02em;
}

.hero-copy h1,
.section-heading h2,
.romania-map-heading h2,
.discussion-hero h1,
.missions-hero h1,
.lessons-hub-hero h1,
.discussion-section-heading h2,
.thread-card h3,
.lesson-page-hero h1,
.experiments-hero h1,
.experiment-results h2,
.experiment-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.home-hero {
  min-height: calc(100svh - 82px);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  overflow: hidden;
  background: #0b2f2a;
}

.home-hero .hero-landscape {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 100%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.home-hero .hero-landscape::after {
  background:
    linear-gradient(180deg, rgba(5, 22, 23, 0.47), rgba(5, 25, 23, 0.76)),
    radial-gradient(circle at 50% 35%, transparent 0 18%, rgba(4, 22, 20, 0.35) 70%);
}

.home-hero .hero-landscape img {
  min-height: 100%;
  object-position: center 50%;
  filter: saturate(0.9) contrast(1.04);
}

.home-hero .hero-landscape figcaption {
  left: 30px;
  right: 30px;
  bottom: 18px;
  z-index: 4;
  color: rgba(255, 255, 255, 0.72);
}

.home-hero .hero-landscape figcaption a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-hero .hero-copy {
  position: relative;
  z-index: 3;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 20px 110px;
  color: white;
  text-align: center;
}

.home-hero .hero-copy .kicker {
  justify-content: center;
  margin-bottom: 25px;
  color: #d8ffad;
}

.home-hero .hero-copy h1 {
  max-width: 1100px;
  margin: 0 auto;
  color: white;
  font-size: clamp(3.25rem, 6.9vw, 7.4rem);
  line-height: 0.92;
  text-wrap: balance;
  text-shadow: 0 8px 36px rgba(0, 0, 0, 0.34);
}

.home-hero .hero-copy h1 em {
  color: #ffe878;
  white-space: normal;
}

.home-hero .hero-copy h1 em::after {
  display: none;
}

.hero-manifesto {
  margin: 24px 0 0;
  color: #d8ffad;
  font-family: "Space Grotesk", var(--sans);
  font-size: clamp(1.45rem, 2.25vw, 2.45rem);
  font-weight: 650;
  letter-spacing: -0.035em;
}

.home-hero .hero-lede {
  max-width: 760px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
}

.home-hero .hero-actions {
  justify-content: center;
  margin-top: 34px;
}

.home-hero .button {
  min-height: 58px;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.button-experiment {
  color: #14332c;
  background: #ffe878;
}

.button-experiment:hover {
  background: #fff1a6;
}

.button-glass {
  border-color: rgba(255, 255, 255, 0.42);
  color: white;
  background: rgba(10, 37, 34, 0.32);
  backdrop-filter: blur(12px);
}

.button-glass:hover {
  background: rgba(255, 255, 255, 0.16);
}

.home-hero .trust-row {
  justify-content: center;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.72);
}

.home-hero .trust-row span::before {
  color: #d8ffad;
}

.home-experiments {
  width: min(100% - 80px, 1360px);
  margin: 86px auto 104px;
  padding: clamp(28px, 4.5vw, 62px);
  border: 1px solid rgba(23, 75, 60, 0.15);
  border-radius: 34px;
  background: linear-gradient(145deg, #f7f7e9, #e4f3dd);
  box-shadow: 0 25px 70px rgba(23, 75, 60, 0.1);
}

.experiments-heading {
  margin-bottom: 34px;
}

.experiments-heading h2 {
  max-width: 810px;
}

.experiment-category-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.experiment-category-card {
  min-height: 164px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid rgba(23, 75, 60, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.experiment-category-card:hover {
  border-color: rgba(23, 75, 60, 0.34);
  box-shadow: 0 16px 34px rgba(23, 75, 60, 0.11);
  transform: translateY(-5px);
}

.experiment-category-card>span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #143c31;
  background: #ffe878;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.experiment-category-card strong {
  margin-top: 23px;
  color: var(--j-forest-deep);
  font-size: 0.84rem;
}

.experiment-category-card small {
  margin-top: 5px;
  color: var(--j-muted);
  font-size: 0.64rem;
  line-height: 1.45;
}

.experiments-cta {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.experiments-cta .button {
  border-radius: 999px;
}

/* Pagina de experimente */
.experiments-page main {
  background: linear-gradient(180deg, #f7f5ea, #edf5e9 72%, #f7f5ea);
}

.experiments-hero {
  width: min(100% - 80px, 1360px);
  margin: 0 auto;
  padding: 82px 0 62px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 65px;
  align-items: end;
}

.experiments-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--j-forest-deep);
  font-size: clamp(3.5rem, 6vw, 6.8rem);
  line-height: 0.92;
}

.experiments-hero>div>p:last-child {
  max-width: 750px;
  color: var(--j-muted);
  line-height: 1.7;
}

.experiments-hero aside {
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-radius: 22px;
  color: white;
  background: var(--j-forest);
}

.experiments-hero aside strong {
  color: var(--j-sun);
  font-family: var(--serif);
  font-size: 3.4rem;
}

.experiments-hero aside span,
.experiments-hero aside small {
  color: rgba(255, 255, 255, 0.67);
  line-height: 1.5;
}

.experiments-browser {
  width: min(100% - 80px, 1360px);
  margin: 0 auto 110px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 28px;
  align-items: start;
}

.experiment-filters {
  position: sticky;
  top: 105px;
  padding: 13px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--j-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 45px rgba(23, 75, 60, 0.08);
}

.experiment-filters button {
  min-height: 50px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 13px;
  color: var(--j-forest-deep);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.experiment-filters button:hover,
.experiment-filters button.active {
  color: white;
  background: var(--j-forest);
}

.experiment-filters button>span {
  width: 27px;
  font-size: 1.05rem;
  text-align: center;
}

.experiment-filters button strong {
  font-size: 0.76rem;
}

.experiment-results>header {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.experiment-results h2 {
  margin: 0;
  color: var(--j-forest-deep);
  font-size: clamp(2.5rem, 4vw, 4.7rem);
}

.experiment-results>header>span {
  color: var(--j-muted);
  font-size: 0.74rem;
}

.experiment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.experiment-card {
  padding: 25px;
  border: 1px solid var(--j-line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 14px 35px rgba(23, 75, 60, 0.06);
}

.experiment-card.expanded {
  grid-column: 1 / -1;
  border-color: rgba(23, 75, 60, 0.28);
}

.experiment-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--j-leaf);
  font-size: 0.67rem;
  font-weight: 750;
}

.experiment-card-top small {
  color: var(--j-muted);
}

.experiment-card h3 {
  margin: 28px 0 10px;
  color: var(--j-forest-deep);
  font-size: 1.7rem;
}

.experiment-card>p {
  min-height: 48px;
  margin: 0;
  color: var(--j-muted);
  line-height: 1.6;
}

.experiment-card>button {
  margin-top: 24px;
  padding: 0;
  border: 0;
  color: var(--j-forest);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.experiment-card>button span {
  margin-left: 8px;
}

.experiment-sheet {
  margin-top: 25px;
  padding: 24px;
  border-radius: 18px;
  background: var(--j-mist);
}

.experiment-sheet>div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.experiment-sheet small {
  color: var(--j-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.experiment-sheet ol {
  margin: 22px 0;
  padding-left: 23px;
  display: grid;
  gap: 10px;
  color: var(--j-ink);
}

.experiment-sheet p {
  margin: 0;
  color: var(--j-forest-deep);
  line-height: 1.65;
}

/* Discuții: evaluări și răspunsul cel mai apreciat */
.discussion-hero aside small {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
}

.thread-best-preview {
  margin-top: 14px;
  padding: 9px 11px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border-radius: 999px;
  color: #244b3b;
  background: #fff1a6;
  font-size: 0.63rem;
}

.thread-best-preview b {
  color: #8b5c00;
}

.discussion-online-note.is-live {
  color: #145f3b;
  background: #e4f6e9;
}

.discussion-action-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: #a04335;
  font-size: 0.68rem;
}

.discussion-action-status.success {
  color: #17663e;
}

.discussion-back {
  margin-bottom: 25px;
  padding: 0;
  border: 0;
  color: var(--j-forest);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.thread-detail-question {
  padding: clamp(24px, 4vw, 42px);
  border-radius: 24px;
  color: white;
  background: linear-gradient(145deg, var(--j-forest), #102b27);
}

.thread-detail-question small {
  color: rgba(255, 255, 255, 0.58);
}

.thread-detail-question h2 {
  margin: 13px 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.thread-detail-question p {
  max-width: 850px;
  margin: 0;
  color: rgba(255, 255, 255, 0.77);
  line-height: 1.7;
}

.answers-heading {
  margin: 42px 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.answers-heading h3 {
  margin: 0;
  color: var(--j-forest-deep);
  font-family: var(--serif);
  font-size: 2.5rem;
}

.answers-heading>span {
  color: var(--j-muted);
  font-size: 0.64rem;
}

.answer-list {
  display: grid;
  gap: 13px;
}

.answer-card {
  padding: 24px;
  border: 1px solid var(--j-line);
  border-radius: 19px;
  background: white;
}

.answer-card.most-appreciated {
  border: 2px solid #e8bb2f;
  background: linear-gradient(145deg, #fffdf4, #fff7d8);
  box-shadow: 0 18px 46px rgba(151, 105, 5, 0.12);
}

.answer-author {
  display: flex;
  gap: 11px;
  align-items: center;
}

.answer-author>span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--j-forest);
  font-weight: 800;
}

.answer-author>div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.answer-author small {
  color: var(--j-muted);
  font-size: 0.61rem;
}

.answer-author>b {
  margin-left: auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: #755000;
  background: #ffe878;
  font-size: 0.62rem;
}

.answer-card>p {
  margin: 20px 0;
  color: #3d514a;
  line-height: 1.72;
}

.answer-rating {
  display: flex;
  align-items: center;
  gap: 9px;
}

.answer-rating button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--j-line);
  border-radius: 999px;
  color: var(--j-muted);
  background: white;
  cursor: pointer;
}

.answer-rating button.active.positive {
  color: #12643c;
  border-color: #39a36d;
  background: #e8f8ee;
}

.answer-rating button.active.negative {
  color: #9b3d32;
  border-color: #d6776a;
  background: #fff0ed;
}

.answer-rating button span {
  margin-left: 5px;
  font-weight: 800;
}

.answer-rating>strong {
  min-width: 40px;
  text-align: center;
}

.answer-rating>strong.positive {
  color: #15834d;
}

.answer-rating>strong.negative {
  color: #b04738;
}

.answer-form {
  margin-top: 32px;
  padding: 26px;
  border-radius: 22px;
  background: var(--j-mist);
}

.answer-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--j-forest-deep);
  font-size: 0.7rem;
  font-weight: 800;
}

.answer-form textarea {
  width: 100%;
  min-height: 145px;
  padding: 15px;
  border: 1px solid var(--j-line);
  border-radius: 13px;
  font: inherit;
  resize: vertical;
}

.answer-form>div {
  margin-top: 13px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.answer-form>div small {
  color: var(--j-muted);
}

/* Hartă reală OpenStreetMap */
.romania-leaflet-map {
  min-height: 590px;
  padding: 0;
  background: #dfece4;
}

.romania-leaflet-map .leaflet-control-attribution {
  font-family: var(--sans);
  font-size: 9px;
}

.map-loading {
  margin: 30px;
  color: var(--j-muted);
}

.leaflet-user-icon-shell {
  border: 0 !important;
  background: transparent !important;
  display: grid !important;
  place-items: center !important;
  pointer-events: none;
  transform-origin: center center;
}

.leaflet-user-icon-shell .leaflet-user-pin,
.leaflet-user-icon-shell .leaflet-city-cluster {
  pointer-events: auto;
}

.leaflet-user-pin {
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform-origin: center center;
}

.leaflet-user-pin .leader-avatar {
  width: 38px;
  height: 38px;
  border: 3px solid white;
  box-shadow: 0 6px 18px rgba(18, 55, 44, 0.32);
}

.leaflet-user-pin.podium .leader-avatar {
  width: 48px;
  height: 48px;
  border-color: #ffe878;
}

.leaflet-user-pin.rank-1 .leader-avatar {
  width: 58px;
  height: 58px;
  box-shadow: 0 0 0 6px rgba(255, 232, 120, 0.35), 0 8px 24px rgba(18, 55, 44, 0.36);
}

.leaflet-user-pin.selected .leader-avatar {
  box-shadow: 0 0 0 6px rgba(255, 108, 79, 0.32), 0 8px 24px rgba(18, 55, 44, 0.3);
}

.leaflet-user-pin.creator .leader-avatar {
  border-color: #f5d17b;
  box-shadow: 0 0 0 4px rgba(245, 209, 123, .22), 0 6px 18px rgba(18, 55, 44, 0.3);
}

.leaflet-user-pin>b {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 5px);
  padding: 5px 7px;
  border: 2px solid white;
  border-radius: 999px;
  color: #173b31;
  background: #ffe878;
  font-size: 0.53rem;
  white-space: nowrap;
  transform: translateX(-50%);
}

.leaflet-user-pin.local>b {
  bottom: auto;
  top: calc(100% + 5px);
  color: white;
  border-color: #173b31;
  background: #173b31;
}

.leaflet-tooltip {
  border: 0;
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(20, 55, 44, 0.18);
  font-family: var(--sans);
}

.lesson-content-grid-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.lesson-content-grid-five article {
  min-height: 255px;
}

@media (max-width: 1180px) {
  .experiment-category-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .lesson-content-grid-five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .home-hero .hero-copy {
    padding-top: 78px;
  }

  .experiments-hero {
    grid-template-columns: 1fr;
  }

  .experiments-hero aside {
    max-width: 420px;
  }

  .experiments-browser {
    grid-template-columns: 1fr;
  }

  .experiment-filters {
    position: static;
    grid-template-columns: repeat(4, 1fr);
  }

  .experiment-filters button {
    justify-content: center;
  }

  .lesson-content-grid-five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-hero {
    min-height: 720px;
  }

  .home-hero .hero-copy {
    width: min(100% - 26px, 760px);
    padding: 68px 4px 90px;
  }

  .home-hero .hero-copy h1 {
    font-size: clamp(2.75rem, 13.4vw, 5rem);
  }

  .home-hero .hero-landscape {
    margin: 0;
    border-radius: 0;
    min-height: 100%;
  }

  .home-hero .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero .hero-actions .button {
    width: 100%;
  }

  .home-hero .trust-row {
    display: none;
  }

  .home-hero .hero-landscape figcaption {
    left: 15px;
    right: 15px;
    font-size: 0.46rem;
  }

  .home-experiments,
  .experiments-hero,
  .experiments-browser {
    width: min(100% - 30px, 1360px);
  }

  .home-experiments {
    margin-top: 45px;
    padding: 24px 18px;
  }

  .experiment-category-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .experiment-category-card {
    min-height: 145px;
  }

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

  .experiment-card.expanded {
    grid-column: auto;
  }

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

  .experiment-results>header,
  .answers-heading,
  .answer-form>div {
    align-items: stretch;
    flex-direction: column;
  }

  .answer-author {
    flex-wrap: wrap;
  }

  .answer-author>b {
    width: 100%;
    margin: 8px 0 0;
    text-align: center;
  }

  .answer-rating {
    flex-wrap: wrap;
  }

  .romania-leaflet-map {
    min-height: 500px;
  }

  .lesson-content-grid-five {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {

  .experiment-category-strip,
  .experiment-filters {
    grid-template-columns: 1fr;
  }

  .home-hero .hero-landscape figcaption a {
    display: none;
  }
}

.study-classes-page main {
  background: linear-gradient(180deg, #f7f5ea, #eef6ef 55%, #f7f5ea);
}

.classes-hero {
  width: min(100% - 80px, 1360px);
  margin: 46px auto 28px;
  padding: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 34px;
  align-items: end;
  border-radius: 28px;
  background: #fffdf5;
  border: 1px solid rgba(23, 75, 60, 0.14);
}

.classes-hero h1 {
  margin: 0;
  color: var(--j-forest-deep);
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 5.6rem);
  font-weight: 500;
  letter-spacing: 0;
}

.classes-hero p:last-child {
  max-width: 760px;
  color: var(--j-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.classes-hero-stats {
  min-height: 180px;
  padding: 24px;
  display: grid;
  align-content: center;
  border-radius: 22px;
  color: white;
  background: var(--j-forest);
}

.classes-hero-stats strong {
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 1;
}

.classes-hero-stats span {
  font-weight: 850;
}

.classes-hero-stats small {
  color: rgba(255, 255, 255, 0.72);
}

.grade-nav {
  width: min(100% - 80px, 1360px);
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.grade-nav a {
  min-height: 74px;
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 4px;
  border-radius: 18px;
  border: 1px solid rgba(23, 75, 60, 0.14);
  background: white;
}

.grade-nav span {
  color: var(--j-forest);
  font-weight: 900;
  font-size: 1.35rem;
}

.grade-nav small {
  color: var(--j-muted);
  font-size: 0.72rem;
}

.study-class-section {
  width: min(100% - 80px, 1360px);
  margin: 0 auto 34px;
  padding: 34px;
  border-radius: 26px;
  border: 1px solid rgba(23, 75, 60, 0.14);
  background: rgba(255, 253, 245, 0.78);
}

.study-class-section>header {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.study-class-section h2 {
  margin: 0;
  color: var(--j-forest-deep);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 500;
  letter-spacing: 0;
}

.study-class-section header p:last-child {
  max-width: 820px;
  color: var(--j-muted);
}

.class-units-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.class-unit-card {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(23, 75, 60, 0.12);
  background: white;
}

.class-unit-card>span {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--j-forest);
  background: var(--j-sun);
  font-weight: 900;
  font-size: 0.75rem;
}

.class-unit-card h3 {
  margin: 0 0 8px;
  color: var(--j-forest-deep);
  font-size: 1.1rem;
}

.class-unit-card p {
  margin: 0;
  color: var(--j-muted);
  line-height: 1.55;
}

.class-unit-empty {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--j-muted);
  background: #edf6e8;
  font-size: 0.86rem;
  font-weight: 750;
}

.class-unit-links {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.class-unit-links a {
  padding: 10px 12px;
  display: grid;
  gap: 3px;
  border-radius: 13px;
  border: 1px solid rgba(23, 75, 60, 0.13);
  background: #f7f5ea;
}

.class-unit-links small {
  color: var(--j-muted);
  font-size: 0.65rem;
  font-weight: 800;
}

.class-unit-links span {
  color: var(--j-forest-deep);
  font-weight: 850;
}

.class-unit-links .class-unit-link-disabled {
  padding: 10px 12px;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(89, 111, 104, .18);
  border-radius: 13px;
  color: #5e6f69;
  background: linear-gradient(135deg, rgba(245, 244, 236, .94), rgba(231, 236, 231, .86));
  cursor: not-allowed;
}

.class-unit-links .class-unit-link-disabled small {
  color: #77847f;
}

.class-unit-links .class-unit-link-disabled span {
  color: #5d675f;
  font-weight: 900;
}

.class-unit-links .class-unit-link-disabled em {
  color: #96723a;
  font-size: .62rem;
  font-style: normal;
  font-weight: 820;
}

@media (max-width: 900px) {

  .classes-hero,
  .study-class-section {
    width: min(100% - 30px, 1360px);
    padding: 24px;
  }

  .classes-hero {
    grid-template-columns: 1fr;
  }

  .grade-nav {
    width: min(100% - 30px, 1360px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .class-units-grid {
    grid-template-columns: 1fr;
  }

  .study-class-section>header {
    align-items: stretch;
    flex-direction: column;
  }
}

/* ========================================================================== */
/* PHYASTRO 2026 — Observator tehnic / editorial scientific                   */
/* ========================================================================== */
:root {
  --phy-night: #0c2626;
  --phy-night-2: #123332;
  --phy-ink: #172b2a;
  --phy-paper: #f3f0e6;
  --phy-paper-2: #e9e5d8;
  --phy-mint: #82dfc4;
  --phy-gold: #eccd72;
  --phy-line: rgba(29, 56, 53, 0.18);
  --serif: "Space Grotesk", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --sans: "Manrope", "Segoe UI Variable Text", "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--phy-ink);
  background: var(--phy-paper);
  font-family: var(--sans);
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  letter-spacing: -0.045em;
}

.site-shell main {
  overflow: clip;
}

.section-code {
  margin: 0 0 12px;
  color: #4f756b;
  font: 800 0.62rem/1.4 "Space Grotesk", sans-serif;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

/* Antet inteligent */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(28, 57, 53, 0.17);
  color: var(--phy-ink);
  background: rgba(246, 243, 234, 0.94);
  box-shadow: 0 8px 30px rgba(11, 38, 36, 0.06);
  backdrop-filter: blur(18px);
  transition: transform 260ms cubic-bezier(.2, .8, .2, 1), box-shadow 180ms ease;
}

.site-header.is-hidden {
  transform: translateY(calc(-100% - 4px));
}

.header-inner {
  width: min(100% - 40px, 1460px);
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(310px, 1fr) auto minmax(170px, 1fr);
  gap: 24px;
  align-items: center;
}

.header-left,
.header-tools {
  display: flex;
  align-items: center;
}

.header-left {
  gap: 10px;
}

.header-tools {
  justify-content: flex-end;
  gap: 7px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--phy-night);
  text-decoration: none;
  text-transform: none !important;
}

.brand-word {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.brand-word b {
  color: #186753;
  font-weight: 750;
}

.phyastro-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
}

.phyastro-mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mark-frame {
  fill: var(--phy-night);
  stroke: rgba(255, 255, 255, .1);
  stroke-width: 1;
}

.mark-orbit {
  fill: none;
  stroke: var(--phy-mint);
  stroke-width: 1.4;
}

.mark-p {
  fill: none;
  stroke: #fffdf5;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark-star {
  fill: var(--phy-gold);
}

.home-icon-button,
.header-tool {
  width: 39px;
  height: 39px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--phy-line);
  border-radius: 50%;
  color: var(--phy-night);
  background: rgba(255, 255, 255, .72);
  cursor: pointer;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.home-icon-button:hover,
.header-tool:hover {
  color: white;
  background: var(--phy-night);
  transform: translateY(-1px);
}

.home-icon-button svg,
.header-tool svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main-menu {
  position: relative;
}

.main-menu-toggle {
  min-height: 39px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--phy-night);
  border-radius: 8px;
  color: white;
  background: var(--phy-night);
  cursor: pointer;
  font-family: var(--sans);
}

.main-menu-toggle b {
  font-size: .63rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.menu-lines {
  width: 16px;
  display: grid;
  gap: 4px;
}

.menu-lines i {
  height: 1.5px;
  display: block;
  background: currentColor;
}

.menu-lines i:last-child {
  width: 11px;
}

.main-menu-panel {
  position: absolute;
  z-index: 120;
  top: 52px;
  left: 0;
  width: min(410px, calc(100vw - 28px));
  max-height: calc(100vh - 96px);
  padding: 12px;
  display: none;
  overflow: auto;
  border: 1px solid rgba(130, 223, 196, .22);
  border-radius: 16px;
  color: white;
  background: #0d2928;
  box-shadow: 0 28px 70px rgba(4, 25, 24, .35);
}

.main-menu-panel.is-open {
  display: block;
  animation: phy-panel-in 180ms ease both;
}

@keyframes phy-panel-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

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

.menu-panel-heading {
  padding: 17px 16px 21px;
  display: grid;
  gap: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.menu-panel-heading span {
  color: var(--phy-mint);
  font: 700 .56rem "Space Grotesk";
  letter-spacing: .16em;
}

.menu-panel-heading strong {
  font-size: 1.3rem;
}

.menu-primary-links {
  padding: 10px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.menu-primary-links a {
  padding: 11px 12px;
  border-radius: 8px;
  color: #f6f3e9;
  text-decoration: none;
  font-size: .72rem;
  font-weight: 700;
}

.menu-primary-links a:hover {
  color: var(--phy-night);
  background: var(--phy-mint);
}

.menu-utility-link {
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 2px 9px;
  border-radius: 9px;
  color: white;
  text-decoration: none;
}

.menu-utility-link>span {
  grid-row: 1/3;
  color: var(--phy-gold);
  font: 700 .58rem "Space Grotesk";
}

.menu-utility-link strong {
  font-size: .74rem;
}

.menu-utility-link small {
  color: rgba(255, 255, 255, .56);
  font-size: .59rem;
}

.menu-utility-link:hover,
.menu-utility-link.active {
  background: rgba(255, 255, 255, .09);
}

.primary-navigation {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  padding: 4px;
  display: flex;
  justify-content: center;
  gap: 3px;
  border: 1px solid var(--phy-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .58);
  transform: none !important;
}

.primary-navigation a {
  padding: 10px 17px;
  border-radius: 7px;
  color: #38504b;
  text-decoration: none;
  font-size: .67rem;
  font-weight: 750;
  white-space: nowrap;
}

.primary-navigation a:hover,
.primary-navigation a.active {
  color: white;
  background: var(--phy-night);
}

.tool-menu {
  position: relative;
}

.tool-panel {
  position: absolute;
  z-index: 130;
  top: 48px;
  right: 0;
  display: none;
  border: 1px solid var(--phy-line);
  border-radius: 14px;
  background: #fffdf7;
  box-shadow: 0 22px 55px rgba(11, 38, 36, .22);
}

.tool-panel.is-open {
  display: grid;
  animation: phy-panel-in 160ms ease both
}

.language-panel {
  min-width: 258px;
  padding: 8px
}

.language-panel button {
  padding: 11px;
  display: flex;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  color: var(--phy-ink);
  background: transparent;
  cursor: pointer;
  text-align: left
}

.language-panel button:hover {
  background: var(--phy-paper-2)
}

.language-panel b {
  color: #17705a
}

.language-panel small {
  margin-left: auto;
  color: #7a8882
}

.notification-toggle {
  position: relative
}

.notification-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  display: none;
  width: 8px;
  height: 8px;
  border: 2px solid white;
  border-radius: 50%;
  background: #e8664d
}

.notification-toggle.has-unread .notification-dot {
  display: block;
}

.notification-panel {
  width: 360px;
  padding: 10px;
  gap: 9px
}

.notification-panel header {
  padding: 8px 8px 12px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--phy-line)
}

.notification-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.notification-panel header button {
  border: 0;
  color: #27725e;
  background: transparent;
  font-size: .57rem;
  cursor: pointer
}

.notification-close {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px !important;
  color: #173f35 !important;
  background: #f1eee5 !important;
  font-size: 1rem !important;
  line-height: 1 !important;
}

.notification-close:hover {
  background: #e5dfd0 !important;
}

.about-menu {
  display: inline-flex;
}

.about-toggle {
  width: 48px;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 3px;
  border: 1px solid rgba(35, 58, 55, .18);
  cursor: pointer;
  font: inherit;
}

.about-toggle .about-chevron {
  width: 12px;
  height: 12px;
  margin-left: -2px;
  stroke-width: 2.5;
}

.about-panel {
  width: 285px;
  padding: 8px;
  gap: 4px;
}

.about-panel a {
  padding: 10px;
  display: grid;
  gap: 3px;
  border-radius: 8px;
  color: var(--phy-ink);
  text-decoration: none;
}

.about-panel a:hover {
  background: var(--phy-paper);
}

.about-panel a b {
  font-size: .7rem;
}

.about-panel a span {
  color: #66756f;
  font-size: .62rem;
  line-height: 1.35;
}

.notification-panel>a {
  padding: 11px;
  display: grid;
  gap: 4px;
  border-radius: 9px;
  color: var(--phy-ink);
  text-decoration: none
}

.notification-panel>a:hover {
  background: var(--phy-paper)
}

.notification-panel>a b {
  font-size: .7rem
}

.notification-panel>a span {
  color: #66756f;
  font-size: .63rem
}

.notification-permission {
  padding: 10px;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(39, 114, 94, .16);
  border-radius: 8px;
  background: #f2fbf6;
}

.notification-permission[hidden] {
  display: none !important;
}

.notification-permission strong {
  color: #173f35;
  font-size: .72rem;
}

.notification-permission p {
  margin: 0;
  color: #66756f;
  font-size: .62rem;
  line-height: 1.45;
}

.notification-permission button {
  justify-self: flex-start;
  border: 0;
  border-radius: 999px;
  padding: 7px 11px;
  color: white;
  background: #27725e;
  font-size: .62rem;
  font-weight: 800;
  cursor: pointer;
}

.notification-permission button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.notification-preferences {
  display: grid;
  gap: 5px;
  padding: 0 4px;
}

.notification-preferences label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #4e625b;
  font-size: .64rem;
}

.notification-list {
  display: grid;
  gap: 5px;
}

.notification-empty {
  margin: 4px 8px 8px;
  color: #7c8c86;
  font-size: .63rem;
}

.notification-item {
  padding: 11px;
  display: grid;
  gap: 4px;
  border-radius: 8px;
  color: var(--phy-ink);
  text-decoration: none;
}

.notification-item:hover {
  background: var(--phy-paper);
}

.notification-item b {
  font-size: .7rem;
}

.notification-item span {
  color: #66756f;
  font-size: .63rem;
  line-height: 1.35;
}

.notification-item.is-read {
  opacity: .64;
}

/* Primul ecran — fără fotografie generică */
.phyastro-home main {
  background: var(--phy-paper);
}

.home-hero.phyastro-hero {
  position: relative;
  width: min(100% - 48px, 1460px);
  min-height: 660px;
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(430px, .97fr);
  overflow: hidden;
  border: 1px solid rgba(126, 220, 193, .2);
  border-radius: 24px;
  color: #f7f4ea;
  background: var(--phy-night);
}

.home-hero.phyastro-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(rgba(130, 223, 196, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(130, 223, 196, .22) 1px, transparent 1px);
  background-size: 48px 48px;
}

.home-hero.phyastro-hero::after {
  content: "PHY / OBSERVATORY SYSTEM / 2026";
  position: absolute;
  right: 28px;
  bottom: 20px;
  color: rgba(255, 255, 255, .38);
  font: 700 .53rem "Space Grotesk";
  letter-spacing: .17em;
}

.home-hero.phyastro-hero .hero-copy {
  position: relative;
  z-index: 2;
  width: auto;
  padding: clamp(52px, 7vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-disciplines {
  margin: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 15px;
  color: var(--phy-mint);
  font: 750 .65rem "Space Grotesk";
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero-disciplines span+span::before {
  content: "/";
  margin-right: 15px;
  color: rgba(255, 255, 255, .32)
}

.hero-disciplines i {
  width: 100%;
  height: 1px;
  margin-top: 5px;
  display: block;
  background: linear-gradient(90deg, var(--phy-mint), transparent)
}

.home-hero.phyastro-hero h1 {
  max-width: 720px;
  margin: 0;
  color: #fffdf5;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.65rem, 4.25vw, 4.45rem);
  font-weight: 570;
  line-height: 1.01;
  letter-spacing: -.06em;
  text-shadow: none;
}

.home-hero.phyastro-hero h1 em {
  display: block;
  color: var(--phy-gold);
  font-style: normal;
  font-weight: 520
}

.home-hero.phyastro-hero .hero-manifesto {
  margin: 26px 0 6px;
  color: var(--phy-mint);
  font: 700 .78rem "Space Grotesk";
  letter-spacing: .14em;
  text-transform: uppercase
}

.home-hero.phyastro-hero .hero-lede {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .68);
  font-size: .92rem;
  line-height: 1.75
}

.home-hero.phyastro-hero .hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 9px;
  align-items: center
}

.button-outline-light {
  border: 1px solid rgba(255, 255, 255, .35);
  color: white;
  background: transparent
}

.button-outline-light:hover {
  color: var(--phy-night);
  background: white
}

.hero-metrics {
  margin-top: 36px;
  padding-top: 18px;
  display: flex;
  gap: 26px;
  border-top: 1px solid rgba(255, 255, 255, .14)
}

.hero-metrics span {
  display: flex;
  gap: 7px;
  align-items: baseline;
  color: rgba(255, 255, 255, .52);
  font-size: .58rem;
  text-transform: uppercase;
  letter-spacing: .07em
}

.hero-metrics b {
  color: white;
  font: 650 1rem "Space Grotesk";
  letter-spacing: -.03em
}

.hero-instrument {
  position: relative;
  z-index: 1;
  margin: 28px 28px 28px 0;
  padding: 24px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid rgba(130, 223, 196, .3);
  border-radius: 18px;
  background: radial-gradient(circle at 52% 48%, rgba(40, 113, 95, .3), transparent 38%), rgba(5, 28, 28, .54);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, .18)
}

.instrument-meta {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, .44);
  font: 700 .55rem "Space Grotesk";
  letter-spacing: .14em
}

.instrument-meta b {
  color: var(--phy-gold)
}

.orbital-stage {
  position: relative;
  min-height: 430px
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(130, 223, 196, .46);
  border-radius: 50%;
  transform: translate(-50%, -50%)
}

.orbit-a {
  width: 78%;
  aspect-ratio: 1
}

.orbit-b {
  width: 89%;
  height: 35%;
  transform: translate(-50%, -50%) rotate(-26deg)
}

.orbit-c {
  width: 67%;
  height: 26%;
  transform: translate(-50%, -50%) rotate(38deg);
  border-style: dashed
}

.orbital-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  border: 1px solid var(--phy-gold);
  border-radius: 50%;
  background: radial-gradient(circle, #f5dfa0 0 5%, rgba(236, 205, 114, .18) 6% 48%, transparent 50%);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 45px rgba(236, 205, 114, .24)
}

.orbital-body {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--phy-night);
  border-radius: 50%;
  background: var(--phy-mint);
  box-shadow: 0 0 0 1px var(--phy-mint), 0 0 18px var(--phy-mint)
}

.body-a {
  left: 15%;
  top: 53%
}

.body-b {
  right: 13%;
  top: 31%;
  background: var(--phy-gold);
  box-shadow: 0 0 0 1px var(--phy-gold), 0 0 18px var(--phy-gold)
}

.hero-instrument .axis {
  position: absolute;
  display: block;
  background: rgba(255, 255, 255, .12)
}

.axis-horizontal {
  left: 4%;
  right: 4%;
  top: 50%;
  height: 1px
}

.axis-vertical {
  top: 7%;
  bottom: 7%;
  left: 50%;
  width: 1px
}

.formula {
  position: absolute;
  color: rgba(255, 255, 255, .62);
  font: 500 .63rem "Space Grotesk";
  letter-spacing: .04em
}

.formula-a {
  left: 6%;
  top: 17%
}

.formula-b {
  right: 5%;
  bottom: 18%
}

.instrument-readout {
  padding-top: 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, .12)
}

.instrument-readout span {
  display: grid;
  gap: 5px
}

.instrument-readout small {
  color: rgba(255, 255, 255, .35);
  font: 700 .5rem "Space Grotesk";
  letter-spacing: .13em
}

.instrument-readout b {
  color: var(--phy-mint);
  font: 600 .72rem "Space Grotesk"
}

/* Căutare, examene și comunitate */
.home-discovery {
  width: min(100% - 48px, 1180px);
  margin: 72px auto 30px;
  display: grid;
  grid-template-columns: 170px minmax(360px, 1fr) 170px;
  gap: 28px;
  align-items: center
}

.exam-orb {
  aspect-ratio: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid #b8ad8a;
  border-radius: 50%;
  color: var(--phy-ink);
  background: #ede1b4;
  text-align: center;
  text-decoration: none;
  transition: transform 190ms ease, box-shadow 190ms ease
}

.exam-orb:hover {
  transform: translateY(-6px);
  box-shadow: 0 17px 38px rgba(15, 42, 39, .14)
}

.bac-orb {
  background: #d7e8df
}

.exam-orb>span {
  font: 800 .5rem "Space Grotesk";
  letter-spacing: .15em
}

.exam-orb strong {
  margin: 5px 0;
  font: 700 1.25rem "Space Grotesk"
}

.exam-orb small {
  max-width: 120px;
  color: #64716c;
  font-size: .56rem;
  line-height: 1.4
}

.lesson-search {
  position: relative
}

.lesson-search>label {
  display: block;
  margin-bottom: 10px;
  color: #4d655e;
  font-size: .63rem;
  font-weight: 750;
  text-align: center
}

.search-control {
  height: 60px;
  padding: 5px 6px 5px 22px;
  display: flex;
  border: 1px solid #a9a38f;
  border-radius: 12px;
  background: #fffdf7;
  box-shadow: 0 10px 28px rgba(15, 42, 39, .07)
}

.search-control input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--phy-ink);
  background: transparent;
  font: 500 .75rem var(--sans)
}

.search-control button {
  width: 48px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--phy-night);
  cursor: pointer
}

.search-control svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8
}

.lesson-search-results {
  position: absolute;
  z-index: 45;
  top: 92px;
  left: 0;
  right: 0;
  display: none;
  padding: 8px;
  border: 1px solid var(--phy-line);
  border-radius: 14px;
  background: #fffdf7;
  box-shadow: 0 22px 50px rgba(11, 38, 36, .2)
}

.lesson-search-results.is-open {
  display: grid
}

.lesson-search-results a {
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 3px 10px;
  border-radius: 8px;
  color: var(--phy-ink);
  text-decoration: none
}

.lesson-search-results a:hover {
  background: var(--phy-paper-2)
}

.lesson-search-results a>span {
  grid-row: 1/3;
  color: #27725e;
  font: 750 .5rem "Space Grotesk";
  letter-spacing: .1em
}

.lesson-search-results strong {
  font-size: .72rem
}

.lesson-search-results small {
  color: #6e7c76;
  font-size: .56rem
}

.lesson-search-results p {
  padding: 10px;
  margin: 0;
  color: #6e7c76;
  font-size: .7rem
}

.community-dock {
  width: min(100% - 48px, 1320px);
  margin: 0 auto 80px;
  padding: 28px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: center;
  border: 1px solid var(--phy-line);
  border-radius: 18px;
  background: #eae6d9
}

.community-dock h2 {
  margin: 0;
  color: var(--phy-night);
  font-size: 1.7rem
}

.community-dock>div>p:last-child {
  margin: 7px 0 0;
  color: #66756f;
  font-size: .7rem;
  line-height: 1.55
}

.community-dock nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px
}

.community-dock a {
  min-height: 76px;
  padding: 12px;
  display: flex;
  gap: 11px;
  align-items: center;
  border: 1px solid rgba(24, 65, 60, .14);
  border-radius: 11px;
  color: var(--phy-ink);
  background: #fffdf7;
  text-decoration: none
}

.community-dock a:hover {
  color: white;
  background: var(--phy-night)
}

.community-dock svg,
.footer-social svg {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round
}

.community-dock a span {
  display: grid;
  gap: 3px
}

.community-dock a b {
  font-size: .68rem
}

.community-dock a small {
  color: #75817c;
  font-size: .52rem
}

.community-dock a:hover small {
  color: rgba(255, 255, 255, .56)
}

/* Laborator și domenii */
.home-experiments {
  width: min(100% - 48px, 1320px);
  margin: 0 auto 90px;
  padding: 42px;
  border: 1px solid var(--phy-line);
  border-radius: 22px;
  background: #fffdf7
}

.home-experiments .section-heading h2,
.phyastro-domains .section-heading h2 {
  max-width: 760px;
  color: var(--phy-night);
  font-size: clamp(2.5rem, 4.4vw, 4.8rem);
  line-height: .98
}

.experiment-category-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px
}

.experiment-category-card {
  min-height: 175px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--phy-line);
  border-radius: 12px;
  color: var(--phy-ink);
  background: var(--phy-paper);
  text-decoration: none
}

.experiment-category-card:hover {
  color: white;
  border-color: var(--phy-night);
  background: var(--phy-night);
  transform: translateY(-4px)
}

.experiment-category-card>small {
  color: #75817c;
  font: 700 .52rem "Space Grotesk"
}

.experiment-category-card>span {
  width: 40px;
  height: 40px;
  margin: 18px 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #a79d7b;
  border-radius: 50%;
  color: var(--phy-night);
  background: var(--phy-gold);
  font: 650 .9rem "Space Grotesk"
}

.experiment-category-card>strong {
  margin-top: 16px;
  font-size: .7rem
}

.experiment-category-card>em {
  margin-top: 4px;
  color: #718079;
  font-size: .54rem;
  font-style: normal;
  line-height: 1.4
}

.experiment-category-card:hover em,
.experiment-category-card:hover>small {
  color: rgba(255, 255, 255, .55)
}

.phyastro-domains {
  width: min(100% - 48px, 1320px);
  margin: 0 auto 110px
}

.domain-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.domain-panel {
  min-height: 410px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 19px;
  color: white;
  background: var(--phy-night);
  text-decoration: none;
  position: relative
}

.domain-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .15;
  background-image: linear-gradient(rgba(130, 223, 196, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(130, 223, 196, .35) 1px, transparent 1px);
  background-size: 36px 36px
}

.astro-panel {
  background: #242d45
}

.domain-panel>* {
  position: relative
}

.domain-panel>span {
  color: var(--phy-mint);
  font: 750 .58rem "Space Grotesk";
  letter-spacing: .14em
}

.domain-panel h3 {
  margin: auto 0 15px;
  color: white;
  font-size: clamp(3.7rem, 6vw, 7rem);
  line-height: .83
}

.domain-panel p {
  max-width: 530px;
  color: rgba(255, 255, 255, .65);
  font-size: .72rem;
  line-height: 1.65
}

.domain-panel strong {
  margin-top: 18px;
  color: var(--phy-gold);
  font-size: .65rem
}

.domain-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(11, 38, 36, .16)
}

/* Capitolele și paginile interne */
.chapter-map-section.awaiting-chapter .chapter-map-heading {
  opacity: .44
}

.chapter-map-placeholder {
  padding: 75px 30px;
  border: 1px dashed rgba(236, 205, 114, .55);
  border-radius: 20px;
  color: white;
  background: #102f2e;
  text-align: center
}

.chapter-map-placeholder>span {
  color: var(--phy-gold);
  font: 750 .6rem "Space Grotesk";
  letter-spacing: .14em
}

.chapter-map-placeholder h3 {
  max-width: 650px;
  margin: 15px auto;
  color: white;
  font-size: 2rem
}

.chapter-map-placeholder p {
  color: rgba(255, 255, 255, .58)
}

.lesson-section-card {
  min-height: 255px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--phy-line);
  border-radius: 16px;
  color: inherit;
  background: white;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease
}

.lesson-section-card:hover {
  transform: translateY(-5px);
  border-color: #957c34;
  box-shadow: 0 18px 35px rgba(17, 48, 44, .1)
}

.lesson-section-card>span {
  color: #927328;
  font-weight: 800
}

.lesson-section-card h2 {
  color: var(--phy-night);
  font-size: 1.5rem
}

.lesson-section-card p {
  color: #66756f;
  line-height: 1.6
}

.lesson-section-card>strong {
  margin-top: auto;
  color: #27725e;
  font-size: .63rem
}

.lesson-section-card>strong i {
  font-style: normal
}

.lesson-section-hero,
.exam-hero {
  padding: 100px max(38px, calc((100% - 1280px)/2));
  color: white;
  background: var(--phy-night)
}

.lesson-section-hero h1,
.exam-hero h1 {
  max-width: 980px;
  margin: 12px 0;
  color: white;
  font-size: clamp(3rem, 5.5vw, 5.8rem);
  line-height: .95
}

.lesson-section-hero .section-number {
  display: block;
  color: var(--phy-gold);
  font: 750 .9rem "Space Grotesk"
}

.lesson-section-hero>p:last-child,
.exam-hero>p:last-child {
  max-width: 760px;
  color: rgba(255, 255, 255, .68);
  line-height: 1.7
}

.section-step-nav {
  padding: 12px max(30px, calc((100% - 1280px)/2));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  background: #e7e2d4
}

.section-step-nav a {
  padding: 13px;
  border-radius: 9px;
  color: #445b54;
  text-decoration: none;
  font-size: .59rem
}

.section-step-nav a span {
  display: block;
  margin-bottom: 4px;
  color: #967326;
  font-weight: 800
}

.section-step-nav a.active {
  color: white;
  background: var(--phy-night)
}

.section-step-nav a.active span {
  color: var(--phy-gold)
}

.lesson-section-body {
  width: min(100% - 60px, 1180px);
  margin: 70px auto;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 55px
}

.lesson-section-body h2 {
  font-size: 3rem;
  color: var(--phy-night)
}

.lesson-section-body>div>p {
  max-width: 780px;
  color: #52665d;
  line-height: 1.8
}

.content-placeholder {
  margin-top: 35px;
  padding: 45px;
  border: 1px dashed #aa9d78;
  border-radius: 17px;
  background: #ece7d8
}

.content-placeholder span {
  display: block;
  color: #8d6b21;
  font: 750 .59rem "Space Grotesk";
  letter-spacing: .13em
}

.content-placeholder strong {
  display: block;
  margin-top: 12px;
  color: #304b41
}

.lesson-section-body aside {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border: 1px solid var(--phy-line);
  border-radius: 14px;
  background: #faf7ee
}

.lesson-section-body aside a {
  padding: 11px;
  border-radius: 8px;
  color: #265e4d;
  text-decoration: none;
  background: white
}

.exam-bac {
  background: #153d37
}

.exam-admission {
  background: #393428
}

.exam-card-grid {
  width: min(100% - 60px, 1180px);
  margin: 65px auto 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px
}

.exam-card-grid article {
  padding: 30px;
  border: 1px solid var(--phy-line);
  border-radius: 16px;
  background: #fffdf7
}

.exam-card-grid span {
  color: #987426;
  font-weight: 800
}

.exam-card-grid h2 {
  color: var(--phy-night)
}

.exam-card-grid p {
  color: #68756f;
  line-height: 1.65
}

/* Clase */
.study-classes-page main {
  background: var(--phy-paper)
}

.classes-hero {
  border-color: var(--phy-line);
  background: #fffdf7
}

.classes-hero h1,
.study-class-section h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  color: var(--phy-night)
}

.classes-hero-stats {
  background: var(--phy-night)
}

.classes-hero-stats strong {
  font-family: "Space Grotesk", sans-serif
}

.grade-nav a {
  border-color: var(--phy-line);
  border-radius: 11px;
  text-decoration: none
}

.grade-nav a:hover {
  color: white;
  background: var(--phy-night)
}

.grade-nav a:hover span,
.grade-nav a:hover small {
  color: inherit
}

.study-class-section {
  border-color: var(--phy-line);
  background: rgba(255, 253, 247, .78)
}

.class-unit-card {
  border-color: var(--phy-line);
  border-radius: 13px
}

.class-unit-links {
  max-height: 330px;
  padding-right: 4px;
  overflow: auto
}

.class-unit-links a {
  border-radius: 8px;
  text-decoration: none
}

.class-unit-links a:hover {
  background: #dfece5
}

/* Footer */
.brand-footer .phyastro-mark {
  width: 48px;
  height: 48px
}

.footer-social {
  margin-top: 18px;
  display: flex;
  gap: 8px
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  color: white
}

.footer-social a:hover {
  color: var(--phy-night);
  background: var(--phy-mint)
}

@media(max-width:1180px) {
  .header-inner {
    grid-template-columns: 1fr auto
  }

  .primary-navigation {
    display: none
  }

  .home-hero.phyastro-hero {
    grid-template-columns: 1fr .8fr
  }

  .experiment-category-strip {
    grid-template-columns: repeat(4, 1fr)
  }

  .community-dock {
    grid-template-columns: 1fr
  }

  .community-dock nav {
    grid-template-columns: repeat(4, 1fr)
  }
}

@media(max-width:900px) {
  .home-hero.phyastro-hero {
    grid-template-columns: 1fr
  }

  .home-hero.phyastro-hero .hero-copy {
    padding: 64px 44px 36px
  }

  .hero-instrument {
    margin: 0 28px 28px;
    min-height: 470px
  }

  .home-discovery {
    grid-template-columns: 130px 1fr 130px
  }

  .community-dock nav {
    grid-template-columns: repeat(2, 1fr)
  }

  .domain-duo {
    grid-template-columns: 1fr
  }

  .section-step-nav {
    grid-template-columns: 1fr
  }

  .lesson-section-body {
    grid-template-columns: 1fr
  }

  .exam-card-grid {
    grid-template-columns: 1fr
  }
}

@media(max-width:680px) {
  .header-inner {
    width: min(100% - 20px, 1460px);
    grid-template-columns: 1fr auto;
    gap: 8px
  }

  .home-icon-button {
    display: none
  }

  .brand-word {
    display: none
  }

  .main-menu-toggle b {
    display: none
  }

  .main-menu-toggle {
    width: 39px;
    padding: 0;
    justify-content: center
  }

  .header-tools {
    gap: 4px
  }

  .home-hero.phyastro-hero {
    width: min(100% - 20px, 1460px);
    min-height: auto;
    margin-top: 10px;
    border-radius: 16px
  }

  .home-hero.phyastro-hero .hero-copy {
    padding: 52px 24px 34px
  }

  .home-hero.phyastro-hero h1 {
    font-size: clamp(2.65rem, 12vw, 4.2rem)
  }

  .hero-disciplines {
    font-size: .55rem
  }

  .hero-metrics {
    gap: 12px;
    flex-wrap: wrap
  }

  .hero-instrument {
    margin: 0 12px 12px;
    padding: 16px
  }

  .orbital-stage {
    min-height: 330px
  }

  .home-discovery {
    width: min(100% - 24px, 1180px);
    grid-template-columns: 1fr 1fr
  }

  .lesson-search {
    grid-column: 1/-1;
    grid-row: 1
  }

  .exam-orb {
    width: 132px;
    justify-self: center
  }

  .community-dock,
  .home-experiments,
  .phyastro-domains {
    width: min(100% - 24px, 1320px)
  }

  .community-dock {
    padding: 20px
  }

  .community-dock nav {
    grid-template-columns: 1fr
  }

  .home-experiments {
    padding: 24px
  }

  .experiment-category-strip {
    grid-template-columns: repeat(2, 1fr)
  }

  .domain-panel {
    min-height: 350px;
    padding: 25px
  }

  .domain-panel h3 {
    font-size: 3.9rem
  }

  .notification-panel {
    width: min(330px, calc(100vw - 22px));
    right: -42px
  }

  .about-panel {
    width: min(285px, calc(100vw - 22px));
    right: -42px
  }

  .lesson-content-grid-five {
    grid-template-columns: 1fr
  }

  .lesson-section-body,
  .exam-card-grid {
    width: min(100% - 28px, 1180px)
  }
}

@media(max-width:420px) {
  .experiment-category-strip {
    grid-template-columns: 1fr
  }

  .hero-instrument {
    display: none
  }

  .home-hero.phyastro-hero .hero-copy {
    padding-bottom: 50px
  }

  .home-discovery {
    grid-template-columns: 1fr
  }

  .lesson-search {
    grid-column: auto
  }

  .exam-orb {
    width: 145px
  }

  .exam-orb:last-child {
    grid-row: 3
  }

  .hero-actions {
    align-items: stretch !important;
    flex-direction: column
  }

  .hero-actions .button {
    width: 100%
  }
}

/* ========================================================================== */
/* PHYASTRO SPECTRAL — laborator viu, hărți tematice și navigație expresivă   */
/* ========================================================================== */
:root {
  --phy-coral: #ff765f;
  --phy-blue: #4e7df2;
  --phy-violet: #8062d7;
  --phy-cyan: #30b9d0;
  --phy-amber: #f2b341;
  --phy-cream: #f8f3e9;
}

body {
  background: var(--phy-cream);
}

.button-primary {
  border-color: #31295c;
  background: linear-gradient(135deg, #493b88, #735bd0);
  box-shadow: 0 10px 24px rgba(68, 52, 126, .18);
}

.button-primary:hover {
  background: linear-gradient(135deg, #5f4db1, #ff765f);
}

.section-code,
.kicker-dark {
  color: #7256b6;
}

/* Navigație cu voci cromatice distincte */
.site-header {
  background: rgba(251, 247, 239, .94);
  border-bottom-color: rgba(49, 41, 92, .14);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--phy-coral), var(--phy-amber), var(--phy-cyan), var(--phy-violet));
  opacity: .72;
}

.main-menu-toggle {
  border-color: #3f3476;
  background: linear-gradient(135deg, #3f3476, #6650b7);
  box-shadow: 0 7px 18px rgba(62, 49, 116, .2);
}

.main-menu-toggle b {
  font-size: .72rem;
  letter-spacing: .095em;
}

.main-menu-panel {
  border-color: rgba(132, 221, 225, .24);
  background: radial-gradient(circle at 92% 8%, rgba(255, 118, 95, .2), transparent 32%), linear-gradient(155deg, #222750 0%, #173d4b 100%);
  box-shadow: 0 30px 76px rgba(24, 25, 64, .38);
}

.menu-panel-heading span {
  color: #82e4dd;
  font-size: .63rem;
}

.menu-panel-heading strong {
  color: #fff9ee;
  font-size: 1.55rem;
  letter-spacing: -.035em;
}

.menu-primary-links {
  gap: 7px;
}

.menu-primary-links a {
  min-height: 48px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: .88rem;
  font-weight: 730;
  letter-spacing: -.02em;
}

.menu-primary-links a:nth-child(1) {
  color: #ffb5a7;
  background: rgba(255, 118, 95, .1);
}

.menu-primary-links a:nth-child(2) {
  color: #8ce5df;
  background: rgba(48, 185, 208, .1);
}

.menu-primary-links a:nth-child(3) {
  color: #c9bcff;
  background: rgba(128, 98, 215, .12);
}

.menu-primary-links a:nth-child(4) {
  grid-column: 1 / -1;
  color: #f8d77a;
  background: rgba(244, 205, 102, .11);
}

.menu-primary-links a:hover {
  color: #19243c;
  background: #fff7e9;
}

.menu-utility-link {
  min-height: 60px;
  padding: 12px 13px;
  --menu-accent: #95ded1;
}

.menu-utility-link:nth-of-type(2n) {
  --menu-accent: #ffb28f;
}

.menu-utility-link:nth-of-type(3n) {
  --menu-accent: #c1adff;
}

.menu-utility-link:nth-of-type(4n) {
  --menu-accent: #f4cd66;
}

.menu-utility-link>span {
  color: var(--menu-accent);
  font-size: .64rem;
}

.menu-utility-link strong {
  color: #fffaf0;
  font-family: "Space Grotesk", sans-serif;
  font-size: .88rem;
  letter-spacing: -.015em;
}

.menu-utility-link small {
  color: rgba(255, 255, 255, .64);
  font-size: .64rem;
}

.menu-utility-link:hover,
.menu-utility-link.active {
  background: rgba(255, 255, 255, .11);
  box-shadow: inset 3px 0 0 var(--menu-accent);
}

.primary-navigation {
  border-color: rgba(78, 64, 133, .18);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 8px 20px rgba(48, 42, 78, .06);
}

.primary-navigation a {
  padding: 11px 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: .78rem;
  font-weight: 760;
  letter-spacing: -.018em;
}

.primary-navigation a:nth-child(1) {
  color: #d95643;
}

.primary-navigation a:nth-child(2) {
  color: #168ba4;
}

.primary-navigation a:nth-child(3) {
  color: #6650b7;
}

.primary-navigation a:nth-child(4) {
  color: #805f15;
  background: #fff5d7;
}

.primary-navigation a:nth-child(1):hover,
.primary-navigation a:nth-child(1).active {
  color: white;
  background: #df604d;
}

.primary-navigation a:nth-child(2):hover,
.primary-navigation a:nth-child(2).active {
  color: white;
  background: #178fa9;
}

.primary-navigation a:nth-child(3):hover,
.primary-navigation a:nth-child(3).active {
  color: white;
  background: #6650b7;
}

.primary-navigation a:nth-child(4):hover,
.primary-navigation a:nth-child(4).active {
  color: #ffffff;
  background: #8a6b21;
}

.header-tool.profile-tool {
  color: #6550b1;
  border-color: rgba(101, 80, 177, .28);
  background: #f0ebff;
}

.notification-toggle {
  color: #d95948;
  border-color: rgba(217, 89, 72, .25);
  background: #fff0eb;
}

.language-toggle {
  color: #168ca4;
  border-color: rgba(22, 140, 164, .25);
  background: #eaf9fb;
}

/* Primul ecran: levitație magnetică și trafic cosmic */
.home-hero.phyastro-hero {
  border-color: rgba(111, 101, 216, .28);
  background: radial-gradient(circle at 72% 32%, rgba(82, 77, 185, .31), transparent 34%), radial-gradient(circle at 18% 88%, rgba(255, 118, 95, .16), transparent 31%), linear-gradient(135deg, #111b38 0%, #122d45 54%, #173f46 100%);
  box-shadow: 0 28px 70px rgba(34, 31, 73, .16);
}

.home-hero.phyastro-hero::before {
  opacity: .2;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .85) 0 1px, transparent 1.5px), radial-gradient(circle, rgba(100, 224, 218, .8) 0 1px, transparent 1.7px), linear-gradient(rgba(137, 202, 221, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(137, 202, 221, .12) 1px, transparent 1px);
  background-position: 0 0, 19px 27px, 0 0, 0 0;
  background-size: 83px 83px, 137px 137px, 52px 52px, 52px 52px;
}

.home-hero.phyastro-hero h1 em {
  color: #ffc967;
}

.hero-disciplines {
  color: #80e4da;
}

.hero-disciplines i {
  background: linear-gradient(90deg, #80e4da, #8b70e1 55%, transparent);
}

.home-hero.phyastro-hero .hero-manifesto {
  color: #ff9b88;
}

.magnetic-instrument {
  overflow: hidden;
  border-color: rgba(129, 211, 224, .34);
  background: radial-gradient(circle at 50% 47%, rgba(103, 83, 206, .3), transparent 31%), linear-gradient(165deg, rgba(7, 17, 46, .58), rgba(9, 35, 51, .72));
}

.magnetic-stage {
  --mag-x: 0px;
  --mag-y: 0px;
  --mag-tilt: 0deg;
  --jitter-a: 0px;
  --jitter-b: 0px;
  position: relative;
  min-height: 430px;
  overflow: hidden;
  perspective: 900px;
  cursor: crosshair;
  isolation: isolate;
}

.magnetic-stage::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 12% 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 101, 242, .22), transparent 60%);
  filter: blur(18px);
}

.star-field {
  position: absolute;
  z-index: -4;
  inset: 0;
  opacity: .62;
  background-image: radial-gradient(circle, #fff 0 1px, transparent 1.5px), radial-gradient(circle, #6be0e0 0 1px, transparent 1.6px);
  background-size: 47px 47px, 89px 89px;
}

.star-field-a {
  animation: star-drift 28s linear infinite;
}

.star-field-b {
  opacity: .34;
  background-size: 113px 113px, 151px 151px;
  transform: rotate(17deg);
  animation: star-drift-reverse 38s linear infinite;
}

@keyframes star-drift {
  to {
    background-position: 94px 47px, -89px 178px;
  }
}

@keyframes star-drift-reverse {
  to {
    background-position: -226px 113px, 302px -151px;
  }
}

.space-fleet {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.spacecraft {
  position: absolute;
  left: -18%;
  width: 42px;
  height: 14px;
  border: 1px solid rgba(202, 236, 255, .6);
  border-radius: 55% 80% 42% 55%;
  background: linear-gradient(90deg, #586b8f, #d8e3ed 58%, #7180a4);
  box-shadow: 0 0 16px rgba(107, 211, 255, .25);
  opacity: .52;
  animation: ship-cross 16s linear infinite;
}

.spacecraft::before {
  content: "";
  position: absolute;
  left: 13px;
  top: -7px;
  width: 18px;
  height: 8px;
  border-radius: 60% 80% 0 0;
  background: rgba(96, 210, 231, .66);
  clip-path: polygon(30% 100%, 48% 0, 77% 0, 100% 100%);
}

.spacecraft::after {
  content: "";
  position: absolute;
  left: -13px;
  top: 4px;
  width: 15px;
  height: 5px;
  background: linear-gradient(90deg, transparent, #ff9d67);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  filter: drop-shadow(0 0 5px #ff9d67);
}

.spacecraft i {
  position: absolute;
  right: 7px;
  top: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8de8ed;
  box-shadow: 0 0 7px #8de8ed;
}

.craft-a {
  top: 14%;
  animation-duration: 18s;
}

.craft-b {
  top: 72%;
  transform: scale(.68);
  animation-delay: -10s;
  animation-duration: 24s;
  opacity: .32;
}

.craft-c {
  top: 32%;
  transform: scale(.42);
  animation-delay: -18s;
  animation-duration: 31s;
  opacity: .24;
}

.craft-d {
  top: 88%;
  transform: scale(.84);
  animation-delay: -5s;
  animation-duration: 21s;
  opacity: .38;
}

@keyframes ship-cross {
  0% {
    left: -18%;
    translate: 0 0;
  }

  48% {
    translate: 0 -18px;
  }

  100% {
    left: 115%;
    translate: 0 8px;
  }
}

.field-line {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(94, 224, 218, .27);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(64deg);
  box-shadow: inset 0 0 16px rgba(96, 211, 217, .06);
}

.field-line-a {
  width: 88%;
  height: 67%;
}

.field-line-b {
  width: 69%;
  height: 51%;
  border-style: dashed;
  transform: translate(-50%, -50%) rotateX(64deg) rotateZ(18deg);
}

.field-line-c {
  width: 48%;
  height: 37%;
  transform: translate(-50%, -50%) rotateX(64deg) rotateZ(-18deg);
}

.magnet-base {
  position: absolute;
  z-index: 1;
  bottom: 27px;
  width: 96px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .24);
  color: white;
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(20, 29, 69, .85));
  box-shadow: 0 16px 28px rgba(0, 0, 0, .32);
}

.magnet-base b {
  font: 750 .65rem "Space Grotesk";
}

.magnet-n {
  left: calc(50% - 105px);
  border-radius: 14px 3px 3px 14px;
  box-shadow: inset 9px 0 0 rgba(255, 92, 87, .48), 0 16px 28px rgba(0, 0, 0, .32);
}

.magnet-s {
  right: calc(50% - 105px);
  border-radius: 3px 14px 14px 3px;
  box-shadow: inset -9px 0 0 rgba(82, 132, 255, .5), 0 16px 28px rgba(0, 0, 0, .32);
}

.super-ring {
  position: absolute;
  z-index: 3;
  left: 50%;
  width: 250px;
  height: 84px;
  transition: transform 130ms cubic-bezier(.22, .8, .22, 1), top 180ms ease;
  transform-style: preserve-3d;
}

.super-ring i {
  position: absolute;
  inset: 0;
  border: 8px solid #b5fff2;
  border-radius: 50%;
  background: radial-gradient(ellipse, transparent 52%, rgba(112, 250, 235, .14) 54% 64%, transparent 66%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .72), 0 0 15px rgba(103, 246, 226, .52), 0 0 38px rgba(92, 115, 255, .28);
  animation: ring-energy 2.8s ease-in-out infinite;
}

.super-ring::after {
  content: "";
  position: absolute;
  left: 11%;
  right: 11%;
  top: 48%;
  height: 2px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, white, #67efe4, white, transparent);
  box-shadow: 0 0 10px #6ff2e6;
  opacity: .7;
}

.super-ring-a {
  top: 29%;
  transform: translate3d(calc(-50% + var(--mag-x)), calc(-50% + var(--mag-y)), 60px) rotateX(67deg) rotateZ(calc(-11deg + var(--mag-tilt)));
}

.super-ring-b {
  top: 41%;
  width: 205px;
  height: 70px;
  transform: translate3d(calc(-50% - var(--mag-x)), calc(-50% + var(--jitter-a)), 36px) rotateX(69deg) rotateZ(calc(15deg - var(--mag-tilt)));
}

.super-ring-c {
  top: 53%;
  width: 165px;
  height: 58px;
  transform: translate3d(calc(-50% + var(--jitter-b)), calc(-50% - var(--mag-y)), 18px) rotateX(71deg) rotateZ(calc(-6deg + var(--mag-tilt)));
}

.super-ring-d {
  top: 63%;
  width: 124px;
  height: 45px;
  transform: translate3d(calc(-50% - var(--jitter-a)), calc(-50% + var(--jitter-b)), 4px) rotateX(72deg) rotateZ(calc(18deg - var(--mag-tilt)));
}

.super-ring-b i {
  border-color: #85dfff;
  animation-delay: -.7s;
}

.super-ring-c i {
  border-color: #cfb4ff;
  animation-delay: -1.35s;
}

.super-ring-d i {
  border-color: #ffad8f;
  animation-delay: -2s;
}

@keyframes ring-energy {

  0%,
  100% {
    opacity: .78;
    filter: brightness(.9);
    transform: scale(.985);
  }

  50% {
    opacity: 1;
    filter: brightness(1.25);
    transform: scale(1.025);
  }
}

.magnetic-stage.is-reacting .super-ring {
  transition-duration: 65ms;
}

.flux-core {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 47%;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 205, 103, .62);
  border-radius: 50%;
  color: #fff2b7;
  background: radial-gradient(circle, #fff5bd 0 4%, rgba(255, 188, 83, .22) 6% 36%, rgba(82, 94, 210, .16) 38% 62%, transparent 64%);
  box-shadow: 0 0 50px rgba(255, 192, 84, .33);
  transform: translate(-50%, -50%);
}

.flux-core i {
  position: absolute;
  inset: 15px;
  border: 1px dashed rgba(255, 255, 255, .45);
  border-radius: 50%;
  animation: flux-spin 7s linear infinite;
}

.flux-core b {
  font: 700 .72rem "Space Grotesk";
}

@keyframes flux-spin {
  to {
    transform: rotate(360deg);
  }
}

.magnetic-label {
  position: absolute;
  z-index: 5;
  color: rgba(255, 255, 255, .46);
  font: 700 .48rem "Space Grotesk";
  letter-spacing: .14em;
}

.label-field {
  left: 5%;
  top: 11%;
}

.label-temperature {
  right: 5%;
  bottom: 14%;
}

.magnetic-hint {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 2px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: rgba(255, 255, 255, .55);
  background: rgba(11, 20, 47, .58);
  font-size: .5rem;
  transform: translateX(-50%);
}

/* Biblioteca de capitole: harta apare numai pe pagina sa */
.chapter-library {
  background: radial-gradient(circle at 9% 6%, rgba(255, 118, 95, .1), transparent 24rem), radial-gradient(circle at 94% 20%, rgba(78, 125, 242, .11), transparent 26rem), #f8f3e9;
}

.chapter-library .subject-heading h2 {
  max-width: 820px;
  color: #2b3157;
}

.chapter-library .subject-release-note {
  max-width: 640px;
  color: #111 !important;
  font-weight: 650;
  line-height: 1.65;
}

.chapter-selector-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.chapter-library-card {
  --chapter-accent: #ff765f;
  position: relative;
  min-height: 230px;
  padding: 22px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  grid-template-rows: auto 1fr auto;
  gap: 17px;
  overflow: hidden;
  border: 1px solid rgba(55, 50, 94, .14);
  border-radius: 22px;
  color: #292d4a;
  background: linear-gradient(150deg, rgba(255, 255, 255, .96), rgba(255, 248, 237, .82));
  box-shadow: 0 16px 38px rgba(42, 38, 75, .07);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.chapter-library-card:nth-child(3n+2) {
  --chapter-accent: #399fc1;
}

.chapter-library-card:nth-child(3n+3) {
  --chapter-accent: #7a5fc8;
}

.chapter-library-card:nth-child(4n) {
  --chapter-accent: #20a783;
}

.chapter-library-card:nth-child(5n) {
  --chapter-accent: #e29b27;
}

.chapter-library-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--chapter-accent), transparent 76%);
}

.chapter-library-card::after {
  content: "";
  position: absolute;
  right: -48px;
  top: -48px;
  width: 145px;
  height: 145px;
  border: 1px solid var(--chapter-accent);
  border-radius: 50%;
  opacity: .12;
  box-shadow: 0 0 0 22px color-mix(in srgb, var(--chapter-accent) 10%, transparent), 0 0 0 44px color-mix(in srgb, var(--chapter-accent) 6%, transparent);
}

.chapter-library-card:hover {
  border-color: color-mix(in srgb, var(--chapter-accent) 55%, transparent);
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(50, 43, 93, .13);
}

.chapter-library-card-pending {
  cursor: default;
  border-style: dashed;
  background: linear-gradient(150deg, rgba(255, 255, 255, .88), rgba(242, 238, 224, .72));
}

.chapter-library-card-pending:hover {
  transform: none;
  box-shadow: 0 16px 38px rgba(42, 38, 75, .07);
}

.chapter-library-card-pending .chapter-library-action,
.chapter-library-card-pending .chapter-library-meta em {
  color: #8d6b28;
}

.chapter-library-card>i {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: var(--chapter-accent);
  font: 750 .68rem "Space Grotesk";
  font-style: normal;
}

.chapter-library-symbol {
  position: absolute;
  right: 21px;
  top: 26px;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--chapter-accent) 28%, transparent);
  border-radius: 50%;
  color: var(--chapter-accent);
  background: color-mix(in srgb, var(--chapter-accent) 9%, white);
  font: 700 1.45rem "Space Grotesk";
}

.chapter-library-copy {
  grid-column: 1 / -1;
  align-self: center;
  display: grid;
  gap: 9px;
  padding-right: 56px;
}

.chapter-library-copy strong {
  color: #292d4a;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.38rem;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.chapter-library-copy small {
  color: #697078;
  font-size: .69rem;
  line-height: 1.6;
}

.chapter-library-meta {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: center;
}

.chapter-library-meta b {
  color: var(--chapter-accent);
  font-size: .65rem;
}

.chapter-library-meta em {
  color: #7c7f87;
  font-size: .58rem;
  font-style: normal;
}

.chapter-library-meta>u {
  grid-column: 1 / -1;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6e1dd;
  text-decoration: none;
}

.chapter-library-meta>u>u {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--chapter-accent);
}

.chapter-library-action {
  grid-column: 3;
  align-self: end;
  color: #38335f;
  font-size: .63rem;
  font-weight: 800;
  white-space: nowrap;
}

.chapter-library-action b {
  color: var(--chapter-accent);
  font-size: .9rem;
}

/* Pagina hărții interactive */
.chapter-map-page main {
  background: #f7f2e9;
}

.map-page-hero {
  position: relative;
  width: min(100% - 48px, 1460px);
  min-height: 480px;
  margin: 24px auto 0;
  padding: 76px clamp(30px, 6vw, 86px) 56px;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: 60px;
  align-items: end;
  overflow: hidden;
  border-radius: 26px;
  color: white;
  background: radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--map-accent) 48%, transparent), transparent 28%), radial-gradient(circle at 12% 90%, color-mix(in srgb, var(--map-accent-2) 24%, transparent), transparent 33%), linear-gradient(135deg, var(--map-dark), #152b49);
  box-shadow: 0 24px 60px rgba(34, 31, 73, .16);
}

.map-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .21;
  background-image: radial-gradient(circle, #fff 0 1px, transparent 1.5px), linear-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .13) 1px, transparent 1px);
  background-size: 97px 97px, 45px 45px, 45px 45px;
}

.map-page-hero>* {
  position: relative;
  z-index: 1;
}

.map-page-back {
  position: absolute;
  z-index: 2;
  left: clamp(30px, 6vw, 86px);
  top: 30px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: rgba(255, 255, 255, .76);
  background: rgba(10, 18, 47, .22);
  text-decoration: none;
  font-size: .64rem;
  font-weight: 750;
}

.map-page-back:hover {
  color: #25234a;
  background: white;
}

.map-page-copy .subject-breadcrumb {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, .55);
}

.map-page-code {
  margin: 0 0 12px;
  color: var(--map-accent-2);
  font: 800 .62rem "Space Grotesk";
  letter-spacing: .15em;
}

.map-page-copy h1 {
  margin: 0;
  color: white;
  font-size: clamp(3.6rem, 7vw, 7.8rem);
  font-weight: 620;
  line-height: .87;
  letter-spacing: -.065em;
}

.map-page-copy>p:last-of-type {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .7);
  line-height: 1.72;
}

.map-page-facts {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.map-page-facts span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: rgba(255, 255, 255, .62);
  background: rgba(255, 255, 255, .05);
  font-size: .59rem;
}

.map-page-facts b {
  margin-right: 4px;
  color: white;
  font-size: .75rem;
}

.map-page-progress {
  padding: 25px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 20px;
  background: rgba(9, 18, 44, .33);
  backdrop-filter: blur(14px);
}

.map-page-progress>span {
  color: var(--map-accent-2);
  font-size: .64rem;
  font-weight: 800;
}

.map-page-progress>strong {
  color: white;
  font: 620 2.8rem "Space Grotesk";
  letter-spacing: -.06em;
}

.map-page-progress>small {
  margin-top: 5px;
  color: rgba(255, 255, 255, .55);
  font-size: .59rem;
  line-height: 1.55;
}

.map-page-progress .progress-track {
  background: rgba(255, 255, 255, .13);
}

.map-page-progress .progress-track i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--map-accent), var(--map-accent-2));
}

.map-chapter-switcher {
  width: min(100% - 48px, 1320px);
  margin: 26px auto 0;
  padding: 8px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  border: 1px solid rgba(60, 53, 103, .13);
  border-radius: 16px;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 10px 30px rgba(43, 38, 75, .05);
}

.map-chapter-switcher a {
  min-height: 46px;
  padding: 8px 13px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1 0 auto;
  border-radius: 10px;
  color: #52556d;
  text-decoration: none;
  font: 700 .65rem "Space Grotesk";
}

.map-chapter-switcher a span {
  color: #9a789e;
  font-size: .54rem;
}

.map-chapter-switcher a:hover {
  color: #3f3476;
  background: #f2edff;
}

.map-chapter-switcher a.active {
  color: white;
  background: linear-gradient(135deg, #4c3e8b, #7961cd);
}

.map-chapter-switcher a.active span {
  color: #ffd37b;
}

.map-chapter-switcher > span.is-pending {
  min-height: 46px;
  padding: 8px 13px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1 0 auto;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #695f3e, #a48848);
  font: 700 .65rem "Space Grotesk";
}

.map-chapter-switcher > span.is-pending > span {
  color: #ffe09a;
  font-size: .54rem;
}

.chapter-pending-panel {
  width: min(100% - 48px, 1080px);
  margin: 28px auto 80px;
  padding: clamp(28px, 5vw, 60px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  border: 1px dashed rgba(73, 64, 47, .3);
  border-radius: 24px;
  background: linear-gradient(145deg, #fffdf5, #eee9dc);
}

.chapter-pending-panel > span {
  width: 116px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(132, 104, 47, .45);
  border-radius: 50%;
  color: #84682f;
  background: #fffaf0;
  font: 700 2.3rem "Space Grotesk";
  box-shadow: 0 0 0 12px rgba(132, 104, 47, .06);
}

.chapter-pending-panel h2 {
  margin: 6px 0 10px;
  color: #283f39;
}

.chapter-pending-panel p:last-child {
  margin: 0;
  color: #5d6b66;
  line-height: 1.7;
}

/* Scheme științifice, specifice fiecărui domeniu. */
.subject-visual-pendulum,
.subject-visual-solar {
  position: relative;
  aspect-ratio: 1.06;
  width: min(100%, 520px);
  overflow: hidden;
  border: 1px solid rgba(27, 72, 65, .25);
  border-radius: 28px;
  background:
    linear-gradient(rgba(29, 75, 66, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 75, 66, .055) 1px, transparent 1px),
    radial-gradient(circle at 58% 42%, rgba(108, 196, 170, .13), transparent 54%),
    rgba(255, 253, 245, .94);
  background-size: 28px 28px, 28px 28px, auto, auto;
  box-shadow: 0 25px 64px rgba(13, 50, 44, .14);
}

.subject-visual-pendulum::before,
.subject-visual-pendulum::after,
.subject-visual-solar::before,
.subject-visual-solar::after {
  display: none;
}

.subject-visual-pendulum svg,
.subject-visual-solar svg {
  width: 100%;
  height: 100%;
  display: block;
}

.subject-visual-pendulum > p,
.subject-visual-solar > p {
  left: 18px;
  right: 18px;
  bottom: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(32, 75, 67, .12);
  border-radius: 999px;
  color: #4c655e;
  background: rgba(255, 253, 245, .86);
  backdrop-filter: blur(8px);
}

.pendulum-support,
.pendulum-support-detail {
  fill: none;
  stroke: #284c45;
  stroke-width: 6;
  stroke-linecap: round;
}

.pendulum-support-detail {
  stroke-width: 2;
  opacity: .48;
}

.pendulum-axis {
  stroke: #66827c;
  stroke-width: 1.4;
  stroke-dasharray: 7 8;
}

.pendulum-orbit {
  fill: rgba(73, 156, 135, .08);
  stroke: #4b9d89;
  stroke-width: 2;
  stroke-dasharray: 8 7;
}

.pendulum-string {
  stroke: url(#pendulum-string-gradient);
  stroke-width: 3;
}

.pendulum-pivot {
  fill: #f3bd4f;
  stroke: #284c45;
  stroke-width: 2;
}

.pendulum-bob { fill: url(#pendulum-bob-gradient); stroke: #215b50; stroke-width: 2; }
.pendulum-bob-light { fill: rgba(255, 255, 255, .72); }
.pendulum-bob-shadow { fill: rgba(24, 67, 59, .2); }
.visual-diagram-label { fill: #58716a; font: 600 11px "Space Grotesk", sans-serif; letter-spacing: .07em; }

.subject-visual-solar {
  background:
    radial-gradient(circle at 50% 50%, rgba(239, 182, 63, .12), transparent 18%),
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.9) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 28%, rgba(255,255,255,.75) 0 1px, transparent 1.5px),
    radial-gradient(circle at 68% 80%, rgba(255,255,255,.65) 0 1px, transparent 1.5px),
    linear-gradient(155deg, #111d2a, #162e35 58%, #0d1823);
}

.solar-orbits ellipse {
  fill: none;
  stroke: rgba(216, 229, 223, .32);
  stroke-width: 1;
}

.solar-reference-line { stroke: rgba(216, 229, 223, .08); stroke-width: 1; }
.solar-sun-halo { fill: rgba(255, 192, 66, .12); }
.solar-sun { fill: url(#solar-sun-gradient); filter: url(#solar-sun-glow); }
.solar-planet circle { stroke: rgba(255, 255, 255, .35); stroke-width: .7; }
.solar-saturn-ring { fill: none; stroke: #ead7a3; stroke-width: 2.1; }
.solar-system-label { fill: rgba(224, 235, 230, .67); }

.thematic-map-section {
  margin-top: 28px;
  padding-top: 70px;
  background: radial-gradient(circle at 7% 8%, color-mix(in srgb, var(--map-accent) 17%, transparent), transparent 23rem), radial-gradient(circle at 94% 20%, color-mix(in srgb, var(--map-accent-2) 16%, transparent), transparent 26rem), linear-gradient(180deg, #f6f1e9, #eee9f2);
}

.thematic-map-heading h2 {
  color: #2b3051;
  font-size: clamp(2.7rem, 4.4vw, 5rem);
}

.thematic-map-heading .kicker {
  color: var(--map-accent);
}

.thematic-map-heading .domain-map-progress {
  border-color: color-mix(in srgb, var(--map-accent) 28%, transparent);
  background: rgba(255, 255, 255, .78);
}

.thematic-map-heading .domain-map-progress strong {
  color: var(--map-dark);
}

.thematic-map-card {
  max-width: 1180px;
  border-color: color-mix(in srgb, var(--map-accent) 28%, transparent);
  background: radial-gradient(circle at 50% 10%, color-mix(in srgb, var(--map-accent-2) 12%, transparent), transparent 23rem), repeating-radial-gradient(ellipse at 50% 45%, transparent 0 58px, rgba(67, 60, 111, .045) 59px 60px, transparent 61px 88px), #fffaf0;
  box-shadow: 0 30px 75px rgba(48, 42, 82, .12);
}

.thematic-map-card .active-chapter-header {
  border-bottom-color: color-mix(in srgb, var(--map-accent) 22%, transparent);
  background: rgba(255, 253, 247, .9);
}

.thematic-map-card .active-chapter-header>div:first-child>span {
  color: var(--map-accent);
}

.thematic-map-card .active-chapter-header h3 {
  color: #2a2d4e;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 620;
}

.thematic-map-card .chapter-score strong {
  color: var(--map-accent);
}

.thematic-map-card .chapter-map-legend {
  background: rgba(255, 255, 255, .53);
}

.legend-phenomenon i {
  border: 2px solid var(--map-accent);
  background: color-mix(in srgb, var(--map-accent) 15%, white);
}

.thematic-chapter-trail {
  margin-inline: 52px;
}

.thematic-chapter-trail::after {
  content: "";
  position: absolute;
  inset: 18px 0 24px;
  z-index: 0;
  pointer-events: none;
  opacity: .34;
  background-image: linear-gradient(rgba(81, 74, 121, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(81, 74, 121, .1) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent, #000 15% 85%, transparent);
}

.thematic-map-card .chapter-trail-line {
  z-index: 1;
}

.thematic-map-card .chapter-trail-line path:not(.trail-shadow) {
  stroke: var(--map-accent);
  stroke-width: 5;
  stroke-dasharray: 6 12;
  filter: drop-shadow(0 2px 3px color-mix(in srgb, var(--map-accent) 24%, transparent));
}

.thematic-map-card .chapter-trail-line .trail-shadow {
  stroke: color-mix(in srgb, var(--map-accent-2) 20%, transparent);
  stroke-width: 17;
  stroke-dasharray: none;
  opacity: .5;
}

.thematic-map-card .chapter-lesson-node {
  z-index: 4;
}

.thematic-map-card .lesson-bubble {
  border-color: #fffaf0;
  color: #292d4b;
  box-shadow: 0 12px 28px rgba(51, 44, 87, .19), 0 0 0 1px color-mix(in srgb, var(--map-accent) 18%, transparent);
}

.thematic-map-card .chapter-lesson-node.current .lesson-bubble {
  color: white;
  background: linear-gradient(135deg, var(--map-accent), var(--map-accent-2));
}

.thematic-map-card .chapter-lesson-node.done .lesson-bubble {
  color: #173b39;
  background: #83e0c3;
}

.thematic-map-card .lesson-node-card {
  border-color: color-mix(in srgb, var(--map-accent) 22%, transparent);
  border-radius: 17px;
  background: rgba(255, 253, 247, .94);
  box-shadow: 0 12px 28px rgba(50, 43, 86, .09);
}

.thematic-map-card .lesson-node-card small {
  color: var(--map-accent);
}

.thematic-map-card .lesson-node-card strong {
  color: #2b2e4d;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -.025em;
}

.thematic-map-card .chapter-finish-flag {
  color: white;
  background: linear-gradient(135deg, var(--map-accent), var(--map-accent-2));
}

.physics-trail-object {
  --object-color: var(--map-accent);
  position: absolute;
  z-index: 2;
  left: var(--object-x);
  top: var(--object-y);
  display: grid;
  justify-items: center;
  gap: 7px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.physics-trail-object.tone-2 {
  --object-color: var(--map-accent-2);
}

.physics-trail-object.tone-3 {
  --object-color: #5f6fcd;
}

.physics-trail-object.tone-4 {
  --object-color: #22a88a;
}

.physics-trail-object b {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 2px solid color-mix(in srgb, var(--object-color) 50%, white);
  border-radius: 19px 50% 44% 50%;
  color: var(--object-color);
  background: color-mix(in srgb, var(--object-color) 10%, white);
  box-shadow: 0 11px 24px color-mix(in srgb, var(--object-color) 19%, transparent), inset 0 0 0 5px rgba(255, 255, 255, .55);
  font: 760 .92rem "Space Grotesk";
  transform: rotate(-6deg);
  animation: physical-float 3.8s ease-in-out infinite;
  animation-delay: var(--object-delay);
}

.physics-trail-object.tone-2 b {
  border-radius: 50% 18px 50% 43%;
  transform: rotate(7deg);
}

.physics-trail-object.tone-3 b {
  border-radius: 50%;
}

.physics-trail-object.tone-4 b {
  border-radius: 18px;
  transform: rotate(4deg);
}

.physics-trail-object small {
  max-width: 112px;
  padding: 5px 7px;
  border: 1px solid rgba(61, 54, 99, .11);
  border-radius: 999px;
  color: #54566c;
  background: rgba(255, 253, 247, .88);
  font-size: .52rem;
  font-weight: 750;
  white-space: nowrap;
}

@keyframes physical-float {

  0%,
  100% {
    translate: 0 -3px;
  }

  50% {
    translate: 0 5px;
  }
}

/* Experimente mai ample, cu simbol vizual dominant */
.experiment-category-mecanica,
.experiment-mecanica {
  --lab: #ec6e5a;
  --lab-soft: #fff0eb;
}

.experiment-category-termodinamica,
.experiment-termodinamica {
  --lab: #dc9727;
  --lab-soft: #fff5da;
}

.experiment-category-electricitate,
.experiment-electricitate {
  --lab: #3977e5;
  --lab-soft: #edf3ff;
}

.experiment-category-magnetism,
.experiment-magnetism {
  --lab: #7458c9;
  --lab-soft: #f2edff;
}

.experiment-category-optica,
.experiment-optica {
  --lab: #169bb6;
  --lab-soft: #eafbfd;
}

.experiment-category-unde,
.experiment-unde {
  --lab: #249d7d;
  --lab-soft: #eaf9f3;
}

.experiment-category-moderna,
.experiment-moderna {
  --lab: #cf548f;
  --lab-soft: #fff0f7;
}

.home-experiments {
  max-width: 1380px;
  border-color: rgba(65, 55, 108, .14);
  background: linear-gradient(160deg, #fffdf8, #f5f0ff);
}

.experiment-category-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.experiment-category-card {
  position: relative;
  min-height: 225px;
  padding: 20px;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--lab) 24%, transparent);
  border-radius: 19px;
  background: linear-gradient(145deg, #fff, var(--lab-soft));
  box-shadow: 0 12px 28px rgba(53, 47, 88, .06);
}

.experiment-category-card::after {
  content: "";
  position: absolute;
  right: -37px;
  top: -42px;
  width: 115px;
  height: 115px;
  border: 1px solid var(--lab);
  border-radius: 50%;
  opacity: .14;
  box-shadow: 0 0 0 20px color-mix(in srgb, var(--lab) 9%, transparent);
}

.experiment-category-card>span {
  width: 68px;
  height: 68px;
  margin-top: 25px;
  border: 2px solid color-mix(in srgb, var(--lab) 45%, white);
  color: white;
  background: var(--lab);
  box-shadow: 0 13px 27px color-mix(in srgb, var(--lab) 26%, transparent);
  font-size: 1.35rem;
}

.experiment-category-card>strong {
  color: #303250;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  letter-spacing: -.025em;
}

.experiment-category-card>em {
  color: #6a6d7c;
  font-size: .65rem;
}

.experiment-category-card>small {
  color: var(--lab);
  font-size: .58rem;
}

.experiment-category-card:hover {
  border-color: var(--lab);
  color: #272b4b;
  background: var(--lab-soft);
  transform: translateY(-7px);
  box-shadow: 0 22px 42px color-mix(in srgb, var(--lab) 18%, transparent);
}

.experiment-category-card:hover>span {
  color: white;
}

.experiment-category-card:hover>small {
  color: var(--lab);
}

.experiment-category-card:hover>em {
  color: #666978;
}

.experiments-page main {
  background: radial-gradient(circle at 8% 3%, rgba(255, 118, 95, .09), transparent 27rem), radial-gradient(circle at 92% 14%, rgba(93, 111, 232, .1), transparent 28rem), #f8f3e9;
}

.experiments-hero aside {
  background: linear-gradient(145deg, #423778, #1f7180);
}

.experiment-filters {
  border-color: rgba(62, 54, 105, .14);
  background: rgba(255, 253, 248, .9);
}

.experiment-filters button {
  min-height: 58px;
}

.experiment-filters button>span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #4f4678;
  background: #f0edf8;
  font-size: 1.2rem;
}

.experiment-filters button strong {
  font-size: .82rem;
}

.experiment-filters button:hover,
.experiment-filters button.active {
  color: #2e3150;
  background: #f4efff;
  box-shadow: inset 3px 0 0 #7458c9
}

.experiment-filters button:hover>span,
.experiment-filters button.active>span {
  color: white;
  background: #7458c9
}

.experiment-card {
  position: relative;
  min-height: 330px;
  padding: 30px;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--lab) 23%, transparent);
  border-radius: 25px;
  background: linear-gradient(145deg, #fff, var(--lab-soft));
  box-shadow: 0 18px 42px rgba(50, 43, 88, .08);
}

.experiment-card.expanded {
  min-height: auto;
  border-color: var(--lab);
}

.experiment-symbol {
  width: 72px;
  height: 72px;
  margin-bottom: 25px;
  display: grid;
  place-items: center;
  border-radius: 22px 50% 45% 50%;
  color: white;
  background: var(--lab);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--lab) 25%, transparent);
  font: 760 1.55rem "Space Grotesk";
}

.experiment-card-top span {
  color: var(--lab);
  font-size: .72rem;
}

.experiment-card h3 {
  margin-top: 23px;
  color: #2b2f4e;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.95rem;
  font-weight: 650;
  letter-spacing: -.04em;
}

.experiment-card>button {
  color: var(--lab);
}

/* Cont centrat */
.account-hero {
  min-height: auto;
  padding-top: 88px;
  grid-template-columns: minmax(0, 660px);
  justify-content: center;
  justify-items: stretch;
  gap: 38px;
  background: radial-gradient(circle at 16% 12%, rgba(255, 118, 95, .2), transparent 27rem), radial-gradient(circle at 85% 18%, rgba(92, 103, 226, .26), transparent 29rem), linear-gradient(135deg, #182544, #173b4b);
}

.account-intro {
  text-align: center;
}

.account-intro .subject-breadcrumb {
  margin-bottom: 22px;
}

.account-intro h1 {
  max-width: 760px;
  color: #f5eedc;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 610;
  line-height: .98;
}

#account-card-root {
  width: min(100%, 620px);
  margin-inline: auto;
}

.account-card {
  border-color: rgba(255, 255, 255, .32);
  background: #fffaf1;
}

.account-card>h2 {
  color: #2d3152;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 620;
}

.account-card-label {
  color: #6b52bb;
}

@media(max-width:1180px) {
  .chapter-selector-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .experiment-category-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media(max-width:900px) {
  .map-page-hero {
    grid-template-columns: 1fr;
  }

  .map-page-progress {
    max-width: 430px;
  }

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

  .experiment-card.expanded {
    grid-column: auto;
  }
}

@media(max-width:700px) {
  .chapter-selector-list {
    grid-template-columns: 1fr;
  }

  .chapter-library-card {
    min-height: 215px;
    grid-template-columns: 42px 1fr;
  }

  .chapter-library-action {
    grid-column: 2;
  }

  .chapter-library-meta {
    grid-column: 1 / -1;
  }

  .map-page-hero {
    width: min(100% - 20px, 1460px);
    margin-top: 10px;
    padding: 86px 24px 38px;
    border-radius: 18px;
  }

  .map-page-back {
    left: 24px;
    top: 24px;
  }

  .map-page-copy h1 {
    font-size: clamp(3.1rem, 15vw, 5.2rem);
  }

  .map-page-facts {
    gap: 6px;
  }

  .map-chapter-switcher {
    width: min(100% - 24px, 1320px);
  }

  .thematic-map-section {
    padding-inline: 14px;
  }

  .thematic-chapter-trail {
    margin-inline: 8px;
  }

  .thematic-chapter-trail::before {
    border-left-color: var(--map-accent);
  }

  .physics-trail-object {
    left: auto !important;
    right: 2px;
    transform: translateY(-50%);
  }

  .physics-trail-object b {
    width: 42px;
    height: 42px;
    border-width: 1px;
    border-radius: 13px;
    font-size: .67rem;
  }

  .physics-trail-object small {
    display: none;
  }

  .experiment-category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .experiment-category-card {
    min-height: 205px;
  }

  .account-hero {
    padding: 68px 18px;
  }

  .account-intro h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }
}

@media(max-width:440px) {
  .experiment-category-strip {
    grid-template-columns: 1fr;
  }

  .chapter-library-symbol {
    width: 52px;
    height: 52px;
  }

  .map-page-copy h1 {
    overflow-wrap: anywhere;
  }
}

@media(prefers-reduced-motion:reduce) {

  .spacecraft,
  .star-field,
  .super-ring i,
  .flux-core i,
  .physics-trail-object b {
    animation: none !important;
  }
}

/* ========================================================================== */
/* PHYASTRO — integrarea animației în hero și lizibilitate editorială         */
/* ========================================================================== */

/* Etichete normale, mai mari și mai ușor de citit pe toate paginile */
.section-code,
.kicker,
.kicker-dark,
.map-page-code,
.subject-order {
  font-family: var(--sans);
  font-size: clamp(.76rem, 1vw, .9rem);
  font-weight: 720;
  line-height: 1.4;
  letter-spacing: .015em;
  text-transform: none;
}

.section-code {
  color: #6754a6;
}

.domain-panel>span {
  font-family: var(--sans);
  font-size: .73rem;
  letter-spacing: .02em;
  text-transform: none;
}

.content-placeholder span {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .02em;
  text-transform: none;
}

/* Niciun text închis pe fundalul mov */
.button-primary,
.button-primary:visited,
.button-primary:hover,
.button-primary:focus-visible {
  color: #fffdf8 !important;
}

.button-primary span {
  color: inherit;
}

.grade-nav a:hover,
.grade-nav a:focus-visible {
  color: white;
  border-color: #6553b3;
  background: linear-gradient(135deg, #493b88, #735bd0);
}

.grade-nav a:hover span,
.grade-nav a:hover small,
.grade-nav a:focus-visible span,
.grade-nav a:focus-visible small {
  color: white !important;
}

/* Hero fără ramă de dispozitiv: cosmosul și levitația sunt fundalul */
.home-hero.phyastro-hero {
  --mag-x: 0px;
  --mag-y: 0px;
  --mag-tilt: 0deg;
  --jitter-a: 0px;
  --jitter-b: 0px;
  min-height: 720px;
  display: block;
  isolation: isolate;
  cursor: default;
  background:
    radial-gradient(circle at 78% 42%, rgba(87, 77, 199, .34), transparent 31%),
    radial-gradient(circle at 30% 90%, rgba(255, 108, 85, .15), transparent 32%),
    linear-gradient(135deg, #09142f 0%, #102c43 60%, #153b43 100%);
}

.home-hero.phyastro-hero::after {
  display: none;
}

.home-hero.phyastro-hero .hero-copy {
  position: relative;
  z-index: 4;
  width: min(800px, 68%);
  min-height: 720px;
  padding: clamp(58px, 7vw, 102px);
  isolation: isolate;
}

.home-hero.phyastro-hero .hero-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -45px -150px -45px -55px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 13, 34, .98) 0%, rgba(7, 18, 41, .91) 55%, rgba(8, 22, 45, .57) 77%, transparent 100%);
  filter: blur(12px);
}

.home-hero.phyastro-hero .hero-copy>* {
  position: relative;
  z-index: 1;
}

.home-hero.phyastro-hero h1 {
  text-shadow: 0 4px 25px rgba(0, 0, 0, .32);
}

.home-hero.phyastro-hero .hero-lede {
  color: rgba(255, 255, 255, .76);
}

.hero-cosmos {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
}

.hero-cosmos::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 13, 34, .62) 0%, rgba(5, 13, 34, .22) 51%, transparent 72%);
  pointer-events: none;
}

.hero-cosmos .star-field {
  inset: -12%;
}

.hero-cosmos .space-fleet {
  z-index: -1;
}

.hero-cosmos .spacecraft {
  opacity: .45;
}

.hero-cosmos .craft-a {
  top: 13%;
  animation-duration: 20s;
}

.hero-cosmos .craft-b {
  top: 76%;
  animation-duration: 26s;
}

.hero-cosmos .craft-c {
  top: 34%;
  animation-duration: 33s;
}

.hero-cosmos .craft-d {
  top: 89%;
  animation-duration: 23s;
}

.hero-cosmos .craft-e {
  top: 53%;
  transform: scale(.55);
  opacity: .27;
  animation-delay: -13s;
  animation-duration: 29s;
}

.hero-cosmos .field-line {
  left: 69%;
  top: 47%;
  border-color: rgba(102, 236, 225, .25);
}

.hero-cosmos .field-line-a {
  width: 60%;
  height: 72%;
}

.hero-cosmos .field-line-b {
  width: 48%;
  height: 54%;
}

.hero-cosmos .field-line-c {
  width: 35%;
  height: 39%;
}

.hero-cosmos .magnet-base {
  bottom: 58px;
}

.hero-cosmos .magnet-n {
  left: calc(69% - 111px);
}

.hero-cosmos .magnet-s {
  right: calc(31% - 111px);
}

.hero-cosmos .super-ring {
  left: 69%;
}

.hero-cosmos .super-ring-a {
  top: 24%;
  width: 370px;
  height: 118px;
}

.hero-cosmos .super-ring-b {
  top: 40%;
  width: 300px;
  height: 96px;
}

.hero-cosmos .super-ring-c {
  top: 57%;
  width: 232px;
  height: 76px;
}

.hero-cosmos .super-ring-d {
  left: 46%;
  top: 49%;
  width: 150px;
  height: 52px;
  opacity: .68;
}

.hero-cosmos .flux-core {
  left: 69%;
  top: 46%;
  width: 82px;
  height: 82px;
}

.home-hero.is-reacting .super-ring {
  transition-duration: 65ms;
}

.cosmos-formula {
  position: absolute;
  z-index: 3;
  color: rgba(199, 245, 242, .5);
  font: 650 .62rem "Space Grotesk", sans-serif;
  letter-spacing: .045em;
}

.formula-flux {
  right: 5%;
  top: 16%;
}

.formula-meissner {
  right: 7%;
  bottom: 18%;
  color: rgba(255, 211, 132, .55);
}

.hero-interaction-note {
  position: absolute;
  z-index: 5;
  right: 26px;
  bottom: 18px;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  color: rgba(255, 255, 255, .64);
  background: rgba(8, 16, 39, .42);
  backdrop-filter: blur(10px);
  font-size: .58rem;
}

.hero-interaction-note span {
  margin-right: 5px;
  color: #7ce8df;
}

/* Detaliile BAC și Admitere apar numai la hover/focus */
.exam-orb small {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(7px);
  transition: max-height 180ms ease, opacity 180ms ease, transform 180ms ease, margin 180ms ease;
}

.exam-orb:hover small,
.exam-orb:focus-visible small {
  max-height: 48px;
  margin-top: 4px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.exam-orb strong {
  transition: transform 180ms ease;
}

.exam-orb:hover strong,
.exam-orb:focus-visible strong {
  transform: translateY(-2px);
}

/* Citat distinct pentru fiecare hartă */
.chapter-quote {
  max-width: 880px;
  margin: 17px 0 0;
  padding: 0;
  border: 0;
}

.chapter-quote p {
  margin: 0;
  color: #292f52;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 3.7vw, 4.35rem);
  font-weight: 570;
  line-height: 1.03;
  letter-spacing: -.052em;
}

.chapter-quote footer {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
}

.chapter-quote strong {
  color: var(--map-accent);
  font-size: .8rem;
}

.chapter-quote span {
  color: #777989;
  font-size: .64rem;
}

/* Date educaționale în profil */
.school-profile-fields {
  margin: 24px 0 8px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 19px;
  color: white;
  background: linear-gradient(145deg, #43377c, #6550b5 58%, #347d91);
  box-shadow: 0 15px 32px rgba(62, 48, 115, .18);
}

.school-profile-fields[hidden],
.school-profile-grid[hidden] {
  display: none;
}

.school-profile-heading {
  margin-bottom: 15px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.school-profile-heading>span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 12px;
  color: #ffe191;
  background: rgba(255, 255, 255, .1);
}

.school-profile-heading h3 {
  margin: 0;
  color: white;
  font-size: 1.15rem;
}

.school-profile-heading p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, .7);
  font-size: .62rem;
  line-height: 1.45;
}

.local-account-form .school-profile-fields label {
  color: white;
}

.school-profile-fields select,
.school-profile-fields input {
  color: #252944;
  border-color: rgba(255, 255, 255, .55);
  background: #fffdf8;
}

.school-profile-grid {
  margin-top: 7px;
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 11px;
}

.profile-education-card {
  margin-top: 12px;
  padding: 17px;
  display: flex;
  gap: 13px;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, #44377e, #6550b5);
}

.profile-education-card>span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: #fff0a8;
  background: rgba(255, 255, 255, .13);
}

.profile-education-card div {
  display: grid;
  gap: 3px;
}

.profile-education-card small {
  color: rgba(255, 255, 255, .68);
}

.profile-education-card strong {
  color: white;
  line-height: 1.35;
}

.profile-education-card p {
  margin: 1px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: .65rem;
}

@media (hover:none) {
  .exam-orb small {
    max-height: 48px;
    margin-top: 4px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

@media(max-width:900px) {
  .home-hero.phyastro-hero .hero-copy {
    width: min(850px, 82%);
  }

  .hero-cosmos .super-ring-a {
    width: 315px;
  }

  .hero-cosmos .super-ring-b {
    width: 260px;
  }
}

@media(max-width:680px) {
  .home-hero.phyastro-hero {
    min-height: 690px;
  }

  .home-hero.phyastro-hero .hero-copy {
    width: 100%;
    min-height: 690px;
  }

  .home-hero.phyastro-hero .hero-copy::before {
    inset: -30px -70px;
    background: rgba(5, 13, 34, .78);
  }

  .hero-cosmos {
    opacity: .58;
  }

  .hero-cosmos .field-line,
  .hero-cosmos .super-ring,
  .hero-cosmos .flux-core {
    left: 72%;
  }

  .hero-cosmos .magnet-n {
    left: calc(72% - 96px);
  }

  .hero-cosmos .magnet-s {
    right: calc(28% - 96px);
  }

  .hero-interaction-note {
    display: none;
  }

  .school-profile-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width:420px) {
  .hero-cosmos .super-ring-a {
    width: 250px;
  }

  .hero-cosmos .super-ring-b {
    width: 205px;
  }

  .hero-cosmos .super-ring-c {
    width: 170px;
  }

  .formula-flux,
  .formula-meissner {
    display: none;
  }
}

/* Pagini statice pentru secțiunile lecțiilor — conținut editabil separat în fiecare fișier HTML. */
.editable-lesson-content {
  max-width: 820px
}

.editable-lesson-content>p {
  color: #52665d;
  line-height: 1.8
}

.editable-lesson-content h3 {
  margin: 12px 0;
  color: var(--phy-night);
  font-size: 1.45rem;
  line-height: 1.25
}

.content-placeholder-editable {
  margin-top: 28px
}

.content-placeholder-editable p {
  margin: 12px 0 0;
  color: #52665d;
  line-height: 1.75
}

.content-placeholder-editable .editor-note {
  padding-top: 14px;
  border-top: 1px solid rgba(141, 107, 33, .25);
  font-size: .82rem
}

.lesson-image {
  margin: 24px 0 32px;
}

.lesson-image img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border-radius: 14px;
}

.lesson-image figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.75;
}

@media (max-width: 700px) {
  .lesson-image img {
    max-height: 280px;
  }
}




.beautiful-lesson {
  line-height: 1.6;
  font-size: 1.1rem;
  color: #1a1a1a;
}

.lesson-header {
  margin: 30px 0 20px;
  text-align: center;
}

.lesson-tag {
  font-size: 0.9rem;
  color: #4a6f6b;
  letter-spacing: 1px;
}

.lesson-title {
  font-size: 2rem;
  margin-top: 10px;
  color: #0f3b39;
}

.lesson-section {
  margin: 40px 0;
}

.sub-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #0f3b39;
}

.image-box {
  text-align: center;
  margin: 25px 0;
}

.image-box img {
  max-width: 280px;
  border-radius: 12px;
  box-shadow: 0 4px 12px #0003;
}

.img-caption {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #555;
}



.calc-box {
  max-width: 450px;
  margin: 40px auto;
  padding: 25px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 0 15px #0002;
}

.calc-box label {
  font-size: 1.1em;
  font-weight: bold;
}

.calc-box input {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1.1em;
}

.calc-box button {
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  background: #0077cc;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  cursor: pointer;
}

.calc-box button:hover {
  background: #005fa3;
}

.result-box {
  margin-top: 25px;
  padding: 15px;
  background: #f7f7f7;
  border-radius: 10px;
  box-shadow: inset 0 0 5px #0001;
}

.result-box p {
  font-size: 1.15em;
  margin: 10px 0;
}


.lesson-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px #0002;
}

.lesson-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  background: #ffffff;
  border: 2px solid #0f3b39;
  border-radius: 10px;
  overflow: hidden;
  font-size: 16px;
}

.lesson-table th {
  background: #0f3b39;
  color: #ffffff;
  padding: 14px;
  text-align: left;
  border-bottom: 2px solid #0d2e2c;
}

.lesson-table td {
  padding: 12px;
  border-bottom: 1px solid #cccccc;
}

.lesson-table tr:nth-child(even) {
  background: #f5f5f5;
}

.lesson-table tr:last-child td {
  border-bottom: none;
}



#ice-container {
  width: 200px;
  height: 200px;
  margin: 20px auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

#ice-cube {
  width: 150px;
  height: 150px;
  background: #aee6ff;
  border: 3px solid #7dc4dd;
  border-radius: 10px;
  transition: all 1s linear;
}

.temp-controls {
  text-align: center;
  margin-top: 20px;
}

.temp-controls input {
  width: 80px;
  padding: 5px;
  margin-right: 10px;
}

/* =========================================================
   PHYASTRO · CADRU EDITORIAL COMUN PENTRU TOATE LECȚIILE
   Stil clasic, lizibil și serios, inspirat de ultimele pagini
   de mecanică. Reclamele laterale rămân active acolo unde sunt
   deja inserate de pagina lecției.
   ========================================================= */

.lesson-section-page main {
  position: relative;
  background: #f3f1e9;
}

.lesson-section-page .lesson-section-hero {
  padding-right: max(40px, calc((100% - 1320px) / 2));
  padding-left: max(40px, calc((100% - 1320px) / 2));
  background: linear-gradient(135deg, #102c2a 0%, #17483f 68%, #1e5a4b 100%);
}

.lesson-section-page .lesson-section-hero h1 {
  max-width: 1050px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.85rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.lesson-section-page .section-step-nav {
  width: min(calc(100% - 64px), 1320px);
  margin-right: auto;
  margin-left: auto;
  border-bottom: 1px solid #d3cec0;
  background: #e9e5da;
}

.lesson-section-page .section-step-nav a {
  border-radius: 6px;
}

.lesson-section-page .lesson-section-body {
  width: min(calc(100% - 64px), 1320px) !important;
  grid-template-columns: minmax(0, 1fr) 238px !important;
  gap: 40px !important;
  align-items: start;
  margin-top: 54px;
}

.lesson-section-page .lesson-section-body > div {
  min-width: 0;
  padding: clamp(26px, 3.2vw, 46px);
  border: 1px solid #d8e2de;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(20, 55, 45, 0.055);
}

.lesson-section-page .lesson-section-body > div > p {
  max-width: 100%;
}

.lesson-section-page .lesson-section-body > div > h2 {
  margin-top: 10px;
  color: #173e37;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.lesson-section-page .editable-lesson-content {
  width: 100%;
  max-width: none !important;
  margin-right: auto;
  margin-left: auto;
  color: #183b36;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.025rem;
  line-height: 1.72;
}

.lesson-section-page .lesson-section-body .editable-lesson-content :is(h1, h2, h3, h4) {
  color: #153d37;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.015em;
}

.lesson-section-page .lesson-section-body aside {
  position: sticky;
  top: 105px;
  border-radius: 8px;
  background: #fbfaf5;
  box-shadow: 0 12px 28px rgba(16, 44, 42, 0.06);
}

/* Casetele „Modelul fizic folosit” fac parte din fluxul lecției și nu
   trebuie să urmărească derularea paginii. */
.lesson-section-page .lesson-section-body aside.model-box {
  position: static;
  top: auto;
}

.lesson-section-page .content-placeholder {
  border-radius: 8px;
  background: #ffffff;
}

.lesson-ad-rail {
  display: none;
}

@media (min-width: 1760px) {
  .lesson-ad-rail {
    position: fixed;
    top: 146px;
    z-index: 5;
    width: 160px;
    height: 600px;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 10px;
    padding: 10px;
    color: #77827c;
    border: 1px dashed rgba(16, 44, 42, 0.22);
    background: rgba(249, 247, 239, 0.72);
    font: 700 0.58rem/1.2 Arial, Helvetica, sans-serif;
    letter-spacing: 0.15em;
    text-align: center;
  }

  .lesson-ad-rail > div {
    min-height: 0;
  }

  .lesson-ad-rail-left {
    left: calc(50% - 850px);
  }

  .lesson-ad-rail-right {
    right: calc(50% - 850px);
  }
}

@media (max-width: 980px) {
  .lesson-section-page .lesson-section-body {
    width: min(calc(100% - 36px), 1320px) !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .lesson-section-page .lesson-section-body aside {
    position: static;
  }
}

@media (max-width: 620px) {
  .lesson-section-page .lesson-section-hero {
    padding-right: 20px;
    padding-left: 20px;
  }

  .lesson-section-page .section-step-nav,
  .lesson-section-page .lesson-section-body {
    width: min(calc(100% - 20px), 1320px) !important;
  }

  .lesson-section-page .lesson-section-body {
    margin-top: 34px;
  }

  .lesson-section-page .lesson-section-body > div {
    padding: 22px 18px;
    border-radius: 7px;
  }
}

/* =========================================================
   PROBLEME · LISTĂ ȘI PAGINĂ INDIVIDUALĂ
   ========================================================= */

.problem-card {
  color: inherit;
  text-decoration: none;
}

.problem-card:focus-visible {
  outline: 3px solid #b98932;
  outline-offset: 5px;
}

.problem-card-open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #17483f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.problem-card-open span {
  transition: transform 180ms ease;
}

.problem-card:hover .problem-card-open span {
  transform: translateX(4px);
}

.problem-detail-hero h1 {
  max-width: 1050px;
  font-size: clamp(3rem, 5.3vw, 5.5rem);
}

.problem-detail-nav {
  width: min(calc(100% - 64px), 1320px);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
}

.problem-detail-nav a {
  min-width: 0;
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #183b36;
  border: 1px solid rgba(18, 67, 58, 0.17);
  background: #ffffff;
  text-decoration: none;
}

.problem-detail-nav a:hover {
  border-color: #a27b2e;
}

.problem-detail-nav span {
  color: #6b7973;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.problem-detail-nav strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.problem-detail-nav .problem-library-link {
  min-width: 170px;
  text-align: center;
}

.problem-detail-nav .problem-nav-next {
  text-align: right;
}

.problem-detail-layout {
  width: min(calc(100% - 64px), 1320px);
  margin: 34px auto 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 40px;
  align-items: start;
}

.problem-detail-content {
  min-width: 0;
  padding: clamp(24px, 4vw, 50px);
  border: 1px solid rgba(18, 67, 58, 0.16);
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(16, 44, 42, 0.07);
}

.problem-detail-meta {
  margin-bottom: 34px;
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid rgba(18, 67, 58, 0.15);
}

.problem-detail-meta span {
  padding: 7px 10px;
  color: #315d54;
  border: 1px solid #c9d8d2;
  background: #f2f7f4;
  font-size: 0.72rem;
  font-weight: 800;
}

.problem-detail-content h2 {
  margin: 8px 0 18px;
  color: #153d37;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 500;
}

.problem-statement-block,
.problem-relation-block,
.problem-detail-solution {
  margin: 0 0 24px;
  padding: 24px;
  border: 1px solid #c9d8d2;
  background: #fbfcfa;
}

.problem-statement-text,
.problem-detail-hint p {
  margin-bottom: 0;
  color: #314c46;
  font-size: 1.05rem;
  line-height: 1.75;
}

.problem-requirement-list {
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.problem-requirement-list > li {
  padding: 15px 17px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid #d5e0dc;
  background: #ffffff;
}

.problem-requirement-list > li > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: #285f54;
  font-size: 0.78rem;
  font-weight: 900;
}

.problem-requirement-list p {
  margin: 2px 0 0;
  color: #29473f;
  font-size: 1rem;
  line-height: 1.65;
}

.problem-requirement-list ul {
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
}

.problem-requirement-list ul li {
  padding: 8px 11px;
  color: #405b54;
  border-left: 3px solid #b8cfc6;
  background: #f5f8f6;
  font-size: 0.92rem;
}

.problem-source-notice {
  margin: 20px 0 0;
  padding: 15px 17px;
  color: #5c4b24;
  border: 1px solid #d7c58f;
  border-left: 4px solid #9d7a2b;
  border-radius: 5px;
  background: #fff9e8;
  font-size: 0.94rem;
  line-height: 1.62;
}

.problem-source-notice strong {
  color: #4f3e17;
}

.problem-visual {
  margin: 26px 0 0;
  padding: 20px;
  border: 1px solid #c8d4cf;
  background: #ffffff;
}

.problem-visual-heading {
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e0e7e3;
  padding-bottom: 12px;
}

.problem-visual-heading span {
  color: #71817b;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.problem-visual-heading strong {
  color: #24483f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 500;
  text-align: right;
}

.problem-visual svg {
  width: 100%;
  height: auto;
  max-height: 430px;
  display: block;
  border: 1px solid #edf1ef;
  background: #fdfefd;
}

.problem-visual-image img {
  width: 100%;
  max-height: 560px;
  display: block;
  object-fit: contain;
  border: 1px solid #edf1ef;
  background: #fff;
}

.problem-visual figcaption {
  margin-top: 13px;
  color: #667670;
  font-size: 0.86rem;
  line-height: 1.55;
}

.problem-visual .pv-axis,
.problem-visual .pv-edge,
.problem-visual .pv-dimension,
.problem-visual .pv-vector,
.problem-visual .pv-support,
.problem-visual .pv-well,
.problem-visual .pv-wall-line,
.problem-visual .pv-body-line {
  fill: none;
  stroke: #243d38;
  stroke-width: 2;
}

.problem-visual .pv-axis { stroke-width: 1.5; }
.problem-visual .pv-guide,
.problem-visual .pv-separator {
  fill: none;
  stroke: #9caea8;
  stroke-width: 1.2;
  stroke-dasharray: 5 5;
}

.problem-visual .pv-separator { stroke: #d7e0dc; stroke-dasharray: none; }
.problem-visual .pv-curve,
.problem-visual .pv-trajectory,
.problem-visual .pv-motion {
  fill: none;
  stroke: #2d776a;
  stroke-width: 3;
}

.problem-visual .pv-trajectory { stroke-dasharray: 7 5; }
.problem-visual .pv-motion { stroke-width: 2.3; }
.problem-visual .pv-ground,
.problem-visual .pv-road,
.problem-visual .pv-track,
.problem-visual .pv-table,
.problem-visual .pv-rod {
  fill: none;
  stroke: #344e47;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.problem-visual .pv-track { stroke-width: 5; }
.problem-visual .pv-table { stroke-width: 8; }
.problem-visual .pv-body,
.problem-visual .pv-center {
  fill: #2d776a;
  stroke: #173d35;
  stroke-width: 1.5;
}

.problem-visual .pv-center { fill: #243d38; }
.problem-visual .pv-object,
.problem-visual .pv-plane,
.problem-visual .pv-wall,
.problem-visual .pv-station {
  fill: #dcebe5;
  stroke: #385c53;
  stroke-width: 2;
}

.problem-visual .pv-wall { fill: #edf1ef; }
.problem-visual .pv-wheel { fill: #ffffff; stroke: #243d38; stroke-width: 3; }
.problem-visual .pv-surface,
.problem-visual .pv-disk,
.problem-visual .pv-grid,
.problem-visual .pv-pulley {
  fill: #eef5f2;
  stroke: #526e66;
  stroke-width: 2;
}

.problem-visual .pv-orbit,
.problem-visual .pv-angle {
  fill: none;
  stroke: #78928a;
  stroke-width: 2;
}

.problem-visual .pv-earth { fill: #dcebe5; stroke: #2d776a; stroke-width: 2.5; }
.problem-visual .pv-flow { fill: none; stroke: #2d776a; stroke-width: 2.5; }
.problem-visual .pv-pipe,
.problem-visual .pv-tube {
  fill: none;
  stroke: #526e66;
  stroke-width: 5;
  stroke-linejoin: round;
}

.problem-visual .pv-liquid { fill: none; stroke: #b27a32; stroke-width: 14; stroke-linejoin: round; }
.problem-visual .pv-belt { fill: none; stroke: #56645f; stroke-width: 4; }
.problem-visual .pv-chain { fill: none; stroke: #56645f; stroke-width: 6; stroke-dasharray: 3 4; }
.problem-visual .pv-head { fill: #dcebe5; stroke: #385c53; stroke-width: 2; }
.problem-visual .pv-label,
.problem-visual .pv-note {
  fill: #243d38;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}

.problem-visual .pv-note { fill: #64766f; font-size: 13px; }

@media (max-width: 620px) {
  .problem-visual {
    margin-top: 20px;
    padding: 12px;
  }

  .problem-visual-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .problem-visual-heading strong {
    text-align: left;
  }
}

.problem-relation-block {
  background: #eff7f2;
}

.problem-detail-formula {
  padding: 22px 18px;
  overflow-x: auto;
  color: #102c2a;
  border: 1px solid #9ebcaf;
  background: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  white-space: normal;
}

.problem-detail-formula mjx-container[jax="CHTML"][display="true"] {
  min-width: max-content;
  margin: 0 !important;
  padding: 4px 0;
}

.problem-statement-text mjx-container,
.problem-detail-solution mjx-container,
.problem-final-answer mjx-container {
  color: inherit;
}

.problem-detail-solution li mjx-container {
  font-size: 1.02em;
}

.problem-detail-hint {
  margin: 0 0 24px;
  padding: 0 20px;
  border: 1px solid #d8c796;
  background: #fff9e9;
}

.problem-detail-hint summary {
  padding: 18px 0;
  color: #6b501d;
  font-weight: 800;
  cursor: pointer;
}

.problem-detail-hint p {
  padding: 0 0 20px;
}

.problem-practice {
  margin: 0 0 26px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #9fbcb1;
  background: linear-gradient(145deg, #f7fbf8, #edf5f1);
}

.problem-practice-heading {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
  gap: 24px;
  align-items: end;
}

.problem-practice-heading h2 {
  margin-bottom: 0;
}

.problem-practice-heading > p {
  margin: 0;
  color: #587068;
  font-size: 0.87rem;
  line-height: 1.6;
}

.problem-practice-heading code {
  padding: 2px 5px;
  color: #244c43;
  border: 1px solid #bfd1ca;
  background: #ffffff;
  font: 800 0.82rem/1.2 "Courier New", monospace;
}

.problem-answer-chat {
  display: grid;
  gap: 12px;
}

.problem-answer-row {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(260px, 1.3fr);
  gap: 10px 16px;
  align-items: center;
  border: 1px solid #ccd9d4;
  background: #ffffff;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.problem-answer-label {
  color: #34564e;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.problem-answer-label b {
  margin-right: 4px;
  color: #806321;
}

.problem-answer-composer {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.problem-answer-composer input {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  color: #173b36;
  border: 1px solid #91aaa1;
  border-radius: 0;
  outline: none;
  background: #fbfdfc;
  font: 700 1rem/1.2 "Courier New", monospace;
}

.problem-answer-composer input:focus {
  border-color: #82631c;
  box-shadow: 0 0 0 3px rgba(160, 123, 41, 0.14);
}

.problem-answer-unit {
  min-width: 92px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #2e5249;
  border: 1px solid #c6d4cf;
  background: #f2f7f4;
  font-size: 0.84rem;
  font-style: normal;
  white-space: nowrap;
}

.problem-answer-unit b {
  color: #173f36;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.problem-answer-unit i {
  color: #8a9994;
  font-style: normal;
}

.problem-answer-row > small {
  min-height: 1em;
  grid-column: 2;
  color: #667a73;
  font-size: 0.74rem;
  font-weight: 800;
}

.problem-answer-row.is-correct {
  border-color: #4d9676;
  background: #f2fbf6;
  box-shadow: inset 4px 0 0 #3b8a68;
}

.problem-answer-row.is-correct > small {
  color: #24704f;
}

.problem-answer-row.is-wrong {
  border-color: #cb786d;
  background: #fff7f5;
  box-shadow: inset 4px 0 0 #ba5f54;
}

.problem-answer-row.is-wrong > small {
  color: #a7483d;
}

.problem-math-keyboard {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #cad7d2;
  background: rgba(255, 255, 255, 0.84);
}

.problem-keyboard-heading {
  margin-bottom: 11px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.problem-keyboard-heading strong {
  color: #294c44;
  font-size: 0.82rem;
}

.problem-keyboard-heading span {
  color: #70827b;
  font-size: 0.72rem;
}

.problem-keyboard-keys {
  display: grid;
  grid-template-columns: repeat(5, minmax(42px, 1fr));
  gap: 7px;
}

.problem-keyboard-keys button {
  min-height: 42px;
  padding: 7px;
  color: #24483f;
  border: 1px solid #b9cac4;
  background: #ffffff;
  font: 800 0.9rem/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.problem-keyboard-keys button:hover,
.problem-keyboard-keys button:focus-visible {
  color: #ffffff;
  border-color: #285f54;
  background: #285f54;
}

.problem-keyboard-keys .problem-key-wide {
  grid-column: span 2;
  background: #f5f1e5;
}

.problem-practice-submit {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.problem-practice-submit p {
  margin: 0;
  color: #5d716a;
  font-size: 0.82rem;
  line-height: 1.5;
}

.problem-feedback {
  margin-top: 20px;
  padding: 16px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid #bccbc6;
  background: #ffffff;
}

.problem-feedback[hidden] {
  display: none;
}

.problem-feedback img {
  width: 150px;
  height: 128px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(25, 61, 54, 0.14);
  background: #f1f4f2;
}

.problem-feedback img:not([src]) {
  display: none;
}

.problem-feedback img:not([src]) + div {
  grid-column: 1 / -1;
}

.problem-feedback strong {
  display: block;
  color: #21463e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.problem-feedback p {
  margin: 7px 0 0;
  color: #526a63;
  line-height: 1.55;
}

.problem-feedback.is-positive {
  border-color: #72a48c;
  background: #f0f9f4;
}

.problem-feedback.is-negative {
  border-color: #cf8176;
  background: #fff5f2;
}

.problem-feedback.is-incomplete {
  border-color: #c7a65e;
  background: #fff9e8;
}

.problem-reveal-solution {
  margin-bottom: 26px;
}

.problem-reveal-solution.is-locked,
.problem-reveal-solution:disabled {
  color: #53645f;
  border-color: #c5cfcb;
  background: #e7ece9;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.problem-detail-solution {
  scroll-margin-top: 110px;
  border-color: #94b6a8;
  background: #f3f8f5;
}

.problem-detail-solution ol {
  margin: 22px 0;
  padding-left: 28px;
}

.problem-detail-solution li {
  margin-bottom: 16px;
  padding-left: 6px;
  color: #2d4942;
  line-height: 1.7;
}

.problem-final-answer {
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #ffffff;
  background: #17483f;
}

.problem-final-answer span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.problem-final-answer strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.problem-detail-actions {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(18, 67, 58, 0.15);
}

.problem-mark-solved {
  padding: 12px 16px;
  color: #17483f;
  border: 1px solid #8eb0a3;
  background: #ffffff;
  font: 800 0.82rem Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.problem-mark-solved.is-active {
  border-color: #5c8d7d;
  background: #dfeee7;
}

.problem-detail-actions a,
.problem-detail-aside a {
  color: #245e52;
  font-weight: 700;
}

.problem-detail-aside {
  position: sticky;
  top: 105px;
  padding: 22px;
  border: 1px solid rgba(18, 67, 58, 0.16);
  background: #fbfaf5;
}

.problem-detail-aside > strong {
  display: block;
  color: #153d37;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.problem-detail-aside dl {
  margin: 18px 0;
}

.problem-detail-aside dl div {
  padding: 11px 0;
  border-bottom: 1px solid rgba(18, 67, 58, 0.12);
}

.problem-detail-aside dt {
  color: #77827c;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.problem-detail-aside dd {
  margin: 4px 0 0;
  color: #29473f;
}

.problem-detail-aside a {
  margin-top: 10px;
  display: block;
}

.problem-missing {
  width: min(calc(100% - 40px), 900px);
  margin: 80px auto;
  padding: clamp(30px, 6vw, 70px);
  border: 1px solid rgba(18, 67, 58, 0.16);
  background: #ffffff;
  text-align: center;
}

.problem-missing h1 {
  color: #153d37;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
}

@media (max-width: 980px) {
  .problem-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .problem-detail-aside {
    position: static;
  }
}

@media (max-width: 720px) {
  .problem-detail-nav {
    width: min(calc(100% - 24px), 1320px);
    grid-template-columns: 1fr 1fr;
  }

  .problem-detail-nav .problem-library-link {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .problem-detail-nav .problem-nav-empty {
    display: none;
  }

  .problem-detail-layout {
    width: min(calc(100% - 24px), 1320px);
  }

  .problem-detail-content {
    padding: 20px;
  }

  .problem-statement-block,
  .problem-relation-block,
  .problem-detail-solution,
  .problem-practice {
    padding: 18px;
  }

  .problem-detail-formula {
    text-align: left;
  }

  .problem-practice-heading,
  .problem-answer-row {
    grid-template-columns: 1fr;
  }

  .problem-answer-row > small {
    grid-column: 1;
  }

  .problem-practice-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .problem-feedback {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .problem-feedback img {
    width: 104px;
    height: 100px;
  }
}

.map-leaderboard-page .leaderboard-hero {
  grid-template-columns: minmax(0, 980px);
}

.leaderboard-scope-control {
  display: grid;
  gap: 9px;
}

.leaderboard-scope-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.leaderboard-scope-tabs button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #c8d3ce;
  border-radius: 9px;
  color: #52665f;
  background: #fbfcf8;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
}

.leaderboard-scope-tabs button.active {
  color: #fff;
  border-color: #176d59;
  background: #176d59;
}

.leaderboard-scope-control > strong {
  color: #52665f;
  font-size: .67rem;
  font-weight: 700;
}

.world-ranking-section .romania-map-stage {
  background:
    radial-gradient(circle at 24% 32%, rgba(79, 151, 130, .16), transparent 24%),
    radial-gradient(circle at 72% 52%, rgba(185, 148, 60, .12), transparent 27%),
    #eaf1ed;
}

.world-ranking-section .leaflet-container {
  min-height: 590px;
}

@media (max-width: 720px) {
  .leaderboard-scope-tabs { flex-direction: column; }
  .leaderboard-scope-tabs button { width: 100%; }
}

/* =========================================================
   XP, borne de progres și claritate vizuală — 13.08
   ========================================================= */

@media (min-width: 1181px) {
  .home-page .primary-navigation {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  .home-page .global-site-search,
  .home-page .username-search {
    width: clamp(150px, 15vw, 220px) !important;
    max-width: 220px !important;
    flex-basis: 190px !important;
  }
}

@media (min-width: 1181px) and (max-width: 1350px) {
  .home-page .brand-word { display: none !important; }
  .home-page .global-site-search,
  .home-page .username-search { width: 150px !important; }
}

.problem-xp-reward {
  color: #174d42 !important;
  border-color: rgba(35, 119, 93, .24) !important;
  background: #e6f4e9 !important;
  font-weight: 850 !important;
}

.problem-card-footer > span b {
  color: #1c6c58;
  font-weight: 850;
}

.problem-no-worked-solution {
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid rgba(33, 99, 78, .18);
  border-radius: 18px;
  background: #eff6ef;
}

.problem-no-worked-solution strong {
  color: #174b40;
  font-size: .82rem;
}

.problem-no-worked-solution p {
  margin: 7px 0 0;
  color: #587069;
  line-height: 1.65;
}

.lesson-xp-status {
  grid-column: 1 / -1;
  margin: 0;
  color: #4e6b62;
  font-size: .68rem;
}

/* Numărul lecției rămâne lizibil; starea este un ecuson separat. */
.lesson-bubble b {
  margin: 0 !important;
  font-size: 1.08rem !important;
}

.lesson-bubble i {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 27px;
  height: 27px;
  margin: 0 !important;
  display: grid;
  place-items: center;
  border: 3px solid #fffaf0;
  border-radius: 50%;
  color: white;
  background: #226e59;
  font-size: .64rem !important;
  font-weight: 900;
}

.chapter-lesson-node.current .lesson-bubble i { background: #b05a29; }
.chapter-lesson-node.locked .lesson-bubble i { background: #7e8985; }

.mini-lesson-trail a {
  position: relative;
}

.mini-lesson-trail a b {
  font: 850 .72rem var(--font-geist-mono), monospace;
}

.mini-lesson-trail a.done i {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 2px solid #fffdf5;
  border-radius: 50%;
  color: white;
  background: #216c57;
  font-size: .53rem;
  font-style: normal;
  font-weight: 900;
}

/* Întrebările comunității revin la verdele Phyastro. */
.discussion-thread-card,
.thread-detail-question {
  border-color: rgba(32, 105, 82, .23) !important;
  background: linear-gradient(145deg, #f2f8f1, #e6f2e9) !important;
  box-shadow: 0 12px 28px rgba(28, 91, 71, .08) !important;
}

.discussion-thread-card h3,
.thread-detail-question h2 {
  color: #145344 !important;
}

.discussion-thread-card:hover {
  border-color: rgba(32, 105, 82, .42) !important;
  box-shadow: 0 16px 34px rgba(28, 91, 71, .13) !important;
}

.romania-map-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: stretch;
}

.xp-achievement-trail {
  min-height: 650px;
  padding: 22px 18px 14px;
  overflow: hidden;
  border: 1px solid rgba(29, 88, 69, .19);
  border-radius: 25px;
  color: #173f37;
  background:
    linear-gradient(rgba(47, 105, 86, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 105, 86, .045) 1px, transparent 1px),
    linear-gradient(155deg, #fbfcf5, #edf5e8);
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: 0 18px 45px rgba(24, 77, 60, .13);
}

.xp-achievement-trail > header {
  position: relative;
  z-index: 3;
  padding: 0 4px 14px;
  border-bottom: 1px solid rgba(31, 93, 74, .13);
}

.xp-achievement-trail > header > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.xp-achievement-trail h3 {
  margin: 0;
  color: #173f37;
  font-size: 1.25rem;
}

.xp-achievement-trail > header > strong {
  display: block;
  margin-top: 9px;
  color: #1e6c58;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
}

.xp-achievement-trail > header > p {
  min-height: 34px;
  margin: 4px 0 10px;
  color: #60766f;
  font-size: .63rem;
  line-height: 1.5;
}

.xp-segment-progress {
  height: 7px;
  overflow: hidden;
  display: block;
  border-radius: 99px;
  background: #d9e5d8;
}

.xp-segment-progress i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #2a8c70, #a8d965);
}

.xp-trail-path {
  position: relative;
  width: 100%;
  height: 570px;
  margin: 8px auto 0;
}

.xp-trail-path svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 570px;
  overflow: visible;
}

.xp-trail-path svg path {
  fill: none;
  stroke: #3f8b6e;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 7 11;
}

.xp-trail-path svg .xp-trail-shadow {
  stroke: rgba(134, 184, 119, .24);
  stroke-width: 18;
  stroke-dasharray: none;
}

.xp-trail-node {
  position: absolute;
  z-index: 2;
  left: var(--xp-node-x);
  top: var(--xp-node-y);
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transform: translateX(-50%);
}

.xp-node-bubble {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 5px solid #fffdf6;
  border-radius: 50%;
  color: #21493f;
  background: #d7ded4;
  box-shadow: 0 8px 18px rgba(28, 82, 65, .2);
}

.xp-trail-node.done .xp-node-bubble { background: #91d6af; }
.xp-trail-node.current .xp-node-bubble {
  color: #513d12;
  background: #f4cf63;
  animation: trail-pulse 1.9s ease-in-out infinite;
}
.xp-trail-node.locked { opacity: .63; }

.xp-node-card {
  position: absolute;
  top: 50%;
  width: 112px;
  padding: 8px 9px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(36, 100, 80, .16);
  border-radius: 12px;
  text-align: left;
  background: rgba(255, 254, 248, .94);
  box-shadow: 0 7px 16px rgba(30, 78, 63, .08);
  transform: translateY(-50%);
}

.xp-trail-node.card-right .xp-node-card { left: 62px; }
.xp-trail-node.card-left .xp-node-card { right: 62px; text-align: right; }
.xp-node-card small { color: #28765f; font-size: .52rem; font-weight: 850; }
.xp-node-card strong { color: #1d463c; font-size: .64rem; line-height: 1.2; }
.xp-node-card em { color: #71817c; font-size: .48rem; font-style: normal; }

.xp-trail-node:hover .xp-node-bubble,
.xp-trail-node:focus-visible .xp-node-bubble { transform: scale(1.07); }

.xp-trail-status {
  margin: -2px 2px 0;
  color: #587069;
  font-size: .58rem;
  line-height: 1.45;
}

@media (max-width: 1120px) {
  .romania-map-layout { grid-template-columns: 1fr; }
  .xp-achievement-trail { width: min(100%, 440px); margin-inline: auto; }
}

@media (max-width: 520px) {
  .xp-achievement-trail { padding-inline: 12px; }
  .xp-node-card { width: 105px; }
}

/* Personal Chat — mesagerie privată, simplă și ordonată */
.menu-utility-link strong {
  position: relative;
}

.personal-chat-menu-badge {
  min-width: 20px;
  height: 20px;
  margin-left: 7px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fffdf8;
  background: #a84f42;
  font: 800 .58rem "Space Grotesk", sans-serif;
  font-style: normal;
  vertical-align: middle;
}

.personal-chat-menu-badge[hidden] {
  display: none !important;
}

.menu-utility-link.has-unread {
  border-color: rgba(168, 79, 66, .28) !important;
}

.public-profile-actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.public-profile-actions .button {
  margin: 0;
}

.personal-chat-page main {
  min-height: calc(100vh - 84px);
  padding-bottom: 72px;
  background: #f5f1e8;
}

.personal-chat-hero {
  width: min(calc(100% - 48px), 1320px);
  margin: 0 auto;
  padding: 74px 0 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid rgba(23, 62, 56, .14);
}

.personal-chat-hero > div {
  max-width: 820px;
}

.personal-chat-hero .kicker {
  margin: 18px 0 5px;
  color: #8a682e;
}

.personal-chat-hero h1 {
  max-width: 780px;
  margin: 0;
  color: #143b35;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.9rem, 6.2vw, 6.2rem);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.065em;
}

.personal-chat-hero > div > p:last-child {
  max-width: 690px;
  margin: 24px 0 0;
  color: #596d68;
  font-size: .92rem;
  line-height: 1.75;
}

.personal-chat-new-button {
  min-width: 255px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  column-gap: 13px;
  align-items: center;
  border: 1px solid #173f38;
  border-radius: 16px;
  color: #fffdf8;
  background: #173f38;
  box-shadow: 0 14px 30px rgba(18, 57, 50, .14);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, background 160ms ease;
}

.personal-chat-new-button:hover {
  background: #205247;
  transform: translateY(-2px);
}

.personal-chat-new-button > span {
  width: 42px;
  height: 42px;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  font-size: 1.35rem;
  font-weight: 400;
}

.personal-chat-new-button strong {
  font: 750 .77rem "Space Grotesk", sans-serif;
}

.personal-chat-new-button small {
  margin-top: 3px;
  color: rgba(255, 253, 248, .67);
  font: 600 .58rem "Manrope", sans-serif;
}

.personal-chat-workspace {
  width: min(calc(100% - 48px), 1320px);
  height: min(720px, calc(100vh - 185px));
  min-height: 590px;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(23, 62, 56, .15);
  border-radius: 22px;
  background: #fffdf8;
  box-shadow: 0 24px 70px rgba(30, 54, 49, .10);
}

.personal-chat-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(23, 62, 56, .12);
  background: #f9f6ef;
}

.personal-chat-sidebar > header {
  padding: 24px 22px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.personal-chat-sidebar > header h2 {
  margin: 3px 0 0;
  color: #173f38;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: -.04em;
}

.personal-chat-sidebar > header button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 62, 56, .18);
  border-radius: 50%;
  color: #173f38;
  background: #fffdf8;
  cursor: pointer;
  font-size: 1.2rem;
  transition: color 150ms ease, background 150ms ease;
}

.personal-chat-sidebar > header button:hover {
  color: #fffdf8;
  background: #173f38;
}

.personal-chat-filter {
  height: 44px;
  margin: 0 18px 14px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(23, 62, 56, .13);
  border-radius: 12px;
  background: #fffdf8;
}

.personal-chat-filter:focus-within {
  border-color: rgba(23, 91, 78, .48);
  box-shadow: 0 0 0 3px rgba(34, 106, 91, .08);
}

.personal-chat-filter svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #667a74;
  stroke-width: 1.7;
}

.personal-chat-filter input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: #173f38;
  background: transparent;
  font: 600 .72rem "Manrope", sans-serif;
}

.personal-chat-filter input::placeholder {
  color: #8b9895;
}

.personal-chat-conversations {
  min-height: 0;
  flex: 1;
  padding: 0 10px 14px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 62, 56, .2) transparent;
}

.personal-chat-contact {
  width: 100%;
  min-height: 82px;
  padding: 12px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 14px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 150ms ease, border-color 150ms ease;
}

.personal-chat-contact + .personal-chat-contact {
  margin-top: 3px;
}

.personal-chat-contact:hover {
  background: rgba(231, 238, 232, .72);
}

.personal-chat-contact.is-active {
  border-color: rgba(24, 79, 68, .13);
  background: #e9f0eb;
}

.personal-chat-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 50%;
  color: #fffdf8;
  background: #285c51;
  box-shadow: 0 0 0 1px rgba(23, 62, 56, .12);
  font: 800 .68rem "Space Grotesk", sans-serif;
}

.personal-chat-avatar.is-small {
  width: 42px;
  height: 42px;
}

.personal-chat-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.personal-chat-contact-copy {
  min-width: 0;
  display: block;
}

.personal-chat-contact-copy strong,
.personal-chat-contact-copy small,
.personal-chat-contact-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.personal-chat-contact-copy strong {
  color: #183f38;
  font: 750 .74rem "Manrope", sans-serif;
}

.personal-chat-contact-copy small {
  margin-top: 1px;
  color: #7d8a87;
  font: 650 .56rem "Space Grotesk", sans-serif;
}

.personal-chat-contact-copy em {
  margin-top: 6px;
  color: #64736f;
  font: 500 .61rem "Manrope", sans-serif;
  font-style: normal;
}

.personal-chat-contact-meta {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 7px;
}

.personal-chat-contact-meta time {
  color: #88938f;
  font: 600 .53rem "Space Grotesk", sans-serif;
}

.personal-chat-contact-meta b {
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fffdf8;
  background: #a84f42;
  font: 800 .52rem "Space Grotesk", sans-serif;
}

.personal-chat-list-state {
  min-height: 250px;
  padding: 36px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #74817e;
  text-align: center;
}

.personal-chat-list-state strong {
  color: #244b44;
  font-size: .75rem;
}

.personal-chat-list-state p {
  max-width: 250px;
  margin: 8px 0 0;
  font-size: .63rem;
  line-height: 1.6;
}

.personal-chat-list-state button,
.personal-chat-thread-loading button {
  margin-top: 15px;
  padding: 8px 13px;
  border: 1px solid rgba(23, 62, 56, .18);
  border-radius: 999px;
  color: #214e45;
  background: #fffdf8;
  cursor: pointer;
  font: 750 .6rem "Manrope", sans-serif;
}

.personal-chat-list-state.is-error strong,
.personal-chat-thread-loading.is-error strong {
  color: #98483d;
}

.personal-chat-loader {
  width: 27px;
  height: 27px;
  margin-bottom: 13px;
  display: block;
  border: 2px solid rgba(23, 62, 56, .16);
  border-top-color: #285c51;
  border-radius: 50%;
  animation: personal-chat-spin .75s linear infinite;
}

@keyframes personal-chat-spin {
  to { transform: rotate(360deg); }
}

.personal-chat-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fffdf9;
}

.personal-chat-welcome {
  margin: auto;
  max-width: 440px;
  padding: 40px 28px;
  text-align: center;
}

.personal-chat-welcome-mark {
  width: 78px;
  height: 78px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(23, 62, 56, .16);
  border-radius: 50%;
  background: #f0f3ed;
}

.personal-chat-welcome-mark i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #285c51;
}

.personal-chat-welcome h2 {
  margin: 9px 0 0;
  color: #173f38;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: -.045em;
}

.personal-chat-welcome p:not(.section-code) {
  margin: 12px 0 24px;
  color: #687873;
  font-size: .72rem;
  line-height: 1.7;
}

.personal-chat-thread-header {
  min-height: 76px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(23, 62, 56, .11);
  background: rgba(255, 253, 249, .96);
}

.personal-chat-thread-person {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.personal-chat-thread-person > span:last-child {
  min-width: 0;
}

.personal-chat-thread-person strong,
.personal-chat-thread-person small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.personal-chat-thread-person strong {
  color: #173f38;
  font: 760 .78rem "Manrope", sans-serif;
}

.personal-chat-thread-person small {
  margin-top: 2px;
  color: #788682;
  font: 650 .57rem "Space Grotesk", sans-serif;
}

.personal-chat-private-note {
  margin-left: auto;
  padding: 6px 9px;
  border: 1px solid rgba(23, 62, 56, .13);
  border-radius: 999px;
  color: #58706a;
  background: #f3f5ef;
  font: 750 .53rem "Space Grotesk", sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.personal-chat-mobile-back {
  display: none;
  border: 0;
  color: #173f38;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
}

.personal-chat-messages {
  min-height: 0;
  flex: 1;
  padding: 24px clamp(20px, 4vw, 54px);
  overflow-y: auto;
  background-color: #fbfaf6;
  background-image: radial-gradient(circle at 1px 1px, rgba(31, 70, 63, .055) 1px, transparent 0);
  background-size: 24px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 62, 56, .2) transparent;
}

.personal-chat-date {
  margin: 8px 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.personal-chat-date span {
  padding: 6px 10px;
  border: 1px solid rgba(23, 62, 56, .10);
  border-radius: 999px;
  color: #7b8884;
  background: rgba(255, 253, 248, .88);
  font: 650 .53rem "Manrope", sans-serif;
}

.personal-chat-message {
  width: fit-content;
  max-width: min(74%, 620px);
  padding: 11px 14px 8px;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(26, 56, 50, .06);
}

.personal-chat-message + .personal-chat-message {
  margin-top: 7px;
}

.personal-chat-message.is-incoming {
  margin-right: auto;
  border: 1px solid rgba(23, 62, 56, .11);
  border-bottom-left-radius: 5px;
  color: #2c4d47;
  background: #fffdf8;
}

.personal-chat-message.is-own {
  margin-left: auto;
  border: 1px solid #1d5247;
  border-bottom-right-radius: 5px;
  color: #fffdf8;
  background: #205248;
}

.personal-chat-message p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 530 .75rem/1.56 "Manrope", sans-serif;
}

.personal-chat-message footer {
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: inherit;
  opacity: .64;
  font: 650 .49rem "Space Grotesk", sans-serif;
}

.personal-chat-delete,
.message-delete-button,
.discussion-delete-button {
  border: 1px solid rgba(151, 61, 51, .24);
  border-radius: 999px;
  color: #8e3d35;
  background: rgba(255, 246, 242, .78);
  cursor: pointer;
  font: 750 .55rem "Manrope", sans-serif;
  line-height: 1;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.personal-chat-delete {
  padding: 4px 7px;
  color: rgba(255, 253, 248, .86);
  border-color: rgba(255, 253, 248, .22);
  background: rgba(0, 0, 0, .12);
}

.personal-chat-delete:hover,
.message-delete-button:hover,
.discussion-delete-button:hover {
  border-color: rgba(151, 61, 51, .48);
  color: #7a2f28;
  background: #fff0ec;
}

.personal-chat-delete:hover {
  color: #fff;
  background: rgba(151, 61, 51, .45);
}

.personal-chat-empty-thread,
.personal-chat-thread-loading {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #7c8985;
  text-align: center;
}

.personal-chat-empty-thread > span {
  margin-bottom: 13px;
  color: #9d7b3a;
  font-size: 1.5rem;
}

.personal-chat-empty-thread strong,
.personal-chat-thread-loading strong {
  color: #244b44;
  font-size: .78rem;
}

.personal-chat-empty-thread p,
.personal-chat-thread-loading p {
  max-width: 360px;
  margin: 8px 0 0;
  font-size: .65rem;
  line-height: 1.65;
}

.personal-chat-composer {
  position: relative;
  padding: 14px 70px 13px 20px;
  border-top: 1px solid rgba(23, 62, 56, .11);
  background: #fffdf9;
}

.personal-chat-composer textarea {
  width: 100%;
  min-height: 46px;
  max-height: 132px;
  padding: 12px 14px;
  display: block;
  resize: none;
  border: 1px solid rgba(23, 62, 56, .16);
  border-radius: 13px;
  outline: 0;
  color: #173f38;
  background: #f8f7f1;
  font: 550 .74rem/1.5 "Manrope", sans-serif;
}

.personal-chat-composer textarea:focus {
  border-color: rgba(27, 91, 78, .5);
  box-shadow: 0 0 0 3px rgba(34, 106, 91, .08);
}

.personal-chat-composer > div {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #8a9693;
  font: 600 .49rem "Manrope", sans-serif;
}

.personal-chat-composer > button {
  position: absolute;
  right: 20px;
  top: 17px;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: #fffdf8;
  background: #1d5247;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}

.personal-chat-composer > button:hover:not(:disabled) {
  background: #28685a;
  transform: translateY(-1px);
}

.personal-chat-composer > button:disabled {
  opacity: .48;
  cursor: wait;
}

.personal-chat-composer > button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.personal-chat-action-status {
  min-height: 17px;
  margin: 0;
  padding: 0 20px 8px;
  color: #9b463b;
  background: #fffdf9;
  font: 650 .54rem "Manrope", sans-serif;
}

.personal-chat-action-status.is-success {
  color: #2c6a59;
}

.personal-chat-modal-root {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 22px;
}

.personal-chat-modal-root[hidden] {
  display: none !important;
}

.personal-chat-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 33, 30, .56);
  backdrop-filter: blur(5px);
}

.personal-chat-modal {
  position: relative;
  width: min(100%, 520px);
  max-height: min(720px, calc(100vh - 44px));
  padding: 25px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 20px;
  background: #fffdf8;
  box-shadow: 0 28px 80px rgba(9, 31, 27, .3);
  animation: personal-chat-modal-in 180ms ease-out;
}

@keyframes personal-chat-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
}

.personal-chat-modal > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.personal-chat-modal h2 {
  margin: 5px 0 0;
  color: #173f38;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  font-weight: 500;
  letter-spacing: -.045em;
}

.personal-chat-modal > header > button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 62, 56, .14);
  border-radius: 50%;
  color: #31554e;
  background: #f4f3ed;
  cursor: pointer;
  font-size: 1.15rem;
}

.personal-chat-modal > label {
  margin: 24px 0 8px;
  display: block;
  color: #365d55;
  font: 750 .59rem "Space Grotesk", sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.personal-chat-user-search {
  height: 50px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(23, 62, 56, .18);
  border-radius: 12px;
  background: #f8f7f1;
}

.personal-chat-user-search:focus-within {
  border-color: rgba(27, 91, 78, .5);
  box-shadow: 0 0 0 3px rgba(34, 106, 91, .08);
}

.personal-chat-user-search span {
  color: #7f8b87;
  font: 700 .8rem "Space Grotesk", sans-serif;
}

.personal-chat-user-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: #173f38;
  background: transparent;
  font: 650 .78rem "Manrope", sans-serif;
}

.personal-chat-search-hint {
  margin: 8px 0 18px;
  color: #81908c;
  font-size: .59rem;
}

.personal-chat-user-results {
  max-height: 330px;
  overflow-y: auto;
}

.personal-chat-user-result {
  width: 100%;
  padding: 11px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 13px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.personal-chat-user-result:hover {
  background: #edf2ec;
}

.personal-chat-user-result > span:nth-child(2) {
  min-width: 0;
}

.personal-chat-user-result strong,
.personal-chat-user-result small,
.personal-chat-user-result em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.personal-chat-user-result strong {
  color: #173f38;
  font: 750 .72rem "Manrope", sans-serif;
}

.personal-chat-user-result small {
  margin-top: 2px;
  color: #75837f;
  font: 650 .56rem "Space Grotesk", sans-serif;
}

.personal-chat-user-result em {
  margin-top: 4px;
  color: #8c9693;
  font: 550 .54rem "Manrope", sans-serif;
  font-style: normal;
}

.personal-chat-user-result > b {
  color: #24594e;
  font: 750 .58rem "Manrope", sans-serif;
}

.personal-chat-search-empty,
.personal-chat-search-loading {
  min-height: 165px;
  padding: 28px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #7e8b87;
  text-align: center;
}

.personal-chat-search-empty strong,
.personal-chat-search-loading strong {
  color: #2d514a;
  font-size: .7rem;
}

.personal-chat-search-empty p {
  max-width: 330px;
  margin: 7px 0 0;
  font-size: .6rem;
  line-height: 1.6;
}

.personal-chat-modal-status {
  min-height: 18px;
  margin: 12px 0 0;
  color: #9c493d;
  font: 650 .58rem "Manrope", sans-serif;
}

.personal-chat-modal-status.is-success {
  color: #2b6d5a;
}

.personal-chat-modal-open {
  overflow: hidden;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 980px) {
  .personal-chat-workspace {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .personal-chat-hero {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 820px) {
  .personal-chat-hero,
  .personal-chat-workspace {
    width: min(calc(100% - 24px), 1320px);
  }

  .personal-chat-hero {
    padding-top: 42px;
  }

  .personal-chat-new-button {
    width: 100%;
  }

  .personal-chat-workspace {
    height: min(720px, calc(100vh - 112px));
    min-height: 560px;
    grid-template-columns: 1fr;
  }

  .personal-chat-sidebar {
    border-right: 0;
  }

  .personal-chat-panel {
    display: none;
  }

  .personal-chat-workspace.is-chat-open .personal-chat-sidebar {
    display: none;
  }

  .personal-chat-workspace.is-chat-open .personal-chat-panel {
    display: flex;
  }

  .personal-chat-mobile-back {
    display: block;
  }
}

/* Revizia 22 august — elemente publice și lizibilitate */
.phyastro-home-classic .online-people-badge {
  position: absolute;
  top: 126px;
  right: clamp(42px, 8vw, 126px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(23, 59, 53, .2);
  border-radius: 999px;
  color: #173b35;
  background: rgba(249, 247, 240, .88);
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 7px 18px rgba(21, 48, 43, .08);
  backdrop-filter: blur(8px);
}

.online-people-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22a06b;
  box-shadow: 0 0 0 4px rgba(34, 160, 107, .12);
}

.online-people-badge strong {
  min-width: 1.2em;
  color: #0f6f54;
  font: 800 13px/1 var(--sans);
  text-align: center;
}

.online-people-badge span {
  font-weight: 700;
  white-space: nowrap;
}

.phyastro-home-classic .lesson-search {
  margin-left: 18px;
}

.phyastro-home-classic .lesson-search > label {
  font-size: calc(.63rem + 5px);
  line-height: 1.25;
}

.discussion-live-line {
  align-self: end;
  margin: 0;
  padding: 2px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 11px;
  color: #153d35;
}

.discussion-live-line > span {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: #2a9b70;
  box-shadow: 0 0 0 5px rgba(42, 155, 112, .11);
}

.discussion-live-line strong {
  font-size: .88rem;
  line-height: 1.45;
}

.discussion-live-line small {
  grid-column: 2;
  color: #66756f;
  font-size: .67rem;
}

@media (max-width: 820px) {
  .phyastro-home-classic .online-people-badge {
    top: 108px;
    right: 24px;
    font-size: 12px;
  }

  .phyastro-home-classic .lesson-search {
    margin-left: 0;
  }
}

.mission-system-note {
  width: min(100% - 80px, 1360px);
  margin: -30px auto 44px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 22px;
  align-items: center;
  border: 1px solid rgba(20, 102, 83, .2);
  border-radius: 14px;
  color: #173f35;
  background: #f0f7f2;
}

.mission-system-note strong { font-size: .82rem; }
.mission-system-note p { margin: 0; color: #5f716a; font-size: .72rem; line-height: 1.55; }

.mission-progress {
  margin: 18px 0 4px;
  display: grid;
  gap: 8px;
}

.mission-progress > span {
  color: #536760;
  font-size: .69rem;
  font-weight: 700;
}

.mission-progress > span b { color: #126954; }

.mission-progress > i {
  height: 7px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: #e1e8e3;
}

.mission-progress > i > i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #1b8068, #d2a73f);
}

.mission-auto-state {
  padding: 9px 11px;
  border: 1px solid #ccd9d3;
  border-radius: 9px;
  color: #63736d;
  font-size: .65rem;
  white-space: nowrap;
}

.mission-auto-state.is-done {
  color: #126449;
  border-color: #9bcbb8;
  background: #e9f6ee;
}

.account-security-panel {
  margin-top: 30px;
  padding-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid var(--j-line);
}

.account-security-heading { grid-column: 1 / -1; }
.account-security-heading p { margin: 0 0 7px; }
.account-security-heading h3 { margin: 0; color: #173f35; font-family: var(--serif); font-size: 1.65rem; font-weight: 500; }

.account-security-form,
.account-danger-zone {
  padding: 19px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border: 1px solid #d8e0dc;
  border-radius: 12px;
  background: #fbfcf9;
}

.account-security-form > strong,
.account-danger-zone > strong { color: #173f35; font-size: .81rem; }
.account-security-form label,
.account-danger-zone label { color: #566a63; font-size: .68rem; font-weight: 700; }
.account-security-form input,
.account-danger-zone input { min-height: 42px; padding: 0 11px; border: 1px solid #bdcbc5; border-radius: 8px; background: #fff; }
.account-security-form button,
.account-danger-zone button { min-height: 42px; margin-top: 5px; border: 0; border-radius: 8px; color: #fff; background: #176e5a; font-weight: 800; cursor: pointer; }
.account-security-form button:disabled,
.account-danger-zone button:disabled { cursor: wait; opacity: .65; }

.account-danger-zone { border-color: #dcbab2; background: #fff9f7; }
.account-danger-zone > strong { color: #8a3328; }
.account-danger-zone p { margin: 0 0 4px; color: #795951; font-size: .68rem; line-height: 1.55; }
.account-danger-zone button { background: #8b3b30; }

@media (max-width: 720px) {
  .mission-system-note,
  .account-security-panel { grid-template-columns: 1fr; }
  .mission-system-note { width: min(100% - 36px, 1360px); margin-top: -14px; }
  .account-security-heading { grid-column: 1; }
}

/* =========================================================
   ELECTROSTATICĂ — EDITARE, PROBLEME, VERIFICARE ȘI SURSE
   ========================================================= */

.lesson-editorial,
.electro-problem-set,
.electro-knowledge-check {
  color: #173831;
}

.lesson-editorial-lead {
  max-width: 72ch;
  margin: 0 0 1.8rem;
  padding: 1.15rem 1.25rem;
  border-left: 4px solid #c58a43;
  border-radius: 0 14px 14px 0;
  background: #fffaf0;
  color: #294b44;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.72;
}

.lesson-editorial > section {
  margin: 1.25rem 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(26, 77, 69, .13);
  border-radius: 16px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 13px 32px rgba(20, 58, 50, .055);
}

.lesson-editorial h3,
.electro-problem-card h3,
.source-chapter h2 {
  color: #153f37;
}

.lesson-editorial p,
.electro-problem-card p {
  line-height: 1.72;
}

.lesson-caution {
  margin: 1.35rem 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(166, 102, 45, .28);
  border-radius: 15px;
  background: #fff7e8;
}

.lesson-caution strong {
  color: #7c4623;
}

.formula-reasoning-grid,
.electro-problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.formula-reasoning-grid section,
.electro-problem-card {
  padding: 1.25rem;
  border: 1px solid rgba(24, 72, 63, .14);
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #f6fbf8);
  box-shadow: 0 14px 34px rgba(20, 58, 50, .06);
}

.electro-problem-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.problem-index,
.question-kind {
  color: #9a602f;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.electro-problem-card details,
.electro-knowledge-check details {
  margin-top: auto;
  padding-top: .8rem;
  border-top: 1px solid rgba(24, 72, 63, .12);
}

.electro-problem-card summary,
.electro-knowledge-check summary {
  color: #18584b;
  font-weight: 800;
  cursor: pointer;
}

.electro-knowledge-check .question-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: electro-question;
  padding: 0;
  list-style: none;
}

.electro-knowledge-check .question-item {
  counter-increment: electro-question;
  min-width: 0;
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(23, 74, 64, .14);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 56, 48, .055);
}

.electro-knowledge-check .question-item > p::before {
  content: counter(electro-question, decimal-leading-zero) " · ";
  color: #b17137;
  font-weight: 900;
}

.question-kind {
  display: block;
  margin-bottom: .5rem;
}

.lesson-linked-problems {
  margin-top: 1.4rem;
}

.lesson-source-panel {
  margin: 2rem 0 .25rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(21, 72, 62, .17);
  border-radius: 15px;
  background: linear-gradient(135deg, #f4faf6, #fffaf0);
  color: #31534c;
}

.lesson-source-panel strong {
  display: block;
  margin-bottom: .35rem;
  color: #153f37;
}

.lesson-source-panel p {
  margin: .3rem 0;
  line-height: 1.65;
}

.lesson-source-panel p a {
  display: inline-block;
  margin: .15rem .08rem;
  color: #8a5025;
  font-weight: 800;
  text-decoration: none;
}

.lesson-source-all {
  display: inline-block;
  margin-top: .4rem;
  color: #15564a;
  font-weight: 800;
}

.gauss-standalone-content .gauss-page {
  width: 100%;
  padding-top: 0;
}

.source-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) max(1.2rem, 4vw) 2.5rem;
}

.source-hero h1 {
  max-width: 13ch;
  margin: .4rem 0 1rem;
  color: #123d35;
  font-size: clamp(2.7rem, 7vw, 5.7rem);
  line-height: .96;
}

.source-hero > p:last-of-type {
  max-width: 76ch;
  color: #4a625d;
  font-size: 1.08rem;
  line-height: 1.75;
}

.source-method {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.4rem;
}

.source-method > * {
  padding: .55rem .8rem;
  border: 1px solid rgba(22, 72, 62, .16);
  border-radius: 999px;
  background: #fff;
  color: #315b52;
  font-size: .82rem;
}

.source-jump {
  position: sticky;
  top: 1rem;
  z-index: 8;
  display: flex;
  justify-content: center;
  gap: .45rem;
  width: fit-content;
  margin: 0 auto 2rem;
  padding: .55rem;
  border: 1px solid rgba(20, 67, 58, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 30px rgba(21, 59, 51, .1);
  backdrop-filter: blur(12px);
}

.source-jump a {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #184c41;
  text-decoration: none;
  font-weight: 850;
}

.source-jump a:hover,
.source-jump a:focus-visible {
  color: #fff;
  background: #184c41;
}

.source-library {
  display: grid;
  gap: 1.4rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 max(1.2rem, 4vw) 6rem;
}

.source-chapter {
  scroll-margin-top: 6rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(22, 71, 61, .14);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(20, 56, 49, .07);
}

.source-chapter > header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.source-chapter > header > span {
  width: 3.3rem;
  height: 3.3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #195348;
  font-weight: 900;
}

.source-chapter h2,
.source-chapter header p {
  margin: 0;
}

.source-chapter header p {
  margin-top: .25rem;
  color: #657973;
}

.source-chapter ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  padding: 0;
  list-style: none;
}

.source-chapter li {
  scroll-margin-top: 6rem;
}

.source-chapter li a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .15rem .65rem;
  height: 100%;
  padding: .85rem;
  border-radius: 12px;
  color: #204b43;
  background: #f6faf7;
  text-decoration: none;
}

.source-chapter li a:hover,
.source-chapter li a:focus-visible {
  outline: 2px solid #c78b46;
  background: #fffaf0;
}

.source-chapter li span {
  grid-row: 1 / span 2;
  color: #a3652e;
  font-weight: 850;
}

.source-chapter li small {
  color: #677b75;
}

@media (max-width: 760px) {
  .formula-reasoning-grid,
  .electro-problem-grid,
  .electro-knowledge-check .question-list,
  .source-chapter ol {
    grid-template-columns: 1fr;
  }

  .source-jump {
    max-width: calc(100% - 1rem);
    overflow-x: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .personal-chat-page main {
    padding-bottom: 30px;
  }

  .personal-chat-hero h1 {
    font-size: clamp(2.55rem, 14vw, 4.2rem);
  }

  .personal-chat-workspace {
    margin-top: 18px;
    border-radius: 17px;
  }

  .personal-chat-messages {
    padding: 20px 14px;
  }

  .personal-chat-message {
    max-width: 88%;
  }

  .personal-chat-composer {
    padding-left: 12px;
    padding-right: 64px;
  }

  .personal-chat-composer > button {
    right: 12px;
  }

  .personal-chat-composer > div > span {
    display: none;
  }

  .personal-chat-modal-root {
    padding: 10px;
  }

  .personal-chat-modal {
    padding: 20px 16px;
    border-radius: 17px;
  }

  .public-profile-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .problem-answer-composer {
    grid-template-columns: 1fr;
  }

  .problem-answer-unit {
    justify-content: flex-start;
  }

  .problem-keyboard-keys {
    grid-template-columns: repeat(5, minmax(35px, 1fr));
  }

  .problem-feedback {
    grid-template-columns: 1fr;
  }

  .problem-feedback img {
    width: 100%;
    height: auto;
    max-height: 260px;
  }
}

/* =========================================================
   PAGINA ECHIPA
   ========================================================= */

.team-page main {
  padding-bottom: 90px;
  background: #f3f1e9;
}

.team-hero {
  padding: 105px max(38px, calc((100% - 1240px) / 2));
  color: #ffffff;
  background: #102c2a;
}

.team-hero h1 {
  max-width: 900px;
  margin: 13px 0 18px;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 6vw, 6.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.team-hero > p:last-child {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  line-height: 1.72;
}

.team-introduction {
  width: min(calc(100% - 64px), 1240px);
  margin: 60px auto 30px;
  padding: 30px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  border-bottom: 1px solid rgba(18, 67, 58, 0.2);
}

.team-introduction-compact {
  grid-template-columns: minmax(0, 760px);
}

.team-introduction h2 {
  margin: 7px 0 0;
  color: #153d37;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  font-weight: 500;
}

.team-introduction > p {
  margin: 0;
  color: #536861;
  line-height: 1.72;
}

.team-grid {
  width: min(calc(100% - 64px), 1240px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.team-card {
  position: relative;
  min-width: 0;
  min-height: 520px;
  padding: 28px;
  border: 1px solid rgba(18, 67, 58, 0.18);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(16, 44, 42, 0.06);
}

.team-card-number {
  position: absolute;
  top: 22px;
  right: 24px;
  color: #9a7a38;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.team-avatar {
  width: 82px;
  height: 82px;
  margin-bottom: 28px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: #17483f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.15rem;
}

.team-role {
  margin: 0;
  color: #8b6c2b;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.team-card h2 {
  margin: 7px 0 14px;
  color: #153d37;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  font-weight: 500;
}

.team-card > p:not(.team-role) {
  min-height: 112px;
  color: #52665f;
  line-height: 1.68;
}

.team-role .creator-badge {
  margin-left: 10px;
}

.team-account {
  margin-top: 26px;
  display: grid;
  gap: 15px;
}

.team-account-link,
.team-account-placeholder {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(18, 67, 58, 0.16);
  color: #153d37;
  background: #f7f4e9;
  text-decoration: none;
}

.team-account-link strong {
  color: #153d37;
  font-size: .82rem;
}

.team-account-link span,
.team-account-placeholder span {
  color: #6b766e;
  font-size: .63rem;
  font-weight: 760;
}

.team-account-stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.team-card .team-account-stats {
  margin: 0;
  border-top: 0;
}

.team-card .team-account-stats div {
  padding: 12px;
  display: block;
  border: 1px solid rgba(18, 67, 58, 0.12);
  border-bottom: 1px solid rgba(18, 67, 58, 0.12);
  background: #fbfaf5;
}

.team-card .team-account-stats dt {
  color: #7a857d;
  font-size: .56rem;
  font-weight: 850;
  text-transform: uppercase;
}

.team-card .team-account-stats dd {
  margin: 5px 0 0;
  color: #153d37;
  font-size: .78rem;
  font-weight: 850;
}

.team-card dl {
  margin: 24px 0 0;
  border-top: 1px solid rgba(18, 67, 58, 0.14);
}

.team-card dl div {
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(18, 67, 58, 0.1);
}

.team-card dt {
  color: #6e7d77;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.team-card dd {
  margin: 0;
  color: #29473f;
  font-size: 0.82rem;
}

.team-note {
  width: min(calc(100% - 64px), 1240px);
  margin: 24px auto 0;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border: 1px solid #cfbf8d;
  background: #fff8e7;
}

.team-note p {
  margin: 0;
  color: #5a543d;
}

@media (max-width: 940px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    min-height: 0;
  }

  .team-card > p:not(.team-role) {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .team-hero {
    padding: 75px 22px;
  }

  .team-introduction,
  .team-grid,
  .team-note {
    width: min(calc(100% - 24px), 1240px);
  }

  .team-introduction {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .team-note {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =========================================================
   PAGINA PRINCIPALĂ · STIL CLASIC ȘI CUB 4D
   Aceste reguli sunt limitate strict la prima pagină.
   ========================================================= */

.phyastro-home-classic main {
  padding: 1px 0 85px;
  overflow: hidden;
  background: #f2efe6 !important;
}

.phyastro-home-classic .home-hero.phyastro-hero-classic {
  position: relative;
  isolation: isolate;
  width: min(calc(100% - 48px), 1380px) !important;
  min-height: 660px !important;
  margin: 32px auto 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden;
  color: #173b36;
  border: 1px solid rgba(18, 67, 58, 0.24);
  border-radius: 4px;
  background: #f9f7f0 !important;
  box-shadow: 0 22px 65px rgba(16, 44, 42, 0.1);
  clip-path: none !important;
}

.phyastro-home-classic .home-hero.phyastro-hero-classic::before,
.phyastro-home-classic .home-hero.phyastro-hero-classic::after {
  display: none !important;
}

.hero-tesseract {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.92;
  pointer-events: none;
}

.hero-compass {
  position: absolute;
  left: clamp(14px, 2vw, 30px);
  top: auto;
  bottom: clamp(34px, 6vh, 62px);
  z-index: 1;
  width: clamp(118px, 11vw, 168px);
  aspect-ratio: 190 / 150;
  opacity: .42;
  pointer-events: none;
  filter: grayscale(1) contrast(.96);
  mix-blend-mode: multiply;
}

.hero-compass svg { width: 100%; height: 100%; display: block; }

.classic-compass-svg {
  overflow: visible;
}

.classic-globe {
  opacity: .28;
}

.classic-globe circle,
.classic-globe ellipse,
.classic-globe > path:not(.classic-land) {
  fill: none;
  stroke: #2f3534;
  stroke-width: 1.2;
}

.classic-land {
  fill: #2f3534;
  opacity: .2;
}

.classic-rose {
  opacity: .86;
}

.classic-rose-main path {
  fill: rgba(255, 255, 255, .72);
  stroke: #222827;
  stroke-width: 1.05;
  stroke-linejoin: round;
}

.classic-rose-main path:nth-child(even) {
  fill: rgba(34, 40, 39, .16);
}

.classic-rose-secondary path {
  fill: rgba(34, 40, 39, .1);
  stroke: rgba(34, 40, 39, .72);
  stroke-width: .9;
  stroke-linejoin: round;
}

.classic-rose-fine path {
  fill: rgba(255, 255, 255, .55);
  stroke: rgba(34, 40, 39, .48);
  stroke-width: .7;
  stroke-linejoin: round;
}

.classic-rose-center {
  fill: rgba(240, 239, 234, .72);
  stroke: #252b2a;
  stroke-width: 1.2;
}

.classic-rose-center-lines {
  fill: none;
  stroke: rgba(37, 43, 42, .52);
  stroke-width: .8;
  stroke-linecap: round;
}

.classic-cardinal {
  fill: #242928;
  font: 700 24px Georgia, "Times New Roman", serif;
  text-anchor: middle;
  dominant-baseline: middle;
  letter-spacing: 0;
}

.alpha-minecraft-badge {
  position: absolute;
  top: 58px;
  right: clamp(42px, 8vw, 126px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: #ffe064;
  font-family: "Courier New", "Lucida Console", monospace;
  font-size: 4.1rem;
  font-weight: 900;
  line-height: .82;
  letter-spacing: .035em;
  text-transform: uppercase;
  transform: rotate(-13deg) skewX(-5deg);
  transform-origin: center;
  text-shadow:
    2px 2px 0 #2b2418,
    4px 4px 0 #2b2418,
    7px 7px 0 rgba(48, 40, 26, .72),
    0 0 18px rgba(255, 215, 91, .34);
  filter: drop-shadow(0 14px 14px rgba(26, 42, 37, .18));
  pointer-events: none;
  animation: alpha-badge-float 3.8s ease-in-out infinite;
}

.alpha-minecraft-badge span {
  display: inline-block;
  -webkit-text-stroke: 1px #261d12;
}

.alpha-minecraft-badge span:nth-child(1) { color: #55d76a; }
.alpha-minecraft-badge span:nth-child(2) { color: #ffdf55; }
.alpha-minecraft-badge span:nth-child(3) { color: #ff8654; }
.alpha-minecraft-badge span:nth-child(4) { color: #4fc2ff; }
.alpha-minecraft-badge span:nth-child(5) { color: #d66dff; }

.alpha-minecraft-badge::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 10px;
  bottom: -12px;
  height: 6px;
  background: repeating-linear-gradient(90deg, #2b2418 0 10px, transparent 10px 15px);
  opacity: .52;
}

@keyframes alpha-badge-float {
  0%, 100% { transform: rotate(-13deg) skewX(-5deg) translateY(0); }
  50% { transform: rotate(-13deg) skewX(-5deg) translateY(-5px); }
}

.hero-tesseract-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(249, 247, 240, 0.98) 0%, rgba(249, 247, 240, 0.9) 38%, rgba(249, 247, 240, 0.12) 72%, rgba(249, 247, 240, 0.28) 100%),
    linear-gradient(180deg, rgba(249, 247, 240, 0.28), rgba(249, 247, 240, 0.62));
  pointer-events: none;
}

.phyastro-home-classic .home-hero.phyastro-hero-classic .hero-copy {
  position: relative;
  z-index: 2;
  width: min(850px, calc(100% - 80px)) !important;
  max-width: 850px !important;
  margin: 0 0 0 clamp(38px, 7vw, 105px) !important;
  padding: 48px 0 !important;
  color: #173b36 !important;
  background: none !important;
  transform: none !important;
}

.phyastro-home-classic .home-hero .hero-copy::before {
  display: none !important;
}

.phyastro-home-classic .home-hero .hero-copy > * {
  position: relative;
  z-index: 1;
}

.phyastro-home-classic .hero-disciplines {
  color: #355b53 !important;
}

.phyastro-home-classic .hero-disciplines span {
  color: #355b53 !important;
}

.phyastro-home-classic .home-hero.phyastro-hero-classic h1 {
  max-width: 820px;
  margin: 25px 0 18px;
  color: #102c2a !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 6.2vw, 6.8rem) !important;
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 0.97 !important;
  text-shadow: none !important;
}

.phyastro-home-classic .home-hero.phyastro-hero-classic h1 em {
  color: #7e6228 !important;
  font-style: italic;
  text-shadow: none !important;
}

.phyastro-home-classic .home-hero.phyastro-hero-classic h1 em::after {
  display: none !important;
}

.phyastro-home-classic .home-hero .hero-manifesto {
  color: #8a6b2d !important;
  font-size: 0.78rem !important;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.phyastro-home-classic .home-hero .hero-lede {
  max-width: 680px !important;
  color: #405c55 !important;
  font-size: 1.05rem;
  line-height: 1.75;
  text-shadow: none !important;
}

.phyastro-home-classic .home-hero .hero-actions {
  margin-top: 30px;
}

.phyastro-home-classic .home-hero .button-primary {
  color: #ffffff;
  border-color: #17483f;
  background: #17483f;
}

.phyastro-home-classic .home-hero .button-outline-light {
  color: #17483f;
  border-color: #62837a;
  background: rgba(255, 255, 255, 0.65);
}

.phyastro-home-classic .hero-metrics {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(18, 67, 58, 0.2);
}

.phyastro-home-classic .hero-metrics span,
.phyastro-home-classic .hero-metrics b {
  color: #294b43 !important;
}

.phyastro-home-classic .hero-interaction-note {
  right: 28px !important;
  bottom: 23px !important;
  z-index: 2;
  color: #63756f !important;
  background: rgba(249, 247, 240, 0.82);
  text-shadow: none !important;
}

.phyastro-home-classic .home-discovery,
.phyastro-home-classic .community-dock,
.phyastro-home-classic .home-experiments,
.phyastro-home-classic .phyastro-domains {
  width: min(calc(100% - 48px), 1240px) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.phyastro-home-classic .home-discovery {
  margin-top: 30px !important;
  padding: 26px !important;
  gap: 20px;
  border: 1px solid rgba(18, 67, 58, 0.18);
  border-radius: 3px;
  background: #ffffff !important;
  box-shadow: none !important;
}

.phyastro-home-classic .exam-orb {
  width: auto !important;
  min-width: 190px;
  height: auto !important;
  min-height: 118px;
  padding: 22px !important;
  border: 1px solid rgba(18, 67, 58, 0.2) !important;
  border-radius: 2px !important;
  background: #f7f5ed !important;
  box-shadow: none !important;
  transform: none !important;
}

.phyastro-home-classic .exam-orb::before,
.phyastro-home-classic .exam-orb::after {
  display: none !important;
}

.phyastro-home-classic .exam-orb span,
.phyastro-home-classic .exam-orb strong,
.phyastro-home-classic .exam-orb small {
  color: #173b36 !important;
}

.phyastro-home-classic .lesson-search {
  max-width: 660px;
}

.phyastro-home-classic .community-dock {
  margin-top: 28px !important;
  padding: 36px !important;
  color: #173b36;
  border: 1px solid rgba(18, 67, 58, 0.18);
  border-radius: 3px;
  background: #ffffff !important;
  box-shadow: none !important;
}

.phyastro-home-classic .community-dock h2,
.phyastro-home-classic .community-dock > div > p:last-child {
  color: #173b36 !important;
}

.phyastro-home-classic .community-dock a {
  border: 1px solid rgba(18, 67, 58, 0.15) !important;
  border-radius: 2px !important;
  background: #f8f7f2 !important;
  box-shadow: none !important;
}

.phyastro-home-classic .community-dock a :is(b, small) {
  color: #294b43 !important;
}

.phyastro-home-classic .home-experiments,
.phyastro-home-classic .phyastro-domains {
  margin-top: 28px !important;
  padding: 65px 0 !important;
  background: transparent !important;
}

.phyastro-home-classic .section-heading h2,
.phyastro-home-classic .home-experiments .section-heading h2 {
  color: #153d37 !important;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.phyastro-home-classic .experiment-category-card {
  border: 1px solid rgba(18, 67, 58, 0.17) !important;
  border-radius: 2px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  transform: none !important;
}

.phyastro-home-classic .experiment-category-card :is(strong, em, span, small) {
  color: #294b43 !important;
}

.phyastro-home-classic .domain-panel {
  min-height: 430px;
  color: #173b36 !important;
  border: 1px solid rgba(18, 67, 58, 0.18) !important;
  border-radius: 2px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.phyastro-home-classic .domain-panel :is(span, h3, p, strong) {
  color: #173b36 !important;
  text-shadow: none !important;
}

.phyastro-home-classic .domain-panel::before,
.phyastro-home-classic .domain-panel::after {
  opacity: 0.06 !important;
}

@media (max-width: 900px) {
  .phyastro-home-classic .home-hero.phyastro-hero-classic {
    width: min(calc(100% - 24px), 1380px) !important;
    min-height: 730px !important;
  }

  .phyastro-home-classic .home-hero.phyastro-hero-classic .hero-copy {
    width: calc(100% - 44px) !important;
    margin: 0 22px !important;
    padding: 70px 0 90px !important;
  }

  .hero-tesseract {
    opacity: 0.56;
  }

  .hero-compass {
    left: 12px;
    top: 72px;
    width: 106px;
    opacity: .48;
  }

  .alpha-minecraft-badge {
    top: 34px;
    right: 24px;
    font-size: 2.7rem;
    opacity: .92;
  }

  .hero-tesseract-vignette {
    background: linear-gradient(180deg, rgba(249, 247, 240, 0.92), rgba(249, 247, 240, 0.55) 55%, rgba(249, 247, 240, 0.9));
  }

  .phyastro-home-classic .home-discovery,
  .phyastro-home-classic .community-dock,
  .phyastro-home-classic .home-experiments,
  .phyastro-home-classic .phyastro-domains {
    width: min(calc(100% - 24px), 1240px) !important;
  }
}

@media (max-width: 620px) {
  .phyastro-home-classic .home-hero.phyastro-hero-classic h1 {
    font-size: clamp(3rem, 15vw, 4.5rem) !important;
  }

  .phyastro-home-classic .hero-interaction-note {
    display: none !important;
  }

  .phyastro-home-classic .hero-metrics {
    align-items: flex-start;
    flex-direction: column;
  }

  .phyastro-home-classic .community-dock,
  .phyastro-home-classic .home-discovery {
    padding: 22px !important;
  }

  .chapter-pending-panel {
    width: min(100% - 24px, 1080px);
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-tesseract {
    opacity: 0.72;
  }

  .classic-compass {
    animation: none;
  }
}

/* Garanție de stratificare: vizualul rămâne în fundalul eroului, nu într-un card. */
.subject-page .subject-hero .subject-visual-pendulum,
.subject-page .subject-hero .subject-visual-solar {
  position: absolute !important;
  width: auto !important;
  height: auto !important;
  aspect-ratio: auto !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

/* Revizie atentă: antet pe un singur rând, pendul tehnic și stări de acces. */
.header-inner {
  min-height: 74px;
  grid-template-columns: minmax(230px, .85fr) auto minmax(430px, 1.2fr);
  gap: 18px;
}

.header-tools {
  min-width: 0;
  gap: 5px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.primary-navigation {
  align-items: center;
}

.primary-navigation a,
.menu-primary-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-lock,
.menu-lock,
.inline-lock {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-lock {
  margin-left: auto;
  opacity: .65;
}

.header-about-menu {
  position: relative;
}

.header-about-menu > summary::-webkit-details-marker {
  display: none;
}

.header-quick-link {
  min-height: 38px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(35, 58, 55, .18);
  border-radius: 8px;
  color: #314a46;
  background: rgba(255, 255, 255, .58);
  cursor: pointer;
  text-decoration: none;
  font: 730 .64rem "Space Grotesk", sans-serif;
  letter-spacing: -.01em;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.header-quick-link:hover,
.header-quick-link.active,
.header-about-menu[open] > .header-quick-link {
  border-color: #183f39;
  color: #fffdf7;
  background: #183f39;
}

.header-about-menu > summary span {
  margin-top: -2px;
  font-size: .72rem;
}

.header-about-panel {
  position: absolute;
  z-index: 180;
  top: calc(100% + 10px);
  right: 0;
  width: 232px;
  padding: 7px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(30, 57, 53, .18);
  border-radius: 12px;
  background: #fffdf7;
  box-shadow: 0 20px 52px rgba(11, 34, 32, .2);
}

.header-about-panel a {
  padding: 10px 11px;
  border-radius: 7px;
  color: #314743;
  text-decoration: none;
  font-size: .69rem;
}

.header-about-panel a:hover {
  color: #fffdf7;
  background: #183f39;
}

.header-subscription {
  min-height: 38px;
  padding: 0 11px;
  border-radius: 8px;
  color: #6d511d;
  background: #fff6dc;
}

.header-subscription:hover,
.header-subscription.active {
  border-color: #795c21;
  color: #fffdf7;
  background: #795c21;
  transform: none;
}

.domain-panel-locked strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.team-card {
  min-height: 350px;
}

.team-card > p:not(.team-role) {
  min-height: 0;
}

/* Pendul conic: construcție fizică discretă, integrată în fundalul titlului. */
.subject-physics .subject-hero {
  background: linear-gradient(118deg, #111a1c 0%, #132725 58%, #0f2022 100%);
}

.subject-physics .subject-hero::after {
  background: linear-gradient(90deg, rgba(13, 20, 23, .99) 0%, rgba(13, 23, 24, .9) 38%, rgba(13, 25, 25, .24) 72%, rgba(13, 25, 25, .42) 100%);
}

.subject-physics .subject-hero .subject-visual-pendulum {
  top: -2% !important;
  right: -1% !important;
  bottom: -4% !important;
  left: 32% !important;
  opacity: .83;
}

.subject-visual-pendulum svg {
  overflow: visible;
}

.pendulum-support {
  fill: none;
  stroke: rgba(242, 232, 211, .62);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.pendulum-support-detail {
  fill: none;
  stroke: rgba(242, 232, 211, .36);
  stroke-width: 1.15;
  stroke-linecap: round;
}

.pendulum-pivot-ring {
  fill: #122321;
  stroke: rgba(220, 190, 124, .64);
  stroke-width: 1.3;
}

.pendulum-pivot {
  fill: #d5b56f;
  stroke: none;
}

.pendulum-axis {
  stroke: rgba(232, 221, 198, .18);
  stroke-width: .9;
  stroke-dasharray: 4 10;
}

.pendulum-cone-edge {
  fill: none;
  stroke: rgba(225, 210, 179, .12);
  stroke-width: .8;
}

.pendulum-orbit {
  fill: none;
  stroke: rgba(215, 185, 119, .5);
  stroke-width: 1.15;
  stroke-dasharray: none;
}

.pendulum-orbit-back {
  opacity: .45;
  stroke-dasharray: 3 9;
}

.pendulum-orbit-front {
  opacity: .9;
}

.pendulum-angle-mark {
  fill: none;
  stroke: rgba(215, 185, 119, .38);
  stroke-width: 1;
}

.pendulum-string {
  stroke: url(#pendulum-string-gradient);
  stroke-width: 1.55;
}

.pendulum-bob {
  fill: url(#pendulum-bob-gradient);
  stroke: rgba(255, 242, 210, .58);
  stroke-width: .8;
}

.pendulum-bob-light {
  fill: rgba(255, 255, 255, .52);
}

.pendulum-ground-shadow {
  fill: #030708;
  opacity: .14;
}

/* Paginile blocate rămân simple și explicite. */
.pending-content-page main {
  min-height: calc(100svh - 74px);
  background: #f1eee5;
}

.pending-page {
  position: relative;
  min-height: calc(100svh - 74px);
  padding: 70px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  color: #1d3532;
  text-align: center;
}

.pending-page::before,
.pending-page::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background: rgba(25, 55, 51, .09);
}

.pending-page::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.pending-page::after {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
}

.pending-page > * {
  position: relative;
  z-index: 1;
}

.pending-page-lock {
  width: 82px;
  height: 82px;
  margin-bottom: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(24, 63, 57, .28);
  border-radius: 18px;
  color: #183f39;
  background: #f8f5ed;
  box-shadow: 0 14px 34px rgba(17, 44, 40, .08);
}

.pending-lock-icon {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pending-page .section-code {
  margin-bottom: 10px;
  color: #6e5b32;
}

.pending-page h1 {
  margin: 0;
  color: #1d3532;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 520;
  letter-spacing: -.055em;
}

.pending-page-state {
  margin-top: 14px;
  color: #7a5c20;
  font: 760 .78rem "Space Grotesk", sans-serif;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.pending-page > p:not(.section-code) {
  max-width: 570px;
  margin: 22px 0 0;
  color: #63716d;
  line-height: 1.75;
}

.pending-page-back {
  margin-top: 28px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: #183f39;
  text-decoration: none;
  font-size: .72rem;
  font-weight: 730;
}

/* Mesajul pentru acces apare din dreapta și nu înlocuiește pagina publică. */
.auth-login-notice {
  position: fixed;
  z-index: 1000;
  top: 96px;
  right: 18px;
  width: min(390px, calc(100vw - 28px));
  padding: 20px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  border: 1px solid rgba(23, 61, 55, .22);
  border-left: 4px solid #1c5d52;
  border-radius: 12px;
  color: #203936;
  background: #fffdf8;
  box-shadow: 0 20px 55px rgba(10, 32, 29, .23);
  animation: auth-notice-in 360ms cubic-bezier(.2, .85, .25, 1) both;
}

.auth-login-notice.is-leaving {
  pointer-events: none;
  animation: auth-notice-out 210ms ease both;
}

.auth-login-notice-lock {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(28, 93, 82, .22);
  border-radius: 10px;
  color: #1c5d52;
  background: #eef5f1;
}

.auth-notice-lock-icon {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-login-notice small,
.auth-login-notice strong,
.auth-login-notice p,
.auth-login-notice em {
  display: block;
}

.auth-login-notice small {
  margin: 1px 0 5px;
  color: #6f5a2d;
  font: 780 .56rem "Space Grotesk", sans-serif;
  letter-spacing: .14em;
}

.auth-login-notice strong {
  padding-right: 24px;
  font: 720 1rem "Space Grotesk", sans-serif;
  letter-spacing: -.02em;
}

.auth-login-notice p {
  margin: 7px 0 13px;
  color: #61706c;
  font-size: .76rem;
  line-height: 1.55;
}

.auth-login-notice a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #164e45;
  text-decoration: none;
  font-size: .7rem;
  font-weight: 780;
}

.auth-login-notice a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-login-notice em {
  margin-top: 9px;
  color: #7b8582;
  font-size: .62rem;
  font-style: normal;
}

.auth-login-notice-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #61706c;
  background: transparent;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.auth-login-notice-close:hover {
  color: #173f39;
  background: #edf3ef;
}

@keyframes auth-notice-in {
  from { opacity: 0; transform: translateX(calc(100% + 30px)); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes auth-notice-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(calc(100% + 30px)); }
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: minmax(210px, 1fr) auto;
  }

  .primary-navigation {
    display: none;
  }
}

@media (max-width: 760px) {
  .header-about-menu,
  .header-map-link {
    display: none;
  }

  .subject-physics .subject-hero .subject-visual-pendulum {
    top: 4% !important;
    right: -20% !important;
    bottom: -2% !important;
    left: 12% !important;
    opacity: .48;
  }
}

@media (max-width: 520px) {
  .header-subscription,
  .language-toggle {
    display: none;
  }

  .header-quick-link {
    min-height: 37px;
    padding-inline: 9px;
  }

  .auth-login-notice {
    top: 76px;
    right: 14px;
    padding: 17px;
    grid-template-columns: 42px 1fr;
    gap: 12px;
  }

  .auth-login-notice-lock {
    width: 42px;
    height: 42px;
  }

  .subject-physics .subject-hero .subject-visual-pendulum {
    top: 10% !important;
    right: -52% !important;
    bottom: 0 !important;
    left: -2% !important;
    opacity: .3;
  }

  .pending-page {
    padding-inline: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-login-notice,
  .auth-login-notice.is-leaving {
    animation: none;
  }
}

/* =========================================================
   Revizie comunitate, cont, navigație și ilustrații — 12.08
   ========================================================= */

/* Antet: căutarea utilizatorilor stă imediat după logotip. */
.header-inner {
  grid-template-columns: minmax(450px, 1.25fr) auto auto !important;
  gap: 16px !important;
}

.header-left {
  min-width: 0;
  gap: 9px;
}

.username-search {
  position: relative;
  width: clamp(165px, 15vw, 235px);
  margin-left: 7px;
  flex: 0 1 auto;
}

.username-search-box {
  height: 38px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(25, 56, 51, .18);
  border-radius: 9px;
  background: rgba(255, 255, 255, .62);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.username-search-box:focus-within {
  border-color: rgba(25, 79, 69, .62);
  background: #fffefb;
  box-shadow: 0 0 0 3px rgba(30, 92, 80, .08);
}

.username-search-box svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: #50635f;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.username-search-box input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: #1a3b35;
  background: transparent;
  font: 650 .68rem "Space Grotesk", sans-serif;
}

.username-search-box input::placeholder { color: #7b8986; opacity: 1; }

.username-search-results {
  position: absolute;
  z-index: 260;
  top: calc(100% + 9px);
  right: 0;
  left: 0;
  min-width: 260px;
  padding: 7px;
  border: 1px solid rgba(24, 62, 56, .18);
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: 0 20px 50px rgba(9, 35, 31, .2);
}

.username-search-results a {
  padding: 9px;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 9px;
  border-radius: 8px;
  color: #1f413b;
  text-decoration: none;
}

.username-search-results a:hover { background: #edf4f0; }
.username-search-results a > span {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fffdf8;
  background: #1b574d;
  font-size: .7rem;
  font-weight: 800;
}
.username-search-results strong { font-size: .68rem; }
.username-search-results small { color: #71807c; font-size: .59rem; }
.username-search-status { margin: 0; padding: 10px; color: #697874; font-size: .65rem; }

.header-icon-link {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(35, 58, 55, .18);
  border-radius: 9px;
  color: #36504b;
  background: rgba(255, 255, 255, .58);
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.header-icon-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-icon-link:hover,
.header-icon-link:focus-visible,
.header-icon-link.active {
  border-color: #183f39;
  color: #fffdf7;
  background: #183f39;
}

.header-icon-link::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 270;
  top: calc(100% + 9px);
  left: 50%;
  padding: 7px 9px;
  border-radius: 6px;
  color: #fffdf7;
  background: #132d29;
  box-shadow: 0 8px 22px rgba(8, 28, 25, .18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -3px);
  white-space: nowrap;
  font: 650 .58rem "Space Grotesk", sans-serif;
  transition: opacity 130ms ease, transform 130ms ease;
}

.header-icon-link:hover::after,
.header-icon-link:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.header-subscription.header-icon-link { padding: 0; color: #75591f; background: #fff6dc; }

/* Nicio categorie în pregătire nu mai folosește lacăt. */
.nav-lock,
.menu-lock,
.inline-lock,
.pending-page-lock,
.pending-lock-icon { display: none !important; }

.pending-page-state,
.subject-preparing-label,
.chapter-preparing-label,
.domain-preparing-label {
  color: #8a6a2d;
  font: 790 .65rem "Space Grotesk", sans-serif;
  font-style: normal;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.pending-page-state { order: -1; margin: 0 0 14px; }
.pending-page .section-code { margin-bottom: 8px; }
.domain-preparing-label { display: block; margin-bottom: 13px; color: #dcc488; }
.chapter-preparing-label { display: block; margin-bottom: 6px; color: #816126; font-size: .58rem; }
.subject-preparing-label { margin: 0 0 14px; color: #e3c987; }

.chapter-library-card-pending {
  cursor: default;
  filter: saturate(.72);
}

.chapter-library-card-pending .chapter-library-copy strong { color: #52615e; }
.chapter-library-card-pending .chapter-library-symbol { opacity: .45; }

/* Pendul și sistem solar: desen liniar, discret, direct în fundal. */
.subject-page .subject-hero {
  isolation: isolate;
  overflow: hidden;
}

.subject-page .subject-hero-copy { position: relative; z-index: 2; }
.subject-page .subject-visual { z-index: 0 !important; pointer-events: none; }

.subject-physics .subject-hero .subject-visual-pendulum {
  inset: -5% -2% -8% 34% !important;
  opacity: .54 !important;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 90%, transparent 100%);
}

.subject-visual-pendulum .pendulum-support { stroke: rgba(239, 232, 215, .58); stroke-width: 1.65; }
.subject-visual-pendulum .pendulum-pivot-ring { fill: #132725; stroke: rgba(218, 190, 126, .7); stroke-width: 1; }
.subject-visual-pendulum .pendulum-pivot { fill: #d8bd7a; }
.subject-visual-pendulum .pendulum-axis { stroke: rgba(238, 229, 208, .2); stroke-width: .75; stroke-dasharray: 4 9; }
.subject-visual-pendulum .pendulum-orbit { fill: none; stroke: rgba(220, 195, 137, .46); stroke-width: 1; stroke-dasharray: 3 6; }
.subject-visual-pendulum .pendulum-angle-mark { fill: none; stroke: rgba(220, 195, 137, .36); stroke-width: .8; }
.subject-visual-pendulum .pendulum-string { stroke: rgba(244, 237, 219, .7) !important; stroke-width: 1.2; }
.subject-visual-pendulum .pendulum-bob { fill: #c3a460 !important; stroke: rgba(255, 244, 216, .7); stroke-width: .8; }
.subject-visual-pendulum .pendulum-bob-light { fill: rgba(255, 255, 255, .58); }

.subject-quantum .subject-hero {
  background: linear-gradient(118deg, #101b20 0%, #13262a 58%, #111e24 100%);
}

.subject-quantum .subject-hero::after {
  background: linear-gradient(90deg, rgba(12, 22, 26, .98) 0%, rgba(12, 23, 26, .9) 40%, rgba(12, 24, 28, .22) 75%, rgba(12, 24, 28, .5) 100%);
}

.subject-quantum .subject-hero .subject-visual-solar {
  inset: -5% -4% -8% 30% !important;
  opacity: .66 !important;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 90%, transparent 100%);
}

.subject-visual-solar .solar-stars { fill: rgba(245, 240, 223, .62); }
.subject-visual-solar .solar-orbit { fill: none; stroke: rgba(214, 224, 219, .25); stroke-width: .9; }
.subject-visual-solar .solar-sun-halo { fill: rgba(212, 179, 102, .08); stroke: rgba(220, 190, 122, .2); stroke-width: .8; }
.subject-visual-solar .solar-sun { fill: #cfad65; stroke: rgba(255, 242, 209, .72); stroke-width: 1; }
.subject-visual-solar .solar-planet circle { fill: #a9beb8; stroke: rgba(240, 244, 237, .65); stroke-width: .7; }
.subject-visual-solar .planet-2 circle { fill: #c4af86; }
.subject-visual-solar .planet-3 circle { fill: #809e9a; }
.subject-visual-solar .planet-4 circle { fill: #bca47b; }
.subject-visual-solar .solar-ring { fill: none; stroke: rgba(225, 211, 179, .75); stroke-width: .75; }

/* Profil și username. */
.username-input-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
}

.username-input-wrap > span {
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31, 65, 59, .2);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  color: #31534c;
  background: #edf3ef;
  font-weight: 800;
}

.username-input-wrap input { border-radius: 0 8px 8px 0 !important; }
.username-input-wrap small { grid-column: 1 / -1; margin-top: 6px; color: #74817e; font-size: .61rem; line-height: 1.5; }
.profile-form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.account-edit-profile {
  padding: 10px 14px;
  border: 1px solid #1d5a50;
  border-radius: 8px;
  color: #fffdf8;
  background: #1d5a50;
  cursor: pointer;
  font: 720 .66rem "Space Grotesk", sans-serif;
}
.public-profile-identity { margin: 30px 0; display: flex; align-items: center; gap: 18px; }
.public-profile-identity h2 { margin: 0; color: #183c36; font-size: 2.2rem; }
.public-profile-identity strong { display: block; margin-top: 4px; color: #8a672a; }
.public-profile-identity p { margin: 7px 0 0; color: #73807d; }

.public-profile-detail-grid {
  display: grid;
  gap: 12px;
}

.public-profile-detail-card,
.public-profile-performance {
  padding: 16px;
  border: 1px solid rgba(24, 66, 58, .12);
  border-radius: 14px;
  background: #f8f6ee;
}

.public-profile-detail-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: start;
}

.public-profile-detail-card > span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fffaf0;
  background: #1f4f45;
  font: 850 .58rem "Space Grotesk", sans-serif;
}

.public-profile-detail-card small {
  display: block;
  color: #7d6b43;
  font-size: .62rem;
  font-weight: 850;
  text-transform: uppercase;
}

.public-profile-detail-card strong,
.public-profile-performance h3 {
  margin: 0;
  color: #173d36;
}

.public-profile-detail-card p,
.public-profile-performance p {
  margin: 7px 0 0;
  color: #556a64;
  line-height: 1.55;
}

.public-profile-performance {
  display: grid;
  gap: 5px;
}

.public-profile-performance h3 {
  font-size: 1rem;
}

.public-profile-performance strong {
  color: #214f46;
}

/* Chat global live. */
.global-chat,
.discussion-forum-heading {
  width: min(calc(100% - 48px), 1180px);
  margin-inline: auto;
}

.global-chat {
  margin-top: -38px;
  padding: 28px;
  position: relative;
  z-index: 4;
  border: 1px solid rgba(23, 66, 59, .16);
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 24px 70px rgba(11, 40, 35, .13);
}

.global-chat > header,
.discussion-forum-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.global-chat h2,
.discussion-forum-heading h2 { margin: 4px 0 0; color: #193c36; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.045em; }
.global-chat-presence { margin: 0; display: flex; align-items: center; gap: 8px; color: #59706b; font-size: .67rem; }
.global-chat-presence i,
.leaderboard-live-state i { width: 8px; height: 8px; border-radius: 50%; background: #2a9d79; box-shadow: 0 0 0 4px rgba(42, 157, 121, .12); }

.global-chat-window {
  height: min(52vh, 510px);
  margin-top: 22px;
  padding: 18px;
  overflow-y: auto;
  border: 1px solid rgba(24, 65, 58, .12);
  border-radius: 12px;
  background: #f2f3ed;
  scrollbar-width: thin;
}

.global-chat-message { max-width: min(78%, 720px); margin: 0 0 14px; display: flex; align-items: flex-start; gap: 9px; }
.global-chat-message > span { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: #315f57; font-size: .64rem; font-weight: 780; }
.global-chat-message > div { min-width: 0; padding: 10px 13px; border: 1px solid rgba(32, 68, 62, .12); border-radius: 4px 13px 13px 13px; background: #fffefa; }
.global-chat-message header { display: flex; align-items: center; gap: 10px; }
.global-chat-message header a { color: #1b5b50; text-decoration: none; font-size: .64rem; font-weight: 760; }
.global-chat-message time { color: #8a9491; font-size: .55rem; }
.global-chat-message p { margin: 5px 0 0; color: #334d48; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .72rem; line-height: 1.55; }
.global-chat-message.is-own { margin-left: auto; flex-direction: row-reverse; }
.global-chat-message.is-own > span { background: #96763a; }
.global-chat-message.is-own > div { border-radius: 13px 4px 13px 13px; background: #f8f1dd; }
.global-chat-message header .message-delete-button { margin-left: auto; padding: 4px 7px; font-size: .5rem; }
.global-chat-empty { min-height: 100%; margin: 0; display: grid; place-content: center; gap: 7px; color: #75827f; text-align: center; }
.global-chat-empty strong,
.global-chat-empty span { display: block; }

.global-chat-form { margin-top: 16px; }
.global-chat-form > label { display: block; margin-bottom: 7px; color: #294b45; font-size: .64rem; font-weight: 730; }
.global-chat-form > div { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.global-chat-form textarea { min-height: 64px; padding: 13px; resize: vertical; border: 1px solid rgba(24, 65, 58, .22); border-radius: 9px; color: #263f3a; background: #fffefb; font: 500 .72rem "Space Grotesk", sans-serif; line-height: 1.5; }
.global-chat-form footer { margin-top: 7px; display: flex; justify-content: space-between; color: #7c8885; font-size: .57rem; }
.global-chat-form-status { min-height: 1em; margin: 7px 0 0; color: #9b3c32; font-size: .62rem; }
.discussion-forum-heading { margin-top: 74px; }
.discussion-forum-heading > p { max-width: 430px; margin: 0; color: #71807c; line-height: 1.65; }

/* Clasamentul rămâne lizibil și când nu există încă scoruri. */
.leaderboard-toolbar-live > div { display: flex; align-items: baseline; gap: 12px; }
.leaderboard-toolbar-live > div > strong { color: #1c4840; }
.leaderboard-live-state { margin: 0; display: flex; align-items: center; gap: 9px; color: #647773; font-size: .66rem; }
.ranking-empty-state { padding: 40px 22px; text-align: center; color: #657571; }
.ranking-empty-state strong { display: block; color: #254940; font-size: 1rem; }
.ranking-empty-state p { margin: 8px 0 0; }
.map-user-detail-empty { display: flex; justify-content: center; flex-direction: column; }
.map-user-detail-empty h3 { margin: 16px 0 8px; color: #244840; font-size: 1.7rem; }
.map-user-detail-empty p { color: #6f7f7a; line-height: 1.6; }
.leader-profile-link { color: #1b584d; font-size: .65rem; font-weight: 750; text-underline-offset: 4px; }

/* Feedbackul problemelor este un pop-up real. */
.problem-feedback-modal[hidden] { display: none !important; }
.problem-feedback-modal {
  position: fixed;
  z-index: 1200;
  inset: 0;
  padding: 22px;
  display: grid;
  place-items: center;
}

.problem-feedback-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(8, 22, 20, .72); backdrop-filter: blur(5px); cursor: pointer; }
.problem-feedback-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 580px);
  max-height: min(88vh, 720px);
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(180px, 46%) 1fr;
  align-items: center;
  gap: 24px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .38);
  animation: feedback-dialog-in 220ms ease both;
}

.problem-feedback-dialog > img { width: 100%; aspect-ratio: 1 / 1; display: block; object-fit: cover; border-radius: 12px; background: #ecebe4; }
.problem-feedback-dialog > img:not([src]) { display: none; }
.problem-feedback-dialog strong { display: block; color: #173e37; font-size: 1.35rem; line-height: 1.2; }
.problem-feedback-dialog p { margin: 10px 0 18px; color: #667671; line-height: 1.6; }
.problem-feedback-close { position: absolute; z-index: 2; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: #274b44; background: rgba(255, 255, 255, .92); cursor: pointer; font-size: 1.4rem; }
.problem-feedback-modal.is-positive .problem-feedback-dialog { border-top: 4px solid #2b946f; }
.problem-feedback-modal.is-negative .problem-feedback-dialog { border-top: 4px solid #b94e43; }
.problem-feedback-modal.is-incomplete .problem-feedback-dialog { grid-template-columns: 1fr; border-top: 4px solid #b58a38; }
.problem-feedback-open { overflow: hidden; }

@keyframes feedback-dialog-in {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-notice-user-icon { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; }

@media (max-width: 1320px) {
  .header-inner { grid-template-columns: minmax(390px, 1fr) auto !important; }
  .primary-navigation { display: none; }
}

@media (max-width: 820px) {
  .username-search { width: 155px; }
  .header-icon-link { width: 36px; height: 36px; }
  .subject-physics .subject-hero .subject-visual-pendulum,
  .subject-quantum .subject-hero .subject-visual-solar { inset: 4% -32% -4% 2% !important; opacity: .35 !important; }
  .global-chat > header,
  .discussion-forum-heading { align-items: flex-start; flex-direction: column; }
  .global-chat-message { max-width: 92%; }
}

@media (max-width: 620px) {
  .header-inner { grid-template-columns: 1fr auto !important; gap: 7px !important; }
  .home-icon-button { display: none; }
  .username-search { width: 124px; margin-left: 2px; }
  .username-search-box { padding-inline: 8px; }
  .header-tools { gap: 3px; }
  .header-icon-link { width: 34px; height: 34px; }
  .language-toggle { display: none !important; }
  .username-search-results { right: auto; min-width: 245px; }
  .global-chat { width: min(calc(100% - 24px), 1180px); padding: 18px; }
  .discussion-forum-heading { width: min(calc(100% - 24px), 1180px); }
  .global-chat-form > div { grid-template-columns: 1fr; }
  .global-chat-form button { justify-self: stretch; }
  .problem-feedback-dialog { grid-template-columns: 1fr; gap: 16px; }
  .problem-feedback-dialog > img { max-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  .problem-feedback-dialog { animation: none; }
}

/* =========================================================
   Corecții finale layout, căutare, pending, animații, discuții
   ========================================================= */

.site-header {
  height: 82px !important;
  min-height: 82px !important;
  overflow: visible !important;
}

.header-inner {
  width: min(100% - 42px, 1480px) !important;
  min-height: 82px !important;
  display: grid !important;
  grid-template-columns: minmax(500px, 1.18fr) auto auto !important;
  align-items: center !important;
  gap: 18px !important;
}

.header-left {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
}

.header-left .brand {
  flex: 0 0 auto !important;
}

.primary-navigation {
  position: static !important;
  inset: auto !important;
  height: 48px !important;
  min-width: max-content !important;
  padding: 5px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transform: none !important;
  border-radius: 999px !important;
}

.primary-navigation a {
  height: 38px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

.header-tools {
  min-width: max-content !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 7px !important;
  flex-wrap: nowrap !important;
}

.global-site-search,
.username-search {
  width: clamp(230px, 26vw, 390px) !important;
  max-width: 390px !important;
  margin-left: 8px !important;
  flex: 1 1 260px !important;
}

.username-search-box {
  height: 40px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .78) !important;
}

.username-search-box input {
  font-size: .76rem !important;
}

.username-search-results {
  left: 0 !important;
  right: auto !important;
  width: min(520px, calc(100vw - 36px)) !important;
  max-height: min(68vh, 560px) !important;
  overflow: auto !important;
  padding: 9px !important;
}

.global-search-group {
  display: grid;
  gap: 4px;
}

.global-search-group + .global-search-group {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(30, 66, 59, .1);
}

.global-search-group > b {
  padding: 5px 8px 2px;
  color: #7b6841;
  font: 800 .58rem "Space Grotesk", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.username-search-results a {
  min-height: 48px;
  grid-template-columns: 36px 1fr !important;
  align-items: center;
}

.username-search-results a > span {
  grid-row: 1 / 3;
  background: linear-gradient(135deg, #143d37, #28685c) !important;
}

.header-icon-link,
.header-tool {
  border-radius: 50% !important;
}

.account-page .account-intro h1,
.account-page .account-intro .subject-breadcrumb {
  color: #fff8e8 !important;
  text-shadow: 0 12px 38px rgba(0, 0, 0, .34);
}

.account-page .account-intro h1 {
  font-weight: 680 !important;
}

.account-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 12%, rgba(255, 255, 255, .11), transparent 28rem);
}

.account-hero > * {
  position: relative;
  z-index: 1;
}

.chapter-library-card-pending,
.astro-panel {
  position: relative !important;
  overflow: hidden !important;
  pointer-events: none !important;
  border-color: rgba(33, 55, 51, .16) !important;
  background: linear-gradient(135deg, rgba(255, 253, 247, .82), rgba(232, 228, 217, .68)) !important;
  box-shadow: 0 20px 58px rgba(20, 45, 41, .08) !important;
}

.chapter-library-card-pending > :not(.chapter-preparing-label),
.astro-panel > :not(.domain-preparing-label) {
  filter: blur(1.65px) saturate(.62) !important;
  opacity: .54 !important;
}

.chapter-library-card-pending::before,
.astro-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  background: linear-gradient(135deg, rgba(246, 243, 234, .46), rgba(255, 255, 255, .18));
  backdrop-filter: blur(1.5px);
}

.chapter-library-card-pending::after,
.astro-panel::after {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 50%;
  padding: 10px 16px;
  border: 1px solid rgba(126, 100, 45, .24);
  border-radius: 999px;
  color: #5f461c;
  background: rgba(255, 250, 235, .88);
  box-shadow: 0 18px 40px rgba(65, 48, 20, .14);
  transform: translate(-50%, -50%);
  font: 850 .7rem "Space Grotesk", sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.chapter-library-card-pending::after {
  content: attr(data-status);
  max-width: calc(100% - 28px);
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .67rem;
  letter-spacing: .055em;
}

.astro-panel::after {
  content: "În pregătire";
}

.lessons-hub-card-pending {
  position: relative;
  overflow: hidden;
  border-color: rgba(98, 78, 39, .18);
  background: linear-gradient(135deg, #f8f5ed, #efebe0);
}

.lessons-hub-card-pending::after {
  content: attr(data-status);
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  max-width: calc(100% - 30px);
  padding: 9px 14px;
  overflow: hidden;
  border: 1px solid rgba(126, 100, 45, .24);
  border-radius: 999px;
  color: #5f461c;
  background: rgba(255, 250, 235, .94);
  box-shadow: 0 18px 40px rgba(65, 48, 20, .14);
  pointer-events: none;
  transform: translate(-50%, -50%);
  text-overflow: ellipsis;
  font: 850 .67rem "Space Grotesk", sans-serif;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lessons-hub-card-pending > * {
  filter: grayscale(1) blur(1px);
  opacity: .58;
}

.lessons-hub-card-pending small,
.lessons-hub-pending-label {
  color: #7a5c20;
  font-weight: 850;
}

.lessons-hub-pending-label {
  position: relative;
  z-index: 1;
  padding: 8px 11px;
  border: 1px solid rgba(122, 92, 32, .22);
  border-radius: 999px;
  background: #fff8e8;
  font-size: .66rem;
}

.chapter-availability-page .pending-page-state {
  margin-bottom: 14px;
  padding: 9px 13px;
  border: 1px solid rgba(122, 92, 32, .22);
  border-radius: 999px;
  background: #fff8e8;
  letter-spacing: .07em;
}

.subject-preparing-label,
.domain-preparing-label,
.chapter-preparing-label {
  position: relative;
  z-index: 9;
}

.subject-page .subject-hero {
  min-height: 560px;
}

.subject-page .subject-hero-copy {
  position: relative !important;
  z-index: 4 !important;
}

.subject-page .subject-hero .subject-visual {
  display: block !important;
  visibility: visible !important;
  pointer-events: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.subject-physics .subject-hero .subject-visual-pendulum {
  inset: -7% -4% -8% 33% !important;
  opacity: .78 !important;
  z-index: 1 !important;
}

.subject-quantum .subject-hero .subject-visual-solar {
  inset: -8% -8% -8% 28% !important;
  opacity: .82 !important;
  z-index: 1 !important;
}

.subject-visual-pendulum svg,
.subject-visual-solar svg {
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
}

.subject-visual-pendulum .pendulum-string,
.subject-visual-pendulum .pendulum-bob-group,
.subject-visual-solar [data-solar-planet] {
  will-change: transform, opacity;
}

.subject-visual-pendulum .pendulum-orbit {
  animation: phyastro-orbit-breathe 2.7s ease-in-out infinite;
}

.subject-visual-solar .solar-orbit {
  animation: phyastro-orbit-breathe 3.4s ease-in-out infinite;
}

.subject-visual-solar .solar-orbit:nth-of-type(2) { animation-delay: -.5s; }
.subject-visual-solar .solar-orbit:nth-of-type(3) { animation-delay: -1s; }
.subject-visual-solar .solar-orbit:nth-of-type(4) { animation-delay: -1.5s; }

@keyframes phyastro-orbit-breathe {
  0%, 100% { opacity: .42; }
  50% { opacity: .86; }
}

.discussion-hero-modern {
  min-height: 420px;
  padding-bottom: 120px;
}

.discussion-workspace {
  width: min(calc(100% - 48px), 1320px);
  margin: -82px auto 96px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: 18px;
}

.discussion-sidebar,
.discussion-channel > section {
  border: 1px solid rgba(28, 64, 58, .14);
  border-radius: 22px;
  background: rgba(255, 253, 248, .94);
  box-shadow: 0 24px 70px rgba(15, 43, 38, .11);
}

.discussion-sidebar {
  height: max-content;
  position: sticky;
  top: 98px;
  padding: 18px;
}

.discussion-sidebar-head h2 {
  margin: 4px 0 18px;
  color: #153a34;
  font-size: 1.7rem;
  letter-spacing: -.04em;
}

.discussion-category-list {
  display: grid;
  gap: 7px;
}

.discussion-category-list > p {
  margin: 14px 4px 4px;
  color: #8a7446;
  font: 850 .57rem "Space Grotesk", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.discussion-category-list button {
  width: 100%;
  padding: 11px;
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 10px;
  align-items: center;
  border: 1px solid rgba(31, 68, 61, .1);
  border-radius: 14px;
  color: #2e4c46;
  background: rgba(247, 246, 240, .72);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.discussion-category-list button:hover,
.discussion-category-list button.active,
.discussion-category-list button.is-active {
  border-color: rgba(27, 82, 72, .32);
  background: #edf5f1;
  transform: translateY(-1px);
}

.discussion-category-list button > span {
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fffdf8;
  background: #173f39;
  font-size: .62rem;
  font-weight: 850;
}

.discussion-category-list strong {
  color: #173b35;
  font-size: .73rem;
}

.discussion-category-list small {
  margin-top: 3px;
  color: #77827f;
  font-size: .6rem;
}

.discussion-channel {
  display: grid;
  gap: 18px;
}

.chapter-channel-head,
.chapter-live-panel,
.discussion-board {
  padding: 24px;
}

.chapter-channel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.chapter-channel-head h2,
.chapter-live-panel h3,
.discussion-section-heading h2 {
  margin: 4px 0 0;
  color: #153a34;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  letter-spacing: -.05em;
}

.chapter-channel-head span,
.discussion-section-heading span,
.answers-heading span {
  color: #74817d;
  font-size: .68rem;
}

.chapter-live-panel > header,
.discussion-section-heading,
.answers-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.chapter-chat-window {
  height: min(48vh, 430px);
  margin-top: 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(223, 211, 173, .22), transparent 30rem),
    #f3f2eb;
}

.chapter-chat-form textarea {
  min-height: 58px;
}

.discussion-board {
  display: grid;
  gap: 18px;
}

.new-topic-form,
.answer-form {
  padding: 18px;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(27, 66, 59, .12);
  border-radius: 16px;
  background: #f7f4ea;
}

.new-topic-form[hidden] {
  display: none !important;
}

.new-topic-form label,
.answer-form label {
  color: #274a43;
  font-size: .64rem;
  font-weight: 800;
}

.new-topic-form input,
.new-topic-form textarea,
.answer-form textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid rgba(27, 66, 59, .18);
  border-radius: 11px;
  color: #223f39;
  background: #fffdf8;
  font: 500 .78rem "Space Grotesk", sans-serif;
  line-height: 1.55;
}

.new-topic-form > div,
.answer-form > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.thread-list,
.answer-list {
  display: grid;
  gap: 12px;
}

.discussion-thread-card {
  padding: 16px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  border: 1px solid rgba(28, 63, 57, .12);
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 12px 30px rgba(20, 44, 39, .06);
}

.discussion-thread-card > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fdf9ec;
  background: #183f39;
  font-size: .68rem;
  font-weight: 850;
}

.discussion-thread-card small,
.thread-detail-question small {
  color: #8a7a54;
  font-size: .63rem;
  font-weight: 780;
}

.discussion-thread-card h3 {
  margin: 5px 0 7px;
  color: #173d36;
  font-size: 1.12rem;
}

.discussion-thread-card p,
.thread-detail-question p,
.answer-card p {
  color: #536761;
  line-height: 1.65;
}

.discussion-thread-card footer {
  margin-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.discussion-thread-card footer b {
  color: #7c6a3f;
  font-size: .62rem;
}

.discussion-thread-card footer button,
.discussion-back,
.answer-rating button {
  border: 0;
  color: #1c574d;
  background: transparent;
  cursor: pointer;
  font: 800 .65rem "Space Grotesk", sans-serif;
}

.thread-detail-shell {
  display: grid;
  gap: 16px;
}

.thread-detail-question,
.answer-card {
  padding: 20px;
  border: 1px solid rgba(27, 66, 59, .12);
  border-radius: 18px;
  background: #fffdf8;
}

.thread-detail-question h2 {
  margin: 7px 0 10px;
  color: #153a34;
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  letter-spacing: -.045em;
}

.thread-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.thread-detail-meta .discussion-delete-button,
.discussion-thread-card footer .discussion-delete-button {
  border: 1px solid rgba(151, 61, 51, .24);
  color: #8e3d35;
  padding: 7px 10px;
  background: #fff6f2;
  font: 800 .58rem "Manrope", sans-serif;
}

.answer-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.answer-author > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fffdf8;
  background: #245b51;
  font-size: .68rem;
  font-weight: 850;
}

.answer-author strong {
  color: #183f39;
}

.answer-author small {
  display: block;
  color: #7d8986;
  font-size: .58rem;
}

.answer-author > b {
  margin-left: auto;
  color: #8a6b2d;
  font-size: .6rem;
}

.answer-card.most-appreciated {
  border-color: rgba(175, 137, 58, .35);
  background: #fff8e7;
}

.answer-rating {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.answer-rating strong {
  min-width: 38px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fffdf8;
  background: #173f39;
}

.answer-rating button {
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf3ef;
}

.answer-rating button.active.positive {
  color: #fffdf8;
  background: #24745f;
}

.answer-rating button.active.negative {
  color: #fffdf8;
  background: #9a4d43;
}

.answer-rating .answer-delete-button {
  margin-left: auto;
  border: 1px solid rgba(151, 61, 51, .24);
  color: #8e3d35;
  background: #fff6f2;
  font: 800 .58rem "Manrope", sans-serif;
}

.thread-detail-meta .discussion-delete-button:hover,
.discussion-thread-card footer .discussion-delete-button:hover,
.answer-rating .answer-delete-button:hover {
  border-color: rgba(151, 61, 51, .5);
  color: #7a2f28;
  background: #fff0ec;
}

.discussion-empty {
  padding: 34px;
  border-radius: 18px;
  background: #f7f4ea;
}

.discussion-action-status {
  min-height: 1.2em;
  margin: 0;
  color: #9b4438;
  font-size: .66rem;
}

.discussion-action-status.success {
  color: #24745f;
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: minmax(360px, 1fr) auto !important;
  }

  .primary-navigation {
    display: none !important;
  }

  .global-site-search,
  .username-search {
    width: clamp(210px, 34vw, 330px) !important;
  }
}

@media (max-width: 900px) {
  .discussion-workspace {
    grid-template-columns: 1fr;
  }

  .discussion-sidebar {
    position: static;
  }

  .discussion-category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .discussion-category-list > p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .header-inner {
    grid-template-columns: 1fr auto !important;
    width: min(100% - 22px, 1480px) !important;
  }

  .header-left {
    gap: 6px !important;
  }

  .brand-word {
    display: none !important;
  }

  .global-site-search,
  .username-search {
    width: min(47vw, 230px) !important;
    margin-left: 0 !important;
  }

  .header-icon-link {
    display: none !important;
  }

  .header-icon-link:nth-of-type(2),
  .header-icon-link:nth-of-type(3) {
    display: inline-grid !important;
  }

  .discussion-workspace {
    width: min(calc(100% - 24px), 1320px);
  }

  .discussion-category-list {
    grid-template-columns: 1fr;
  }

  .chapter-live-panel > header,
  .discussion-section-heading,
  .answers-heading,
  .chapter-channel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .global-chat-form > div,
  .chapter-chat-form > div {
    grid-template-columns: 1fr !important;
  }
}

/* Finisaj comun pentru lecțiile statice de Mecanică și Termodinamică */
.lesson-section-body > div { min-width: 0; }

.lesson-polished-page,
.lesson-readable-page,
.lesson-11-style,
.universal-knowledge-check {
  width: 100%;
  max-width: 940px;
  margin-inline: auto;
  color: #26342f;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.7;
}

.lesson-polished-page p,
.lesson-readable-page p,
.lesson-11-style p { font-size: 1rem; }

.work-math-page.lesson-11-style .math-introduction,
.lesson-readable-page .math-introduction,
.universal-knowledge-check .test-introduction {
  margin-bottom: 24px;
  padding: 20px 24px;
  background: #f2f7f4;
  border: 1px solid #c9d9d1;
  border-left: 5px solid #2a725c;
}

.work-math-page.lesson-11-style .math-section,
.lesson-readable-page .math-section {
  margin-bottom: 24px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid #ccd8d2;
  box-shadow: 0 2px 7px rgba(26, 48, 40, 0.07);
}

.work-math-page.lesson-11-style .math-section h3,
.lesson-readable-page .math-section h3 {
  margin: 0 0 16px;
  padding-bottom: 9px;
  color: #244e40;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  border-bottom: 1px solid #cad8d1;
}

.formula-box {
  margin: 18px 0;
  padding: 14px 16px;
  overflow-x: auto;
  color: #1f302a;
  background: #f4f7f5;
  border: 1px solid #c5d2cc;
  border-left: 4px solid #557d6e;
  text-align: center;
}

.formula-box.compact { padding-block: 11px; }

.formula-explanation {
  margin: -6px 0 18px;
  color: #52605b;
  font-size: .94rem;
  text-align: center;
}

.lesson-measure-grid,
.quantity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.lesson-measure-grid article,
.quantity-grid article {
  padding: 18px;
  background: #fff;
  border: 1px solid #d5e0da;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(28, 55, 47, .06);
}

.lesson-measure-grid span,
.quantity-grid span {
  display: block;
  color: #527166;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lesson-measure-grid strong,
.quantity-grid strong {
  display: block;
  margin: 7px 0;
  color: #143f34;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.universal-knowledge-check .test-introduction p { margin: 0; }

.universal-knowledge-check .test-note {
  margin-top: 12px;
  padding-top: 12px;
  color: #52645d;
  font-size: .94rem;
  border-top: 1px solid #d5e2dc;
}

.universal-knowledge-check .question-group { margin-bottom: 28px; }

.universal-knowledge-check .question-group-title {
  margin: 0 0 14px;
  padding: 8px 12px;
  color: #194c3e;
  background: #e7f0eb;
  border-left: 4px solid #2a725c;
  font-size: 1.08rem;
}

.universal-knowledge-check .question-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: question-number;
}

.universal-knowledge-check.knowledge-check-single-list .question-list {
  grid-template-columns: 1fr;
}

.universal-knowledge-check .question-item {
  position: relative;
  min-height: 72px;
  margin: 0;
  padding: 17px 18px 17px 64px;
  background: #fff;
  border: 1px solid #d3ddd8;
  border-radius: 6px;
  counter-increment: question-number;
}

.universal-knowledge-check .question-item::before {
  content: counter(question-number);
  position: absolute;
  top: 15px;
  left: 16px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  background: #2a725c;
  border-radius: 50%;
  font-size: .92rem;
  font-weight: 800;
}

.universal-knowledge-check .question-item p {
  margin: 0;
  text-indent: 0;
}

.universal-knowledge-check .test-reminder {
  margin-top: 24px;
  padding: 18px 21px;
  background: #fff9e7;
  border: 1px solid #ded2a1;
}

.lesson-linked-problems-page { max-width: 980px; }

.lesson-problem-intro {
  margin-bottom: 22px;
  padding: 22px;
  background: linear-gradient(135deg, #f6faf7, #eef6f1);
  border: 1px solid #cbdcd3;
  border-radius: 10px;
}

.lesson-problem-intro h3 {
  margin: 7px 0 9px;
  color: #153f34;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.lesson-problem-main-link {
  display: inline-flex;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: #1d5f4d;
  font-weight: 800;
  text-decoration: none;
}

.lesson-linked-problems-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lesson-problem-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid #d3dfd8;
  border-radius: 10px;
  color: #21372f;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(22, 57, 45, .08);
}

.lesson-problem-card span {
  color: #2a725c;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lesson-problem-card strong {
  color: #123f34;
  font-size: 1.08rem;
}

.lesson-problem-card small,
.lesson-problem-empty { color: #5b6e67; }

.temperature-converter-card {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin: 24px auto;
  padding: 22px;
  background: #fff;
  border: 1px solid #d0ddd6;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(22, 57, 45, .08);
}

.temperature-converter-card label {
  color: #244e40;
  font-weight: 800;
}

.temperature-converter-card input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c8d8d0;
  border-radius: 8px;
  font: inherit;
}

.temperature-converter-card button {
  justify-self: start;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #215f4e;
  font-weight: 800;
  cursor: pointer;
}

.temperature-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.temperature-results p {
  margin: 0;
  padding: 13px;
  background: #f4f8f6;
  border: 1px solid #d8e4de;
  border-radius: 8px;
}

.thermal-scale {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
  padding-top: 18px;
}

.thermal-scale::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 8%;
  right: 8%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7bb5d8, #edf1d1, #e6906d);
}

.thermal-scale div {
  padding: 18px;
  background: #fff;
  border: 1px solid #d1ded8;
  border-radius: 8px;
  text-align: center;
}

.thermal-scale span,
.thermal-scale small {
  display: block;
  color: #5a6f67;
}

.thermal-scale strong {
  display: block;
  margin: 5px 0;
  color: #153f34;
  font-size: 1.45rem;
}

.thermal-quantity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.thermal-quantity-list p {
  margin: 0;
  padding: 13px;
  background: #f7faf8;
  border: 1px solid #d9e4de;
  border-radius: 8px;
}

body[data-chapter="mecanica"][data-section="2"][data-lesson="4"] .lesson-section-body > div,
body[data-chapter="mecanica"][data-section="2"][data-lesson="5"] .lesson-section-body > div {
  margin-left: 0;
}

body[data-section="2"][data-chapter="mecanica"][data-lesson="24"] .lesson-section-body canvas,
body[data-section="2"][data-chapter="mecanica"][data-lesson="30"] .lesson-section-body canvas,
body[data-section="2"][data-chapter="mecanica"][data-lesson="31"] .lesson-section-body canvas,
body[data-section="2"][data-chapter="termodinamica"][data-lesson="7"] .lesson-section-body canvas,
body[data-section="2"][data-chapter="termodinamica"][data-lesson="13"] .lesson-section-body canvas {
  min-height: 420px;
}

/* Harta clasamentului: Leaflet rămâne sub meniu și pinurile folosesc PFP vizibil. */
.site-header,
.main-menu-panel,
.tool-panel,
.username-search-results {
  z-index: 2200 !important;
}

.romania-map-stage,
.romania-leaflet-map {
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.romania-leaflet-map .leaflet-pane { z-index: 1 !important; }

.romania-leaflet-map .leaflet-top,
.romania-leaflet-map .leaflet-bottom { z-index: 5 !important; }

.leaflet-user-pin .leader-avatar,
.leaflet-user-pin .leader-avatar-photo,
.leaflet-user-pin .leader-avatar-photo img {
  border-radius: 50%;
}

.leaflet-user-pin .leader-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leaflet-city-cluster {
  position: relative;
  width: 62px;
  height: 62px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #123f34;
  background: radial-gradient(circle at 35% 30%, #fff7d8, #75d0ae 58%, #1d6b55);
  box-shadow: 0 12px 28px rgba(15, 59, 45, .28);
  cursor: pointer;
}

.leaflet-city-cluster strong {
  font-size: 1.3rem;
  line-height: 1;
}

.leaflet-city-cluster span {
  position: absolute;
  right: -4px;
  top: -5px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #143f34;
  font-size: .72rem;
  font-weight: 900;
}

.leaflet-city-cluster b {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  padding: 5px 7px;
  border-radius: 999px;
  color: #143f34;
  background: #fff8d6;
  font-size: .52rem;
  white-space: nowrap;
  transform: translateX(-50%);
}

.city-cluster-popup {
  display: grid;
  gap: 7px;
  min-width: 190px;
  font-family: var(--sans);
}

.city-cluster-popup > strong {
  color: #143f34;
  font-size: 1rem;
}

.city-cluster-popup small { color: #64736d; }

.city-cluster-popup a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid #e1ebe6;
  color: #173f35;
  text-decoration: none;
}

@media (max-width: 820px) {
  .lesson-measure-grid,
  .quantity-grid,
  .universal-knowledge-check .question-list,
  .lesson-linked-problems-grid,
  .temperature-results,
  .thermal-scale,
  .thermal-quantity-list {
    grid-template-columns: 1fr;
  }
}

/* Revizie 27 august 2026 — observații estetice și fluxuri publice */
.phyastro-home-classic .home-hero.phyastro-hero-classic .hero-copy {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.phyastro-home-classic .home-hero.phyastro-hero-classic .hero-disciplines,
.phyastro-home-classic .home-hero.phyastro-hero-classic .hero-manifesto,
.phyastro-home-classic .home-hero.phyastro-hero-classic .hero-lede,
.phyastro-home-classic .home-hero.phyastro-hero-classic .hero-actions,
.phyastro-home-classic .home-hero.phyastro-hero-classic .hero-metrics {
  margin-left: auto !important;
  margin-right: auto !important;
}

.phyastro-home-classic .home-hero.phyastro-hero-classic .hero-lede {
  max-width: 700px;
  text-align: center;
}

.phyastro-home-classic .home-hero.phyastro-hero-classic .hero-tesseract {
  opacity: .58;
}

.phyastro-home-classic .home-discovery {
  grid-template-columns: minmax(170px, .42fr) minmax(320px, 620px) minmax(170px, .42fr);
  justify-content: center;
  align-items: center;
}

.phyastro-home-classic .lesson-search {
  width: min(100%, 620px) !important;
  margin-left: 0 !important;
  justify-self: center;
}

.phyastro-home-classic .phyastro-domains .section-heading {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  text-align: left;
}

.phyastro-home-classic .phyastro-domains .section-heading > div {
  max-width: 820px;
}

.phyastro-home-classic .phyastro-domains .section-heading p {
  max-width: 760px;
}

.main-menu-toggle {
  min-width: 96px;
  padding: 0 15px;
  border-color: rgba(23, 63, 53, .35) !important;
  border-radius: 999px !important;
  color: #fffdf8 !important;
  background: linear-gradient(135deg, #173f35, #276854) !important;
  box-shadow: 0 10px 24px rgba(20, 67, 55, .18) !important;
}

.main-menu-toggle:hover {
  background: linear-gradient(135deg, #225849, #347b62) !important;
}

.main-menu-toggle .menu-lines {
  width: 18px;
}

.about-toggle {
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  position: relative !important;
}

.about-toggle .about-chevron {
  display: none !important;
}

.about-toggle > svg:first-child {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
}

.info-page-content article > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(123, 97, 185, .22);
  border-radius: 999px;
  background: #fbf8ff;
  line-height: 1;
}

.mission-groups {
  margin-bottom: 96px !important;
}

.mission-actions button {
  display: none !important;
}

.mission-auto-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lesson-section-page .section-step-nav a,
.section-step-nav a {
  padding: 15px 17px !important;
}

.lesson-section-page .section-step-nav a span,
.section-step-nav a span {
  margin-bottom: 7px !important;
}

.problem-detail-formula code {
  display: block;
  overflow-x: auto;
  color: #102c2a;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: .98rem;
  font-weight: 750;
  line-height: 1.8;
  text-align: left;
  white-space: normal;
}

.team-avatar-photo {
  overflow: hidden;
  padding: 0 !important;
  background: #eef2ec;
}

.team-avatar-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 900px) {
  .phyastro-home-classic .home-discovery {
    grid-template-columns: 1fr;
  }

  .phyastro-home-classic .home-hero.phyastro-hero-classic .hero-copy {
    align-items: flex-start;
    text-align: left;
  }

  .phyastro-home-classic .home-hero.phyastro-hero-classic .hero-lede {
    text-align: left;
  }
}

/* ======================================================================
   REVIZIE 23 SEPTEMBRIE 2026 — RELATIVITATE · STRAT PARIS
   Păstrat strict sub body[data-chapter="relativitate"]. Clasele grafice,
   canvas-urile și scenele interactive nu sunt repoziționate aici.
   ====================================================================== */
body[data-chapter="relativitate"] {
  --rel-paris-ink: #19342f;
  --rel-paris-muted: #66736e;
  --rel-paris-green: #204f45;
  --rel-paris-green-soft: #edf3ee;
  --rel-paris-gold: #ad7e32;
  --rel-paris-gold-soft: #f7edd8;
  --rel-paris-paper: #fffdf8;
  --rel-paris-cream: #f7f0e3;
  --rel-paris-line: rgba(32, 79, 69, .18);
  --rel-paris-line-strong: rgba(32, 79, 69, .30);
  --rel-paris-shadow: 0 16px 38px rgba(28, 53, 47, .075);
}

body[data-chapter="relativitate"] .editable-lesson-content {
  width: min(100%, 1060px) !important;
  max-width: 1060px !important;
  margin-inline: auto !important;
  color: var(--rel-paris-ink);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

body[data-chapter="relativitate"] .editable-lesson-content,
body[data-chapter="relativitate"] .editable-lesson-content * {
  box-sizing: border-box;
}

body[data-chapter="relativitate"] .editable-lesson-content :is(h1, h2, h3) {
  color: #153b33;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: 1.18;
  text-wrap: balance;
}

body[data-chapter="relativitate"] .editable-lesson-content :is(
  .rr-kicker,
  .rm-kicker,
  .lc-kicker,
  .vr-kicker,
  .dr-kicker,
  .drm-kicker,
  .ltp-kicker,
  .me-kicker,
  .me10-kicker,
  .rvf-kicker,
  .rv8-kicker,
  .rie-kicker,
  .ripe-kicker,
  .rdgp-kicker,
  .einstein-kicker,
  .lorentz-kicker,
  .rel-kicker,
  .rel-lc-kicker,
  .eyebrow,
  .em-eyebrow,
  .lc-eyebrow,
  .lf-eyebrow,
  .lp-eyebrow,
  .ltz-eyebrow,
  .me-eyebrow,
  .relativity-phenomenon__kicker
) {
  color: #79551f !important;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif !important;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

body[data-chapter="relativitate"] .editable-lesson-content :is(
  .rr-hero,
  .rm-hero,
  .lc-hero,
  .vr-hero,
  .dr-hero,
  .drm-hero,
  .ltp-hero,
  .ltz-hero,
  .me-hero,
  .me10-hero,
  .rvf-hero,
  .rv8-hero,
  .rie-hero,
  .ripe-hero,
  .rdgp-hero,
  .einstein-hero,
  .lorentz-hero,
  .lp-hero,
  .rel-hero,
  .rel-lc-hero
) {
  border: 1px solid rgba(173, 126, 50, .34) !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #fffdf8 0%, #f7f0e3 72%, #edf3ee 100%) !important;
  box-shadow: var(--rel-paris-shadow) !important;
  color: var(--rel-paris-ink) !important;
}

body[data-chapter="relativitate"] .editable-lesson-content :is(
  .rr-section,
  .rm-section,
  .lc-section,
  .vr-section,
  .dr-section,
  .drm-section,
  .ltp-section,
  .lorentz-section,
  .me-section,
  .rvf-section,
  .rie-section,
  .ripe-section,
  .rdgp-section,
  .tdp-section,
  .phen-section,
  .einstein-section,
  .em-section,
  .lf-section
) {
  border-color: var(--rel-paris-line) !important;
  border-radius: 12px !important;
  background-color: rgba(255, 253, 248, .96) !important;
  box-shadow: 0 9px 24px rgba(28, 53, 47, .055) !important;
  color: var(--rel-paris-ink) !important;
}

body[data-chapter="relativitate"] .editable-lesson-content :is(
  .rr-section,
  .rm-section,
  .lc-section,
  .vr-section,
  .dr-section,
  .drm-section,
  .ltp-section,
  .lorentz-section,
  .me-section,
  .rvf-section,
  .rie-section,
  .ripe-section,
  .rdgp-section,
  .tdp-section
) > :is(p, ul, ol) {
  color: var(--rel-paris-ink);
}

body[data-chapter="relativitate"] .editable-lesson-content :is(
  .rr-section,
  .rm-section,
  .lc-section,
  .vr-section,
  .dr-section,
  .drm-section,
  .ltp-section,
  .lorentz-section,
  .me-section,
  .rvf-section,
  .rie-section,
  .ripe-section,
  .rdgp-section,
  .tdp-section
) + :is(
  .rr-section,
  .rm-section,
  .lc-section,
  .vr-section,
  .dr-section,
  .drm-section,
  .ltp-section,
  .lorentz-section,
  .me-section,
  .rvf-section,
  .rie-section,
  .ripe-section,
  .rdgp-section,
  .tdp-section
) {
  margin-top: 22px;
}

body[data-chapter="relativitate"] .editable-lesson-content :is(
  .rr-card,
  .rm-symbol-card,
  .rm-vector-card,
  .lc-card,
  .lc-opening-card,
  .lc-relation-card,
  .vr-opening-card,
  .vr-relation-card,
  .dr-card,
  .dr-astro-card,
  .lorentz-card,
  .ltp-opening-card,
  .me-card,
  .me10-card,
  .rvf-frame-card,
  .rvf-compare-card,
  .rvf-why-card,
  .rv8-card,
  .rie-speed-card,
  .ripe-bridge,
  .rdgp-card,
  .rel-lc-card,
  .rel-lc-definition-card,
  .section-card,
  .mini-card,
  .result-card
) {
  border-color: var(--rel-paris-line) !important;
  border-radius: 10px !important;
  background-color: var(--rel-paris-paper) !important;
  box-shadow: none !important;
  color: var(--rel-paris-ink) !important;
}

body[data-chapter="relativitate"] .editable-lesson-content :is(
  .rr-note,
  .rm-note,
  .lc-note,
  .lc-precision-note,
  .vr-note,
  .dr-note,
  .dr-rigour,
  .drm-rigour,
  .ltp-note,
  .ltp-rigour,
  .ltz-note,
  .lorentz-display-note,
  .lorentz-source-note,
  .me-formula-note,
  .me-modern-note,
  .me-reading-note,
  .me10-note,
  .rvf-diagram-note,
  .rvf-rigour,
  .rv8-note,
  .rie-warning,
  .ripe-source-note,
  .rdgp-rigour,
  .rel-lc-scientific-note,
  .rel-lc-source-note,
  .editor-note,
  .lesson-note,
  .quiet-note,
  .test-note,
  .warning,
  .warning-note
) {
  border: 1px solid rgba(173, 126, 50, .30) !important;
  border-left: 4px solid var(--rel-paris-gold) !important;
  border-radius: 8px !important;
  background: var(--rel-paris-gold-soft) !important;
  box-shadow: none !important;
  color: #4e3b20 !important;
}

body[data-chapter="relativitate"] .editable-lesson-content :is(
  .lc-result,
  .vr-result,
  .drm-result,
  .ltp-result,
  .lorentz-result,
  .lf-result,
  .lp-result,
  .rvf-result,
  .rdgp-result,
  .em-result,
  .ripe-experiment-result
) {
  border-color: var(--rel-paris-line-strong) !important;
  border-radius: 9px !important;
  background: var(--rel-paris-green-soft) !important;
  box-shadow: none !important;
  color: #173f37 !important;
}

/* Formulele primesc același „caiet” deschis la culoare. Sunt vizate doar
   containere matematice cunoscute; diagramele și elementele SVG rămân intacte. */
body[data-chapter="relativitate"] .editable-lesson-content :is(
  div[role="math"],
  div[data-relativity-math],
  div[data-dr-math],
  .rr-equation,
  .rm-formula,
  .rm-mini-formula,
  .lc-equation,
  .lc-mini-formula,
  .vr-equation,
  .em-eq,
  .dr-equation,
  .drm-equation,
  .drm-step-formula,
  .lorentz-equation,
  .lorentz-math-block,
  .lp-equation,
  .lp-invariant-equation,
  .ltp-equation,
  .ltp-dynamic-equation,
  .ltz-equation,
  .me-equation,
  .me10-math,
  .me10-em-formula,
  .rvf-equation,
  .rvf-mini-equation,
  .rvf-long-formula,
  .rvf-math,
  .rv8-eq,
  .rie-math,
  .ripe-eq,
  .lf-equation,
  .tdp-equation,
  .einstein-math,
  .math-block,
  .remath,
  .formula-block
) {
  max-width: 100% !important;
  margin-block: 15px !important;
  padding: 16px 18px !important;
  overflow-x: auto !important;
  overflow-y: hidden;
  border: 1px solid rgba(32, 79, 69, .22) !important;
  border-left: 4px solid var(--rel-paris-gold) !important;
  border-radius: 8px !important;
  background: #fbf7ed !important;
  box-shadow: none !important;
  color: #153b33 !important;
  text-align: center;
  scrollbar-color: rgba(32, 79, 69, .40) transparent;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

body[data-chapter="relativitate"] .editable-lesson-content :is(
  .dr-main-equation,
  .drm-main-equation,
  .lc-main-equation,
  .vr-main-equation,
  .lorentz-main-equation,
  .ltp-main-equation,
  .me-formula-main,
  .me10-formula-card,
  .rvf-main-formula,
  .rie-big-formula,
  .ripe-final-formula,
  .formula-block__main
) {
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--rel-paris-line) !important;
  border-radius: 10px !important;
  background: var(--rel-paris-paper) !important;
  box-shadow: none !important;
  color: var(--rel-paris-ink) !important;
}

body[data-chapter="relativitate"] .editable-lesson-content mjx-container[jax="CHTML"][display="true"] {
  width: max-content;
  min-width: 100%;
  max-width: none;
  margin: .15rem auto !important;
  padding-block: .12rem;
  color: inherit;
}

body[data-chapter="relativitate"] .editable-lesson-content :is(
  .rr-math-fallback,
  .lorentz-fallback,
  .dr-fallback
) {
  color: inherit !important;
  font-family: Georgia, "Times New Roman", serif !important;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: normal !important;
}

body[data-chapter="relativitate"] .editable-lesson-content :is(table, .formula-table) {
  border-color: var(--rel-paris-line) !important;
  background: var(--rel-paris-paper);
}

body[data-chapter="relativitate"] .editable-lesson-content :is(th, .formula-table th) {
  background: var(--rel-paris-green-soft) !important;
  color: #173f37 !important;
}

body[data-chapter="relativitate"] .editable-lesson-content :is(a, button, input, select) {
  accent-color: var(--rel-paris-green);
}

body[data-chapter="relativitate"] .editable-lesson-content :is(a, button, input, select):focus-visible {
  outline: 3px solid rgba(173, 126, 50, .42) !important;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  body[data-chapter="relativitate"] .editable-lesson-content {
    width: 100% !important;
    font-size: 1rem;
  }

  body[data-chapter="relativitate"] .editable-lesson-content :is(
    .rr-hero,
    .rm-hero,
    .lc-hero,
    .vr-hero,
    .dr-hero,
    .drm-hero,
    .ltp-hero,
    .ltz-hero,
    .me-hero,
    .me10-hero,
    .rvf-hero,
    .rv8-hero,
    .rie-hero,
    .ripe-hero,
    .rdgp-hero,
    .einstein-hero,
    .lorentz-hero,
    .lp-hero,
    .rel-hero,
    .rel-lc-hero
  ) {
    border-radius: 11px !important;
  }

  body[data-chapter="relativitate"] .editable-lesson-content :is(
    div[role="math"],
    div[data-relativity-math],
    div[data-dr-math],
    .rr-equation,
    .rm-formula,
    .lc-equation,
    .vr-equation,
    .em-eq,
    .drm-equation,
    .lorentz-equation,
    .ltp-equation,
    .ltz-equation,
    .me-equation,
    .me10-math,
    .rvf-equation,
    .rv8-eq,
    .rie-math,
    .ripe-eq,
    .math-block
  ) {
    padding: 13px 14px !important;
    text-align: left;
  }

  body[data-chapter="relativitate"] .editable-lesson-content mjx-container[jax="CHTML"][display="true"] {
    font-size: .94rem !important;
  }
}

/* Probleme · blocuri matematice finale (după toate temele istorice). */
.problem-detail-formula {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(32, 79, 69, .25);
  border-left: 4px solid #a77d45;
  border-radius: 8px;
  background: #fffdf7;
  font-size: clamp(1rem, 1.7vw, 1.26rem);
}

.problem-detail-formula .problem-formula-line {
  max-width: 100%;
  padding: 17px 20px;
  overflow-x: auto;
  overflow-y: hidden;
  color: #173f37;
  text-align: center;
  white-space: normal;
}

.problem-detail-formula .problem-formula-line + .problem-formula-line {
  border-top: 1px solid rgba(32, 79, 69, .13);
}

.problem-detail-formula mjx-container[jax="CHTML"][display="true"] {
  width: max-content;
  min-width: 100%;
  max-width: none;
  margin: 0 auto !important;
  padding: .12rem 0;
}

@media (max-width: 620px) {
  .problem-detail-formula .problem-formula-line {
    padding: 14px 13px;
    text-align: left;
  }

  .problem-detail-formula mjx-container[jax="CHTML"][display="true"] {
    min-width: max-content;
    font-size: .94rem !important;
  }
}
