/* apetisant.ro — tema noua (templates2/). Mobile-first.
   Identitate: coral (logo, actiuni) + albastru ardezie (navigatie, accent secundar). */

:root {
	--coral: #e0646b;
	--coral-deep: #b8434c;      /* text/link coral pe alb (AA) */
	--coral-soft: #fde4e3;
	--blush: #fff6f4;           /* fundalul paginii */
	--surface: #ffffff;
	--ink: #1e2940;
	--ink-2: #4a5671;
	--ink-3: #7a849a;
	--slate: #2f5ba3;
	--slate-soft: #e3e8f3;
	--line: #efe1df;
	--line-strong: #e2cfcc;
	--ok: #2f8a5b;
	--ok-soft: #e3f4ea;
	--warn-soft: #fff3d6;

	--r-sm: 8px;
	--r: 14px;
	--r-lg: 22px;
	--shadow: 0 1px 2px rgba(30, 41, 64, .06), 0 4px 14px rgba(184, 67, 76, .07);
	--shadow-lift: 0 2px 4px rgba(30, 41, 64, .08), 0 12px 28px rgba(184, 67, 76, .14);

	--f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--f-display: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--gutter: 16px;
	--tabbar-h: 62px;
}

/* ---------- baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--blush);
	color: var(--ink);
	font: 16px/1.5 var(--f-body);
	padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--coral-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
:focus-visible { outline: 3px solid rgba(47, 91, 163, .45); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, .h1, .h2, .h3 { font-family: var(--f-display); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1, .h1 { font-size: 1.6rem; font-weight: 800; }
h2, .h2 { font-size: 1.25rem; font-weight: 750; }
h3, .h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
small, .muted { color: var(--ink-3); font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- header ---------- */
.app-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.app-header__in {
	max-width: 1160px; margin: 0 auto;
	display: flex; align-items: center; gap: 12px;
	height: 56px; padding: 0 var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none !important; flex: none; }
.brand svg { width: 34px; height: 30px; display: block; }
.brand__word {
	font-family: var(--f-display); font-weight: 850; font-size: 1.28rem; letter-spacing: .02em;
	color: var(--coral);
}
.brand__word span { color: var(--slate); font-weight: 700; font-size: .78em; letter-spacing: 0; }
.app-nav { display: none; }
.app-header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang-switch { font-size: .82rem; font-weight: 600; color: var(--ink-2); padding: 6px 8px; border-radius: 999px; }
.lang-switch:hover { background: var(--slate-soft); text-decoration: none; }

@media (min-width: 960px) {
	.app-header__in { height: 66px; gap: 28px; }
	.brand svg { width: 40px; height: 36px; }
	.brand__word { font-size: 1.45rem; }
	.app-nav { display: flex; gap: 4px; }
	.app-nav a {
		color: var(--ink-2); font-weight: 600; font-size: .95rem;
		padding: 8px 12px; border-radius: 999px;
	}
	.app-nav a:hover { background: var(--slate-soft); color: var(--slate); text-decoration: none; }
	.app-nav a.is-active { color: var(--coral-deep); background: var(--coral-soft); }
}

/* ---------- tab bar (mobil) ---------- */
.tabbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
	display: grid; grid-template-columns: repeat(5, 1fr);
	height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
	padding-bottom: env(safe-area-inset-bottom);
	background: rgba(255, 255, 255, .97);
	border-top: 1px solid var(--line);
	box-shadow: 0 -6px 20px rgba(30, 41, 64, .05);
}
.tabbar a {
	position: relative;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	color: var(--ink-3); font-size: .7rem; font-weight: 600; text-decoration: none !important;
}
.tabbar svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.is-active { color: var(--coral-deep); }
.tabbar a.is-active svg { fill: var(--coral-soft); }
.tabbar .badge { position: absolute; top: 6px; left: calc(50% + 6px); }
@media (min-width: 960px) {
	body { padding-bottom: 0; }
	.tabbar { display: none; }
}

/* ---------- layout ---------- */
.layout {
	max-width: 1160px; margin: 0 auto;
	padding: 16px var(--gutter) 32px;
	display: grid; gap: 20px;
	grid-template-columns: minmax(0, 1fr);
}
.layout__main { min-width: 0; }
.layout__aside { min-width: 0; display: grid; gap: 16px; align-content: start; }
@media (min-width: 960px) {
	.layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding-top: 24px; }
}

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 16px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); }

