/* Freacă Menta — stiluri (izolate sub .fm-app ca să nu intre în conflict cu tema). */
.fm-app {
  --fm-green: #2e8b57;
  --fm-green-dark: #1f6b41;
  --fm-green-soft: #e6f6ea;
  --fm-mint: #9be3b0;
  --fm-ink: #183b2a;
  --fm-muted: #5b7266;
  --fm-card: #ffffff;
  --fm-bg: #f2faf4;
  --fm-border: #d3eadb;
  --fm-warn: #fff4d6;
  --fm-warn-ink: #7a5600;
  --fm-err: #fde7e7;
  --fm-err-ink: #8a1f1f;
  --fm-water: #2f8fe0;
  --fm-radius: 18px;
  font-family: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--fm-ink);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.45;
  box-sizing: border-box;
}
.fm-app *, .fm-app *::before, .fm-app *::after { box-sizing: border-box; }
.fm-app h2, .fm-app h3, .fm-app h4, .fm-app button, .fm-app input, .fm-app label { font-family: inherit; }
.fm-app [hidden] { display: none !important; }
.fm-app button, .fm-app .fm-btn {
  font: inherit; font-weight: 800; border: 0; border-radius: 999px; cursor: pointer;
  padding: 12px 22px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--fm-green); color: #fff; text-decoration: none; transition: transform .12s, background .2s, opacity .2s;
}
.fm-app button:hover, .fm-app .fm-btn:hover { background: var(--fm-green-dark); color: #fff; }
.fm-app button:active, .fm-app .fm-btn:active { transform: scale(.97); }
.fm-app button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.fm-app .fm-btn--ghost { background: transparent; color: var(--fm-green-dark); box-shadow: inset 0 0 0 2px var(--fm-green); }
.fm-app .fm-btn--ghost:hover { background: var(--fm-green-soft); color: var(--fm-green-dark); }
.fm-app .fm-btn--danger { background: #c0392b; }
.fm-app .fm-btn--danger:hover { background: #962d22; }
.fm-app .fm-btn--water { background: var(--fm-water); }
.fm-app .fm-btn--water:hover { background: #1f74bd; }
.fm-app .fm-link { color: var(--fm-green-dark); font-weight: 700; }

/* Bannere */
.fm-banner { border-radius: 14px; padding: 12px 16px; margin: 0 0 12px; font-weight: 600; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fm-banner form { margin: 0; }
.fm-banner button { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.fm-banner--info { background: var(--fm-green-soft); color: var(--fm-green-dark); }
.fm-banner--warn { background: var(--fm-warn); color: var(--fm-warn-ink); }
.fm-banner--warn button { background: var(--fm-warn-ink); }
.fm-banner--err { background: var(--fm-err); color: var(--fm-err-ink); }

/* Statistici */
.fm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.fm-stat { background: var(--fm-card); border: 1px solid var(--fm-border); border-radius: 14px; padding: 10px 6px; text-align: center; }
.fm-stat b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; color: var(--fm-green-dark); line-height: 1.15; }
.fm-stat span { font-size: 12px; color: var(--fm-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }

/* Scena mentei */
.fm-stage {
  position: relative; border-radius: var(--fm-radius); overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #ffffff 0%, #eaf8ee 55%, #d5f0de 100%);
  border: 1px solid var(--fm-border); touch-action: none; user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none; cursor: grab; aspect-ratio: 1 / 1; max-height: 70vh; width: 100%;
}
.fm-stage:active { cursor: grabbing; }
.fm-mint { position: absolute; inset: 4% 8% 2%; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.fm-mint svg { width: 100%; height: 100%; overflow: visible; }
.fm-mint .fm-plant { transform-origin: 160px 262px; animation: fm-sway 5s ease-in-out infinite; }
.fm-mint.is-rubbing .fm-plant { animation: fm-wiggle .32s ease-in-out; }
.fm-mint.is-growing svg { animation: fm-grow .8s cubic-bezier(.2,1.6,.4,1); transform-origin: 50% 95%; }
.fm-hint {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%); background: rgba(255,255,255,.9);
  border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 700; color: var(--fm-muted);
  pointer-events: none; white-space: nowrap; transition: opacity .6s;
}
.fm-hint.is-hidden { opacity: 0; }
.fm-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.fm-plus { position: absolute; font-weight: 900; color: var(--fm-green); font-size: 20px; text-shadow: 0 1px 0 #fff; animation: fm-float .9s ease-out forwards; }
.fm-scent { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle, #b9f5c8, rgba(155,227,176,0)); animation: fm-scent 1.1s ease-out forwards; }
.fm-drop-fall { position: absolute; left: 50%; top: -40px; font-size: 38px; transform: translateX(-50%); animation: fm-drop 0.75s ease-in forwards; }
.fm-toast {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); background: var(--fm-ink); color: #fff;
  padding: 10px 18px; border-radius: 999px; font-weight: 800; font-size: 15px; white-space: nowrap; animation: fm-toast 2.4s ease forwards; z-index: 3;
}
.fm-overlay {
  position: absolute; inset: auto 12px 12px; background: rgba(255,255,255,.96); border-radius: 16px; padding: 16px;
  box-shadow: 0 6px 24px rgba(24,59,42,.15); text-align: center; z-index: 4;
}
.fm-overlay p { margin: 0 0 10px; font-weight: 700; }
.fm-overlay .fm-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* Panou */
.fm-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.fm-card { background: var(--fm-card); border: 1px solid var(--fm-border); border-radius: 16px; padding: 14px; }
.fm-card h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--fm-muted); }
.fm-card--wide { grid-column: 1 / -1; }
.fm-bar { height: 14px; background: #e3efe7; border-radius: 999px; overflow: hidden; }
.fm-bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #5fd0ff, var(--fm-water)); border-radius: inherit; transition: width .25s; }
.fm-bar--happy > i { background: linear-gradient(90deg, #f4b860, #8bd46e, #2e8b57); }
.fm-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; font-weight: 700; flex-wrap: wrap; }
.fm-drops { font-size: 22px; font-weight: 900; color: var(--fm-water); font-variant-numeric: tabular-nums; }
.fm-small { font-size: 13px; color: var(--fm-muted); font-weight: 600; }

/* Tabele de top */
.fm-board { background: var(--fm-card); border: 1px solid var(--fm-border); border-radius: var(--fm-radius); padding: 14px; }
.fm-tabs { display: flex; gap: 6px; background: var(--fm-green-soft); padding: 5px; border-radius: 999px; margin-bottom: 12px; }
.fm-tabs label { flex: 1; text-align: center; padding: 9px 10px; border-radius: 999px; font-weight: 800; cursor: pointer; color: var(--fm-green-dark); }
.fm-tab-input { position: absolute; opacity: 0; pointer-events: none; }
.fm-tabpanel { display: none; }
#fm-t-week:checked ~ .fm-tabs label[for="fm-t-week"],
#fm-t-month:checked ~ .fm-tabs label[for="fm-t-month"],
#fm-t-login:checked ~ .fm-tabs label[for="fm-t-login"],
#fm-t-register:checked ~ .fm-tabs label[for="fm-t-register"] { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
#fm-t-week:checked ~ .fm-tabpanel--week,
#fm-t-month:checked ~ .fm-tabpanel--month,
#fm-t-login:checked ~ .fm-tabpanel--login,
#fm-t-register:checked ~ .fm-tabpanel--register { display: block; }
.fm-tab-input:focus-visible ~ .fm-tabs { outline: 2px solid var(--fm-green); outline-offset: 2px; }
.fm-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fm-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--fm-muted); padding: 6px 8px; border-bottom: 2px solid var(--fm-border); }
.fm-table td { padding: 9px 8px; border-bottom: 1px solid #eef5f0; font-weight: 600; }
.fm-table td:first-child { width: 52px; font-weight: 900; color: var(--fm-muted); }
.fm-table td:last-child, .fm-table th:last-child { text-align: right; }
.fm-table tr.is-me td { background: #fff7d1; }
.fm-table tr:nth-child(1) td:first-child { color: #d4a017; }
.fm-table tr:nth-child(2) td:first-child { color: #8f9aa3; }
.fm-table tr:nth-child(3) td:first-child { color: #b87333; }
.fm-medal { font-size: 18px; }
.fm-me { margin-top: 10px; padding: 10px 12px; background: #fff7d1; border-radius: 12px; font-weight: 700; }
.fm-empty { text-align: center; color: var(--fm-muted); padding: 20px 8px; font-weight: 600; }
.fm-section-title { font-size: 20px; margin: 18px 0 10px; }
.fm-champions { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fm-champions li { display: flex; justify-content: space-between; gap: 10px; background: var(--fm-green-soft); padding: 10px 14px; border-radius: 12px; font-weight: 700; }
.fm-winner-kind { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #fff; color: var(--fm-green-dark); white-space: nowrap; }

/* Formulare cont */
.fm-form { display: grid; gap: 12px; }
.fm-field label { display: block; font-weight: 800; margin-bottom: 4px; font-size: 14px; }
.fm-field input[type=text], .fm-field input[type=email], .fm-field input[type=tel], .fm-field input[type=password], .fm-field input[type=date] {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--fm-border); background: #fff; color: var(--fm-ink); min-height: 48px;
}
.fm-field input:focus { outline: none; border-color: var(--fm-green); }
.fm-field.has-error input { border-color: #d9534f; }
.fm-field .fm-err { color: var(--fm-err-ink); font-size: 13px; font-weight: 700; margin-top: 4px; }
.fm-field .fm-help { color: var(--fm-muted); font-size: 13px; margin-top: 4px; }
.fm-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 600; }
.fm-check input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--fm-green); }
.fm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.fm-profile dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 14px; }
.fm-profile dt { color: var(--fm-muted); font-weight: 700; }
.fm-profile dd { margin: 0; font-weight: 700; }
.fm-danger-zone { border-color: #f1c4c4; }

@keyframes fm-sway { 0%,100% { transform: rotate(-.8deg); } 50% { transform: rotate(.8deg); } }
@keyframes fm-wiggle { 0% { transform: rotate(0) scale(1); } 30% { transform: rotate(-3deg) scale(1.02, .98); } 65% { transform: rotate(2.5deg) scale(.99, 1.01); } 100% { transform: rotate(0) scale(1); } }
@keyframes fm-grow { 0% { transform: scale(.85); } 100% { transform: scale(1); } }
@keyframes fm-float { 0% { opacity: 1; transform: translate(-50%, 0) scale(.8); } 100% { opacity: 0; transform: translate(-50%, -60px) scale(1.2); } }
@keyframes fm-scent { 0% { opacity: .9; transform: translate(0,0) scale(.6); } 100% { opacity: 0; transform: translate(var(--dx, 10px), -70px) scale(2.2); } }
@keyframes fm-drop { 0% { top: -40px; opacity: 1; } 85% { top: 34%; opacity: 1; } 100% { top: 38%; opacity: 0; } }
@keyframes fm-toast { 0% { opacity: 0; transform: translate(-50%, 10px); } 12%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -6px); } }

@media (prefers-reduced-motion: reduce) {
  .fm-mint .fm-plant, .fm-mint.is-rubbing .fm-plant, .fm-mint.is-growing svg { animation: none; }
  .fm-scent { display: none; }
}
@media (max-width: 560px) {
  .fm-stats { grid-template-columns: repeat(2, 1fr); }
  .fm-stat b { font-size: 19px; }
  .fm-panel { grid-template-columns: 1fr; }
  .fm-stage { aspect-ratio: 4 / 5; }
  .fm-hint { font-size: 13px; }
  .fm-table td { padding: 8px 6px; }
}

/* Autentificare socială */
.fm-social { text-align: center; margin-bottom: 4px; }
.fm-social-title { margin: 0 0 10px; font-weight: 800; color: var(--fm-muted); }
.fm-social-buttons { display: grid; gap: 10px; }
.fm-app .fm-btn--google { background: #fff; color: #1f1f1f; box-shadow: inset 0 0 0 2px #dadce0; }
.fm-app .fm-btn--google:hover { background: #f7f8f8; color: #1f1f1f; }
.fm-app .fm-btn--facebook { background: #1877f2; color: #fff; }
.fm-app .fm-btn--facebook:hover { background: #0f63d1; color: #fff; }
.fm-social-note { margin: 10px 0 0; }
.fm-or { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--fm-muted); font-weight: 700; font-size: 14px; }
.fm-or::before, .fm-or::after { content: ""; flex: 1; height: 1px; background: var(--fm-border); }
.fm-app .fm-btn--tiktok { background: #000; color: #fff; }
.fm-app .fm-btn--tiktok:hover { background: #222; color: #fff; }
