@font-face { font-family: "DM Sans"; src: url(fonts/DMSans-Regular-static.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/DMSans-Bold-static.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(fonts/Fraunces-Light-static.ttf) format("truetype"); font-weight: 300; font-display: swap; }

:root {
  --cream: #FFF6EB;
  --white: #FFFFFF;
  --ink: #63563D;
  --ink-soft: #8A7C62;
  --gold: #CC9F57;
  --gold-dark: #AF801C;
  --rule: #EFE3CF;
  --gradient: linear-gradient(115deg, #EFBC31 0%, #564723 44.6%, #AF801C 100%);
  --error: #A8432F;
  --radius-card: 12px 12px 34px 34px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif; font-size: 16px; line-height: 1.55;
}
a { color: var(--gold-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 300; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(30px, 6vw, 42px); color: var(--ink); }
h2 { font-size: 26px; color: var(--gold-dark); }
h3 { font-size: 20px; color: var(--ink); }
p { margin: 0 0 12px; }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 520px; }

/* ——— Antet ——— */
.site-head { padding: 22px 0 8px; text-align: center; }
.site-head .logo { display: inline-block; }
.site-head .logo img { width: 210px; height: auto; margin: 0 auto; }
.site-head .site-tag {
  display: block; margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-dark);
}
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.nav a, .nav button {
  display: inline-block; padding: 7px 14px; border-radius: 999px; border: 0; background: transparent;
  color: var(--ink); text-decoration: none; font: inherit; font-size: 14px; cursor: pointer;
}
.nav a:hover, .nav button:hover { background: var(--white); }
.nav a.on { background: var(--white); color: var(--gold-dark); font-weight: 700; }
.nav .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: var(--gold); color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.nav form { margin: 0; }

.page-title { text-align: center; margin: 26px 0 22px; }
.page-title p { color: var(--ink-soft); margin: 10px auto 0; max-width: 520px; }
.dash { display: block; width: 38px; height: 1px; background: var(--gold); margin: 14px auto 0; border: 0; }

main { padding-bottom: 60px; }
.site-foot { text-align: center; font-size: 13px; color: var(--ink-soft); padding: 24px 16px 36px; }
.site-foot img { width: 14px; display: inline-block; vertical-align: -2px; margin-right: 6px; }

/* ——— Carduri ——— */
.card { background: var(--white); border-radius: var(--radius-card); padding: 24px 22px 26px; margin-bottom: 18px; }
.card.outline { background: transparent; border: 1px solid var(--gold); }
.card > header { margin-bottom: 14px; }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }

/* ——— Formulare ——— */
label { display: block; font-weight: 700; font-size: 14px; margin: 0 0 6px; }
.field { margin-bottom: 18px; }
.hint { font-size: 13px; color: var(--ink-soft); margin-top: 4px; font-weight: 400; }
input[type=email], input[type=text], input[type=url], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink); background: var(--cream);
  border: 1px solid var(--rule); border-radius: 10px; outline: none;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(204,159,87,.18); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  font: inherit; font-weight: 700; font-size: 15px; letter-spacing: .02em;
  background: var(--gradient); color: #fff; transition: filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--gold-dark); border: 1px solid var(--gold); }