/* ---------- carduri / panouri ---------- */
.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r);
	padding: 18px;
	box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }
.card--flush { padding: 0; overflow: hidden; }
.card__title { font-family: var(--f-display); font-weight: 750; font-size: 1.05rem; margin: 0 0 12px; color: var(--ink); }
.card__title--coral { color: var(--coral-deep); }
.section { margin: 0 0 28px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section__head h2 { margin: 0; }
.section__head a { font-weight: 600; font-size: .92rem; }

/* ---------- butoane ---------- */
.btn, .input_button, input[type=submit], input[type=button], button {
	-webkit-appearance: none; appearance: none;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 20px;
	border: 1px solid transparent; border-radius: 999px;
	background: var(--coral); color: #fff;
	font: 650 .97rem/1 var(--f-body);
	cursor: pointer; text-decoration: none !important;
	transition: background-color .15s, box-shadow .15s, transform .05s;
	white-space: nowrap;
}
.btn:hover, .input_button:hover, input[type=submit]:hover, button:hover { background: var(--coral-deep); }
.btn:active, .input_button:active, input[type=submit]:active, button:active { transform: translateY(1px); }
.btn--ghost { background: var(--surface); color: var(--coral-deep); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--coral-soft); }
.btn--slate { background: var(--slate); }
.btn--slate:hover { background: #244a88; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: .88rem; }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- formulare ---------- */
input[type=text], input[type=password], input[type=email], input[type=search], input[type=number], input[type=file], select, textarea, .input_text {
	font: 16px/1.35 var(--f-body); /* 16px: fara zoom pe iOS */
	color: var(--ink);
	background: #fff;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-sm);
	padding: 10px 12px;
	min-height: 44px;
	max-width: 100%;
}
input[type=file] { padding: 8px; }
textarea { width: 100%; min-height: 120px; resize: vertical; }
select {
	-webkit-appearance: none; appearance: none;
	padding-right: 34px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237a849a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(47, 91, 163, .18); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--coral); vertical-align: middle; margin: 0 6px 0 0; }