.btn.ghost:hover { background: var(--white); filter: none; }
.btn.small { padding: 7px 14px; font-size: 13px; }
.btn.link { background: none; color: var(--ink-soft); padding: 6px 4px; font-weight: 400; text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.inline-form { display: inline; margin: 0; }

/* Alegeri tip „pastilă” (etichete, produse, moment) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--rule);
  background: var(--cream); font-size: 14px; font-weight: 400; cursor: pointer; user-select: none;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(204,159,87,.35); }

.score { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.score .chip span { display: block; text-align: center; padding: 10px 4px; border-radius: 12px; }
.score .chip b { display: block; font-family: "Fraunces", serif; font-weight: 300; font-size: 24px; line-height: 1; color: var(--gold); }
.score .chip input:checked + span b { color: #fff; }
.score .chip small { display: block; font-size: 11px; margin-top: 4px; }

.product-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 340px; overflow: auto; padding: 2px; }
.product-pick .chip span { display: flex; align-items: center; gap: 8px; border-radius: 12px; padding: 8px; height: 100%; font-size: 13px; line-height: 1.3; }
.product-pick img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; flex: none; background: var(--cream); }

/* ——— Mesaje ——— */
.flash { padding: 12px 16px; border-radius: 12px; margin: 0 0 18px; background: var(--white); border-left: 3px solid var(--gold); font-size: 15px; }
.flash.error, .errors { border-left-color: var(--error); color: var(--error); }
.errors { padding: 12px 16px; border-radius: 12px; background: #fff; border-left: 3px solid var(--error); margin-bottom: 18px; }
.errors ul { margin: 0; padding-left: 18px; }

/* ——— Jurnal ——— */
.entry-list { list-style: none; padding: 0; margin: 0; }
.entry-link { display: block; text-decoration: none; color: inherit; }
.entry-link:hover .card { box-shadow: 0 0 0 1px var(--gold); }
.entry-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.entry-date { font-family: "Fraunces", serif; font-weight: 300; font-size: 22px; color: var(--ink); line-height: 1.2; }
.entry-date::first-letter { text-transform: uppercase; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--cream); font-size: 12px; font-weight: 700; color: var(--gold-dark); }
.pill.new { background: var(--gradient); color: #fff; }
.pill.wait { background: transparent; border: 1px solid var(--rule); color: var(--ink-soft); font-weight: 400; }
.entry-body { white-space: pre-wrap; margin: 12px 0 0; }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--rule); font-size: 13px; }
.score-badge { font-size: 14px; }
.score-badge b { font-family: "Fraunces", serif; font-weight: 300; font-size: 20px; color: var(--gold); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.thumbs a, .thumbs .thumb { display: block; width: 92px; height: 92px; border-radius: 10px; overflow: hidden; background: var(--cream); position: relative; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .thumb button { position: absolute; right: 4px; top: 4px; border: 0; border-radius: 999px; background: rgba(99,86,61,.85); color: #fff; font-size: 12px; padding: 2px 8px; cursor: pointer; }
.used { margin-top: 14px; font-size: 14px; }
.used b { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin-right: 6px; }

.section-sep { border: 0; border-top: 1px solid var(--rule); margin: 20px 0; }

/* Răspunsul specialistei */
.reply { border-radius: var(--radius-card); border: 1px solid var(--gold); padding: 20px 20px 22px; margin-top: 16px; background: var(--cream); }
.reply .who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; }
.reply .who strong { white-space: nowrap; }
.reply .who img { width: 16px; }
.reply .who strong { font-family: "Fraunces", serif; font-weight: 300; font-size: 19px; color: var(--gold-dark); }
.reply .body { white-space: pre-wrap; }
.recs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.rec { display: flex; gap: 12px; background: #fff; border-radius: 14px; padding: 12px; text-decoration: none; color: inherit; align-items: center; }
.rec:hover { box-shadow: 0 0 0 1px var(--gold); }
.rec img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; background: var(--cream); }
.rec .k { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }
.rec .t { font-weight: 700; font-size: 14px; line-height: 1.3; }
.rec .n { font-size: 13px; color: var(--ink-soft); }
.rec .go { font-size: 13px; color: var(--gold-dark); }

.empty { text-align: center; padding: 40px 22px; }
.empty .mark { width: 22px; margin: 0 auto 14px; }

/* ——— Admin ——— */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { background: #fff; border-radius: 14px; padding: 14px 16px; text-align: center; }
.stat b { display: block; font-family: "Fraunces", serif; font-weight: 300; font-size: 32px; color: var(--gold-dark); line-height: 1.1; }
.stat span { font-size: 13px; color: var(--ink-soft); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); padding: 8px 8px; border-bottom: 1px solid var(--rule); }
.table td { padding: 10px 8px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table a { text-decoration: none; font-weight: 700; }
.table .off td { opacity: .5; }
.table-wrap { overflow-x: auto; }
.pending-list { list-style: none; padding: 0; margin: 0; }
.pending-list li { border-top: 1px solid var(--rule); }
.pending-list li:first-child { border-top: 0; }
.pending-list a { display: block; padding: 12px 0; text-decoration: none; color: inherit; }
.pending-list a:hover .who { color: var(--gold-dark); }
.pending-list .who { font-weight: 700; }
.search { display: flex; gap: 8px; margin-bottom: 14px; }
.search input { flex: 1; }
.rec-row { display: grid; grid-template-columns: 2fr 1.4fr 2fr; gap: 8px; margin-bottom: 8px; }
@media (max-width: 640px) { .rec-row { grid-template-columns: 1fr; padding-bottom: 10px; border-bottom: 1px dashed var(--rule); } }
details.reply-form { margin-top: 16px; }
details.reply-form summary { cursor: pointer; list-style: none; display: inline-flex; }
details.reply-form summary::-webkit-details-marker { display: none; }
details.reply-form[open] summary { display: none; }
.client-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .card { padding: 20px 16px 22px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stat b { font-size: 26px; }
  .score .chip small { font-size: 10px; }
}

/* Bifă vizibilă (acord, preferințe) */
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--gold-dark); }