label { cursor: pointer; }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > label, .field__label { font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.field input[type=text], .field input[type=password], .field input[type=email], .field select, .field textarea { width: 100%; }
.field__hint { font-size: .82rem; color: var(--ink-3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inline { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 2px; font-weight: 500; color: var(--ink-2); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }

/* tabel de formular (eticheta | camp) -> stivuit pe mobil */
.ftable { width: 100%; border-collapse: collapse; }
.ftable th, .ftable td { text-align: left; vertical-align: top; padding: 8px 0; }
.ftable th { font-weight: 600; font-size: .9rem; color: var(--ink-2); padding-right: 14px; }
.ftable td input[type=text], .ftable td input[type=password], .ftable td select, .ftable td textarea { width: 100%; }
@media (max-width: 640px) {
	.ftable, .ftable tbody, .ftable tr, .ftable th, .ftable td { display: block; width: 100%; }
	.ftable th { padding: 10px 0 4px; }
	.ftable td { padding: 0 0 6px; }
}

/* ---------- grila de profile (elementul principal) ---------- */
.pgrid {
	display: grid; gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none; margin: 0; padding: 0;
}
@media (min-width: 560px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.pcard {
	position: relative; display: block;
	border-radius: var(--r);
	overflow: hidden;
	background: var(--slate-soft);
	aspect-ratio: 3 / 4;
	box-shadow: var(--shadow);
	text-decoration: none !important;
	transition: box-shadow .2s, transform .2s;
}
.pcard:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard__body {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 34px 12px 11px;
	background: linear-gradient(to top, rgba(22, 28, 46, .82), rgba(22, 28, 46, .35) 60%, rgba(22, 28, 46, 0));
	color: #fff;
}
.pcard__name { display: block; font-family: var(--f-display); font-weight: 750; font-size: 1rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard__meta { display: block; font-size: .8rem; opacity: .92; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard__badge { position: absolute; top: 10px; left: 10px; }
.pcard--nophoto img { object-fit: contain; padding: 20%; opacity: .6; }

/* ---------- lista de profile (rand cu poza mica) ---------- */
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.prow {
	display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
	padding: 10px; box-shadow: var(--shadow);
}
.prow__photo { width: 76px; height: 92px; border-radius: 10px; overflow: hidden; background: var(--slate-soft); display: block; }
.prow__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prow__name { font-family: var(--f-display); font-weight: 750; font-size: 1.02rem; color: var(--ink); }
.prow__meta { color: var(--ink-2); font-size: .88rem; }
.prow__text { color: var(--ink-2); font-size: .9rem; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prow__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.prow__actions a { font-size: .84rem; font-weight: 600; }
@media (min-width: 720px) {
	.prow { grid-template-columns: 96px minmax(0, 1fr) auto; }
	.prow__photo { width: 96px; height: 116px; }
	.prow__actions { margin-top: 0; flex-direction: column; align-items: flex-end; }
}

/* ---------- badge / chip ---------- */
.badge {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 999px; background: var(--coral); color: #fff;
	font-size: .7rem; font-weight: 700; line-height: 1;
}
.chip {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 4px 10px; border-radius: 999px;
	background: var(--slate-soft); color: var(--slate);
	font-size: .8rem; font-weight: 600;
}
.chip--coral { background: var(--coral-soft); color: var(--coral-deep); }
.chip--ok { background: var(--ok-soft); color: var(--ok); }
.dot-online { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #3cbf7a; box-shadow: 0 0 0 2px #fff; }

/* ---------- taburi sectiune (meniul membrilor) ---------- */
.tabs, #menu #level_1 {
	display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
	margin: 0 calc(-1 * var(--gutter)) 10px; padding: 2px var(--gutter);
}
.tabs::-webkit-scrollbar, #menu #level_1::-webkit-scrollbar, .subtabs::-webkit-scrollbar, #menu #level_2::-webkit-scrollbar { display: none; }
.tabs a, #menu .menu_active a, #menu .menu_passive a {
	flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px;
	border-radius: 999px; font-weight: 650; font-size: .9rem;
	color: var(--ink-2); background: var(--surface); border: 1px solid var(--line);
	text-decoration: none !important; white-space: nowrap;
}
.tabs a.is-active, #menu .menu_active a { background: var(--ink); border-color: var(--ink); color: #fff; }
.subtabs, #menu #level_2 {
	display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
	border-bottom: 1px solid var(--line); margin-bottom: 18px;
}
.subtabs a, #menu .sub_menu_active a, #menu .sub_menu_passive a {
	flex: none; display: inline-block; padding: 10px 12px; font-size: .9rem; font-weight: 600;
	color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px;
	text-decoration: none !important; white-space: nowrap;
}
.subtabs a.is-active, #menu .sub_menu_active a { color: var(--coral-deep); border-bottom-color: var(--coral); }
#menu .menu_active, #menu .menu_passive, #menu .sub_menu_active, #menu .sub_menu_passive { flex: none; }
@media (min-width: 960px) {
	.tabs, #menu #level_1 { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; }
}

/* ---------- paginare ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin: 18px 0; }
.pager a, .pager span {
	min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 999px; font-weight: 650; font-size: .92rem;
	background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none !important;
}
.pager a:hover { border-color: var(--coral); color: var(--coral-deep); }
.pager .is-current, .pager b { background: var(--coral); border-color: var(--coral); color: #fff; }

/* ---------- mesaje / alerte ---------- */
.alert { border-radius: var(--r); padding: 14px 16px; background: var(--slate-soft); color: var(--ink); border: 1px solid #d3dbec; }
.alert--ok { background: var(--ok-soft); border-color: #c4e6d2; }
.alert--warn { background: var(--warn-soft); border-color: #f2e0b0; }
.alert--error { background: var(--coral-soft); border-color: #f6c9c7; color: #7d2a31; }
.alert > :last-child { margin-bottom: 0; }
.empty { text-align: center; padding: 36px 16px; color: var(--ink-2); }
.empty .btn { margin-top: 12px; }

/* ---------- liste de mesaje (inbox) ---------- */
.mlist { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.mrow { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); }
.mrow:first-child { border-top: 0; }
.mrow__photo { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--slate-soft); display: block; }
.mrow__photo img { width: 100%; height: 100%; object-fit: cover; }
.mrow__from { font-weight: 650; color: var(--ink); }
.mrow__subject { color: var(--ink-2); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow__time { color: var(--ink-3); font-size: .78rem; text-align: right; }
.mrow.is-unread { background: #fffaf9; }
.mrow.is-unread .mrow__from::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); margin-right: 6px; vertical-align: middle; }

/* ---------- conversatie ---------- */
.thread { display: grid; gap: 10px; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.bubble--me { margin-left: auto; background: var(--coral-soft); border-color: #f6cfcd; }
.bubble__meta { font-size: .76rem; color: var(--ink-3); margin-top: 4px; }

/* ---------- profil ---------- */
.profile-hero { display: grid; gap: 16px; }
.profile-hero__photo { border-radius: var(--r-lg); overflow: hidden; background: var(--slate-soft); aspect-ratio: 3 / 4; position: relative; }
.profile-hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-hero__name { font-size: 1.75rem; margin: 0; }
.profile-hero__meta { color: var(--ink-2); margin: 4px 0 12px; }
.profile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.profile-actions .btn { width: 100%; }
@media (min-width: 720px) {
	.profile-hero { grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
	.profile-actions { display: flex; flex-wrap: wrap; }
	.profile-actions .btn { width: auto; }
}
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.thumbs a, .thumbs span { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--slate-soft); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; }
.facts > div { display: grid; grid-template-columns: 42% minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { color: var(--ink-3); font-size: .9rem; }
.facts dd { margin: 0; font-weight: 550; }
@media (min-width: 720px) { .facts { grid-template-columns: 1fr 1fr; column-gap: 28px; } .facts > div:nth-child(2) { border-top: 0; } }
.prose { color: var(--ink); line-height: 1.6; overflow-wrap: anywhere; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- galerie ---------- */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.gallery figure > a, .gallery figure > img { display: block; aspect-ratio: 1; background: var(--slate-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery figcaption { padding: 8px 10px; font-size: .85rem; color: var(--ink-2); }

/* ---------- tabel de date ---------- */
.dtable { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: .92rem; }
.dtable th { text-align: left; font-weight: 650; color: var(--ink-2); background: #fbf2f1; padding: 10px 12px; font-size: .85rem; }
.dtable td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
@media (max-width: 640px) {
	.dtable--stack thead { display: none; }
	.dtable--stack, .dtable--stack tbody, .dtable--stack tr, .dtable--stack td { display: block; width: 100%; }
	.dtable--stack tr { border-top: 1px solid var(--line); padding: 8px 0; }
	.dtable--stack tr:first-child { border-top: 0; }
	.dtable--stack td { border: 0; padding: 4px 12px; }
	.dtable--stack td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-3); font-size: .82rem; }
}

/* ---------- sidebar ---------- */
.side-title { font-family: var(--f-display); font-weight: 750; font-size: 1rem; margin: 0 0 12px; }
.promo { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; text-decoration: none !important; color: var(--ink); }
.promo img { width: 72px; height: 88px; object-fit: cover; border-radius: 10px; display: block; }
.promo b { font-family: var(--f-display); }
.linklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }

/* ---------- hero (prima pagina, vizitatori) ---------- */
.hero {
	position: relative; overflow: hidden;
	border-radius: var(--r-lg);
	padding: 24px 20px;
	background:
		radial-gradient(120% 90% at 100% 0%, rgba(224, 100, 107, .22), rgba(224, 100, 107, 0) 60%),
		radial-gradient(90% 80% at 0% 100%, rgba(47, 91, 163, .16), rgba(47, 91, 163, 0) 60%),
		#fff;
	border: 1px solid var(--line);
	margin-bottom: 24px;
}
.hero h1 { font-size: 1.85rem; font-weight: 850; max-width: 18ch; margin-bottom: 8px; }
.hero p { color: var(--ink-2); max-width: 46ch; }
.hero .qsearch { margin-top: 18px; }
@media (min-width: 720px) {
	.hero { padding: 36px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: center; }
	.hero h1 { font-size: 2.4rem; }
	.hero .qsearch { margin-top: 0; }
}
.qsearch { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.qsearch .field-row select { width: 100%; }

/* ---------- recomandari (linkuri keywords.deniro.ro) ---------- */
.reco { margin: 0 0 24px; }
.reco__title { font-family: var(--f-display); font-weight: 750; font-size: 1.05rem; margin: 0 0 10px; color: var(--ink); }
.reco__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .reco__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.reco__item {
	display: block; height: 100%;
	background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--coral);
	border-radius: var(--r-sm); padding: 12px 14px; box-shadow: var(--shadow);
	color: var(--ink-2); text-decoration: none !important; font-size: .88rem; line-height: 1.45;
	transition: border-color .15s, box-shadow .15s;
}
.reco__item:hover { box-shadow: var(--shadow-lift); border-left-color: var(--coral-deep); }
.reco__item strong { display: block; color: var(--coral-deep); font-size: .98rem; margin-bottom: 3px; font-family: var(--f-display); }
.reco--inline .reco__list { grid-template-columns: minmax(0, 1fr); }
.pgrid > .reco-cell { grid-column: 1 / -1; }
.reco--aside .reco__list { grid-template-columns: minmax(0, 1fr); }
.reco--raw table { width: 100% !important; border: 0 !important; }
.reco--raw td { display: block; padding: 4px 0; }

/* ---------- footer ---------- */
.app-footer { max-width: 1160px; margin: 0 auto; padding: 8px var(--gutter) 28px; color: var(--ink-3); font-size: .85rem; }
.app-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
.app-footer a { color: var(--ink-2); }

/* ---------- cookie ---------- */
.cookie-bar {
	position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom)); z-index: 70;
	display: none; align-items: center; gap: 12px;
	background: var(--ink); color: #fff; border-radius: var(--r); padding: 12px 14px;
	font-size: .85rem; line-height: 1.4; box-shadow: var(--shadow-lift);
	max-width: 560px; margin: 0 auto;
}
.cookie-bar.is-open { display: flex; }
.cookie-bar .btn { flex: none; min-height: 36px; background: #fff; color: var(--ink); }
@media (min-width: 960px) { .cookie-bar { bottom: 16px; } }

/* =====================================================================
   Compatibilitate: markup vechi (generat din .pml, page_no.php etc.)
   ===================================================================== */
.legacy table { max-width: 100%; }
.legacy table[width] { width: 100% !important; }
.legacy td { font-size: inherit; }
font { font-family: inherit !important; font-size: inherit !important; }
font[color] { color: inherit; }
center { text-align: center; }
.titlu, .title {
	display: block; font-family: var(--f-display); font-weight: 750; font-size: 1.25rem; color: var(--ink);
	background: none; padding: 0; margin: 0 0 12px; text-align: left;
}
.trth, .trth td { background: #fbf2f1; color: var(--ink-2); font-weight: 650; font-size: .85rem; }
.trtc, .trtc td, .trs, .trs td { background: #fff; }
.trtc td, .trs td { border-top: 1px solid var(--line); }
.ptext { color: var(--slate); font-weight: 650; }
.red { color: var(--coral-deep); }
.e, .s, .mn, .small { font-size: .85rem; }
.unread_msg { font-weight: 700; }
.w, .bw { color: #fff; }

/* selectoare pe un rand (ex. varsta 18 si 25) */
.inline select, .field .inline select { width: auto; flex: 1 1 0; min-width: 0; }
.inline { flex-wrap: nowrap; }

/* ---------- landing-uri SEO (poze/*.html, profile/*.html): tabelul vechi din cache -> carduri ---------- */
.landing > table { display: block; width: 100% !important; background: none !important; border: 0; }
.landing > table > tbody { display: grid; gap: 12px; }
.landing > table tr { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; box-shadow: var(--shadow); }
.landing > table tr:first-child { display: block; background: none; border: 0; box-shadow: none; padding: 0; }
.landing > table td { display: block; background: none !important; width: auto !important; padding: 0; border: 0; color: var(--ink-2); font-size: .92rem; overflow-wrap: anywhere; }
.landing > table td.trth a b { font-family: var(--f-display); font-size: 1rem; color: var(--ink); }
.landing > table td.trth img { width: 112px !important; height: auto; border-radius: 10px; display: block; }
.landing > table td.trth br { display: none; }
.landing > table td.trth a + br + br + a { display: block; margin-top: 8px; }
@media (min-width: 720px) { .landing > table tr { grid-template-columns: 150px minmax(0, 1fr); } .landing > table td.trth img { width: 150px !important; } }

/* ---------- completari (profil, liste) ---------- */
.btn[aria-disabled="true"], .btn.is-disabled { background: var(--slate-soft); color: var(--ink-3); border-color: transparent; cursor: not-allowed; pointer-events: none; }
.profile-hero__photo .empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.profile-hero__photo + .thumbs, .profile-hero__photo + .btn-row { margin-top: 10px; }
.prow__photo a { display: block; height: 100%; }
.prow__photo img[src*="default_photo"] { object-fit: contain; padding: 18%; opacity: .55; }
.linklist--count li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.linklist--count li:first-child { border-top: 0; }
.linklist li { padding: 6px 0; }
.alert > br:first-child, .alert > br:last-child { display: none; }

/* ---------- plata ---------- */
.paylogos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.paylogos img { height: 32px; width: auto; }
.price { font-family: var(--f-display); font-weight: 850; font-size: 1.8rem; color: var(--coral-deep); line-height: 1; }
.price small { font-size: .9rem; font-weight: 600; color: var(--ink-3); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps > li { counter-increment: step; position: relative; padding-left: 40px; min-height: 28px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; background: var(--coral-soft); color: var(--coral-deep); font-weight: 750; display: flex; align-items: center; justify-content: center; font-size: .9rem; }

/* wrapper-ele <table bgcolor> din .pml (comune cu tema veche) nu picteaza fundal */
:where(.legacy) :where(table, tr, td) { background-color: transparent; }
:where(.legacy > table, .legacy > table > tbody > tr > td) { border: 0; padding: 0; }

/* ---------- popup IM / chat ---------- */
body.popup { padding: 12px; padding-bottom: 12px; background: var(--blush); }
body.popup textarea { min-height: 70px; }
body.popup iframe { border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.emotes { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.emotes img { cursor: pointer; padding: 3px; border-radius: 6px; }
.emotes img:hover { background: var(--coral-soft); }
.mrow__check { display: flex; align-items: center; justify-content: center; }
.pager__label { color: var(--ink-3); font-size: .88rem; margin-right: 4px; }
.pager .muted { background: none; border: 0; min-width: 0; }

/* ---------- spatiere intre blocurile din coloana principala ---------- */
:where(.layout__main) > * + * { margin-top: 16px; }
:where(.layout__main) > script + *, :where(.layout__main) > * + script { margin-top: 0; }

/* ---------- tablou de bord ---------- */
.tiles { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tiles > .card { margin: 0; }
.pager b { min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 650; font-size: .92rem; }
.pcard img[src*="default_photo"] { object-fit: contain; padding: 22% 22% 40%; opacity: .45; }

/* ---------- actiunile din randurile de profil: pastile compacte ---------- */
.prow__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.prow__actions br { display: none; }
.prow__actions > a, .prow__actions > span {
	display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px;
	border-radius: 999px; background: var(--coral-soft); color: var(--coral-deep);
	font-size: .8rem; font-weight: 650; white-space: nowrap; text-decoration: none !important;
}
.prow__actions > span, .prow__actions > .muted { background: var(--slate-soft); color: var(--ink-3); }
@media (min-width: 720px) {
	.prow__actions { grid-column: auto; flex-direction: column; align-items: stretch; }
	.prow__actions > a, .prow__actions > span { justify-content: center; }
}
@media (max-width: 559px) {
	.pager { gap: 4px; }
	.pager a, .pager span, .pager b { min-width: 34px; height: 34px; padding: 0 8px; font-size: .85rem; }
}

/* ---------- corecturi QA ---------- */
.gallery figure > a, .gallery figure > img { aspect-ratio: 3 / 4; }
.gallery figure > img { width: 100%; height: auto; object-fit: cover; }
.gallery figure > a > img { height: 100%; }
.gallery figcaption form { margin: 0; }
input[type=file] { width: 100%; font-size: .9rem; }
.alert + * { margin-top: 12px; }
.profile-hero__photo img[src*="default_photo"] { object-fit: contain; padding: 25%; opacity: .4; }
