/* Harta Cerului - stiluri. Culoarea de accent e portocaliul de pe subcer.ro */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
	--fundal: #02040a;
	--panou: rgba(10, 14, 26, 0.88);
	--panou-margine: rgba(140, 170, 255, 0.14);
	--text: #e9ecf4;
	--text-slab: #9aa3b8;
	--accent: #ff9d2e;
	--accent-inchis: #e07f10;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--fundal); color: var(--text);
	font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
body { overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
#cer { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#cer:active { cursor: grabbing; }
button { font-family: inherit; }
[hidden] { display: none !important; }

/* bara de sus */
.bara { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px;
	padding: calc(10px + env(safe-area-inset-top)) 16px 10px; pointer-events: none;
	background: linear-gradient(rgba(2, 4, 10, 0.75), rgba(2, 4, 10, 0)); }
.bara > * { pointer-events: auto; }
.inapoi { display: inline-flex; align-items: center; gap: 4px; color: var(--text-slab); text-decoration: none; font-size: 13px;
	padding: 6px 10px 6px 6px; border-radius: 20px; background: rgba(255, 255, 255, 0.05); }
.inapoi:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.titlu-app { font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text); opacity: 0.85; }

/* incarcare + mesaje */
#incarcare { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--text-slab); font-size: 14px; }
#incarcare .inel { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 157, 46, 0.15); border-top-color: var(--accent); animation: roteste 1s linear infinite; }
#incarcare.eroare .inel { display: none; }
#incarcare .progres { width: 180px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
#incarcare .progres span { display: block; width: 0; height: 100%; background: var(--accent); transition: width 0.25s ease; }
#incarcare .procent { font-size: 13px; color: var(--text); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; margin-top: -8px; }
#incarcare.eroare .progres, #incarcare.eroare .procent { display: none; }
#incarcare p { max-width: 340px; text-align: center; padding: 0 16px; margin: 0; }
@keyframes roteste { to { transform: rotate(360deg); } }

/* intro */
#intro { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(92vw, 520px);
	text-align: center; pointer-events: none; animation: apare 1.2s ease both; }
#intro h1 { font-weight: 600; font-size: clamp(24px, 5vw, 36px); letter-spacing: 0.06em; margin: 0 0 8px; text-shadow: 0 2px 30px rgba(80, 120, 255, 0.5); }
#intro p { color: var(--text-slab); margin: 0 0 18px; font-size: 15px; line-height: 1.5; }
#intro .buton { pointer-events: auto; }
#intro:not([hidden]) ~ .butoane-jos, #incarcare:not([hidden]) ~ .butoane-jos { display: none; }
@keyframes apare { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* voalul pentru trecerea glob -> interior */
#voal { position: fixed; inset: 0; background: var(--fundal); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
#voal.activ { opacity: 1; }

/* butoane */
.buton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: 24px;
	border: 1px solid var(--panou-margine); background: rgba(255, 255, 255, 0.06); color: var(--text); font-size: 14px; font-weight: 600;
	text-decoration: none; cursor: pointer; transition: background 0.2s, transform 0.1s; }
.buton:hover { background: rgba(255, 255, 255, 0.12); }
.buton:active { transform: scale(0.97); }
.buton.principal { background: var(--accent); border-color: var(--accent); color: #1a0f00; }
.buton.principal:hover { background: #ffb158; }
.butoane-jos { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; gap: 10px; }
.buton-rotund { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 22px; cursor: pointer;
	border: 1px solid var(--panou-margine); background: var(--panou); color: var(--text); font-size: 13px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.buton-rotund:hover { border-color: rgba(255, 157, 46, 0.5); }
.buton-rotund svg { color: var(--accent); flex: none; }
.buton-rotund span { white-space: nowrap; }
.buton-rotund.activ { border-color: var(--accent); background: rgba(255, 157, 46, 0.16); }

/* scara gradata de sub Luna (lunga cat diametrul Lunii pe ecran) */
#eticheta-luna { display: flex; flex-direction: column; align-items: center; color: rgba(225, 232, 248, 0.92); text-shadow: 0 1px 6px #000; }
#eticheta-luna .scala { height: 7px; border: 1px solid rgba(225, 232, 248, 0.85); border-top: 0;
	background: repeating-linear-gradient(90deg, rgba(225, 232, 248, 0.75) 0 1px, transparent 1px 10%) bottom / 100% 4px no-repeat; }
#eticheta-luna .scala-text { font-size: 12px; margin-top: 5px; }
#eticheta-luna .scala-sub { font-size: 10.5px; color: var(--text-slab); margin-top: 1px; }

/* indicii */
#indicii { position: fixed; left: 50%; top: calc(70px + env(safe-area-inset-top)); transform: translate(-50%, -8px); padding: 10px 18px; border-radius: 20px;
	background: var(--panou); border: 1px solid var(--panou-margine); font-size: 13px; opacity: 0; transition: opacity 0.4s, transform 0.4s; pointer-events: none; white-space: nowrap; }
#indicii.vizibil { opacity: 1; transform: translate(-50%, 0); }

/* unelte mici in dreapta sus */
.unelte-sus { position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 16px; display: flex; gap: 8px; z-index: 6; }
.unealta { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 50%; cursor: pointer;
	border: 1px solid var(--panou-margine); background: var(--panou); color: #d6dbe6; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	transition: border-color 0.2s, background 0.2s, transform 0.1s; }
/* inactiv = alb-gri; activ = colorat; indisponibil = gri estompat */
.unealta:hover { border-color: rgba(255, 157, 46, 0.55); color: #fff; }
.unealta:active { transform: scale(0.94); }
.unealta-limba span { font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; }
.unealta.activ { color: var(--accent); border-color: var(--accent); background: rgba(255, 157, 46, 0.16);
	box-shadow: 0 0 14px rgba(255, 157, 46, 0.38), 0 0 3px rgba(255, 157, 46, 0.5), inset 0 0 6px rgba(255, 157, 46, 0.18); }
body.exterior #buton-luna { cursor: default; border-color: rgba(140, 170, 255, 0.08); }
body.exterior #buton-luna svg { opacity: 0.32; filter: grayscale(1); }
/* tooltip-urile butoanelor de sus (doar cu mouse) */
@media (hover: hover) {
	.unealta { position: relative; }
	.unealta::after { content: attr(data-tip); position: absolute; top: calc(100% + 10px); right: -4px; width: max-content; max-width: 230px;
		padding: 7px 11px; border-radius: 10px; background: rgba(10, 14, 26, 0.95); border: 1px solid rgba(255, 157, 46, 0.35);
		box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5); color: var(--text); font-size: 12px; line-height: 1.4; text-align: left; white-space: normal;
		opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity 0.15s ease, transform 0.15s ease; z-index: 8; }
	.unealta:hover::after { opacity: 1; transform: none; transition-delay: 0.25s; }
	body.exterior #buton-luna::after { content: 'Comparația cu Luna e disponibilă sub cer'; }
	html[lang="en"] body.exterior #buton-luna::after { content: 'The Moon comparison is available under the sky'; }
	body.exterior #buton-luna:hover { border-color: var(--panou-margine); color: #d6dbe6; }
}
.eticheta.pol { font-size: 11px; letter-spacing: 0.08em; color: rgba(190, 215, 255, 0.85); }
body:has(#incarcare:not([hidden])) .unelte-sus { visibility: hidden; }
@media (min-width: 701px) { body:has(#card:not([hidden])) .unelte-sus, body:has(#lista:not([hidden])) .unelte-sus { right: 416px; } }

/* tooltip la trecerea mouse-ului peste o poza */
#tooltip { position: fixed; left: 0; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; max-width: 320px; padding: 8px 14px 8px 8px;
	border-radius: 14px; background: var(--panou); border: 1px solid rgba(255, 157, 46, 0.35); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 24px rgba(255, 157, 46, 0.12);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); pointer-events: none; opacity: 0; transition: opacity 0.15s ease; will-change: transform; }
#tooltip.vizibil { opacity: 1; }
#tooltip img { width: 56px; height: 56px; border-radius: 9px; object-fit: cover; background: #000; flex: none; }
#tooltip div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#tooltip strong { font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--text); }
#tooltip span { font-size: 12px; color: var(--accent); }
#tooltip em { font-style: normal; font-size: 11px; color: var(--text-slab); }
#tooltip .tooltip-tablou { align-self: flex-start; margin: 2px 0 1px; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 600;
	color: #1a0f00; background: #ffc450; box-shadow: 0 0 10px rgba(255, 196, 80, 0.35); }
@media (hover: none) { #tooltip { display: none; } }

/* legenda din vederea globului */
#legenda { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: 300px; padding: 10px 14px; border-radius: 12px;
	background: rgba(10, 14, 26, 0.7); border: 1px solid var(--panou-margine); font-size: 11.5px; color: var(--text-slab); line-height: 1.5;
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 7; animation: apareInfo 0.25s ease; }
@keyframes apareInfo { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#legenda .inchide.mic { position: absolute; top: 6px; right: 6px; float: none; width: 28px; height: 28px; margin: 0; font-size: 18px; }
.legenda-text { margin: 0 0 6px; padding-right: 22px; }
.legenda-titlu.mic { margin-top: 10px; }
#legenda i.cat { border-radius: 50%; width: 9px; height: 9px; }
#legenda i.cat.tablou { background: transparent; border: 2px solid #ffc450; box-sizing: border-box; }
body:not(.exterior) #legenda .doar-glob { display: none; }
body.exterior #legenda .doar-sub-cer { display: none; }
.buton-info { width: 44px; padding: 0; justify-content: center; }
.buton-info svg { color: var(--accent); }
.buton-info.activ { border-color: var(--accent); box-shadow: 0 0 12px rgba(255, 157, 46, 0.3); }
.legenda-titlu { color: var(--text); font-weight: 600; font-size: 12px; margin-bottom: 4px; }
.legenda-semne { display: flex; flex-wrap: wrap; gap: 2px 10px; }
.legenda-zi { display: flex; align-items: center; gap: 8px; }
#legenda .legenda-zi i { flex: 1; min-width: 50px; max-width: 110px; height: 6px; margin: 0; border-radius: 3px; background: linear-gradient(90deg, #e8d9a8, #b07a45 45%, #1c2440 70%, #0b0f1e); }
.legenda-semne { margin-top: 6px; }
#legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
#legenda i.punct-ro { border-radius: 50%; background: #f2261a; box-shadow: 0 0 6px #f2261a; }
#legenda i.soare { border-radius: 50%; background: #fff3d6; box-shadow: 0 0 8px #ffb84d; }
#legenda i.zodiac { width: 14px; height: 0; border-top: 1px solid rgba(232, 195, 138, 0.6); border-radius: 0; vertical-align: 3px; }
.legenda-nota { margin-top: 6px; font-size: 10.5px; opacity: 0.8; }
@media (max-width: 700px) {
	#legenda { left: 10px; right: 10px; max-width: none; bottom: calc(70px + env(safe-area-inset-bottom)); font-size: 11px; padding: 10px 12px; }
}

/* liniile fine dintre poza si titlul ei */
#legaturi { position: absolute; inset: 0; overflow: visible; }
#legaturi line { stroke: rgba(255, 210, 160, 0.55); stroke-width: 1; }
#legaturi circle { fill: rgba(255, 210, 160, 0.85); }

/* etichete pe cer */
#etichete { position: fixed; inset: 0; pointer-events: none; overflow: hidden; user-select: none; -webkit-user-select: none; }
.eticheta { position: absolute; left: 0; top: 0; white-space: nowrap; transition: opacity 0.25s; will-change: transform; }
.eticheta.constelatie { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(178, 200, 255, 0.78); }
.eticheta.poza { font-size: 12px; color: rgba(255, 210, 160, 0.92); text-shadow: 0 1px 6px #000, 0 0 2px #000; }

/* panouri: card si lista (dreapta pe calculator, jos pe telefon) */
.panou { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100vw); overflow-y: auto; overscroll-behavior: contain;
	padding: calc(14px + env(safe-area-inset-top)) 14px calc(20px + env(safe-area-inset-bottom)); background: var(--panou);
	border-left: 1px solid var(--panou-margine); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); z-index: 10; }
#card { transform: translateX(16px); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; }
#card.deschis { transform: none; opacity: 1; }
.inchide { position: sticky; top: 0; float: right; width: 36px; height: 36px; margin: -4px -6px 0 8px; border-radius: 50%; border: 0; z-index: 2;
	background: rgba(255, 255, 255, 0.08); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.inchide:hover { background: rgba(255, 255, 255, 0.16); }
.card-imagine { margin: 0 0 12px; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 1 / 1; clear: both; }
.card-imagine img { width: 100%; height: 100%; object-fit: contain; display: block; }
.variante { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 12px; padding-bottom: 4px; }
.varianta { flex: none; width: 56px; height: 56px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: #000; cursor: pointer; }
.varianta.activa { border-color: var(--accent); }
.varianta img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-titlu { font-size: 19px; line-height: 1.3; font-weight: 600; margin: 0 0 6px; }
.card-info { color: var(--accent); font-size: 13px; margin: 0 0 4px; }
.card-marime { color: var(--text-slab); font-size: 13px; margin: 0 0 12px; }
.card-detalii { color: var(--text-slab); font-size: 12.5px; line-height: 1.6; margin: 0 0 16px; }
.card-butoane { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.card-butoane .buton { flex: 1 1 auto; }
.card-subtitlu { font-size: 13px; font-weight: 600; color: var(--text-slab); text-transform: uppercase; letter-spacing: 0.1em; margin: 8px 0 10px; }
.vecine { display: grid; gap: 8px; }
.vecina, .lista-element { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px; border-radius: 10px; border: 1px solid transparent;
	background: rgba(255, 255, 255, 0.04); color: var(--text); font-size: 13px; text-align: left; cursor: pointer; }
.vecina:hover, .lista-element:hover { border-color: rgba(255, 157, 46, 0.4); background: rgba(255, 255, 255, 0.08); }
.vecina img, .lista-element img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; flex: none; background: #000; }
#lista h2 { font-size: 18px; font-weight: 600; margin: 4px 0 14px; }
#lista-cauta { width: 100%; height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--panou-margine); background: rgba(255, 255, 255, 0.06);
	color: var(--text); font: inherit; font-size: 14px; margin-bottom: 8px; }
#lista-cauta:focus { outline: none; border-color: var(--accent); }
#lista-continut { display: grid; gap: 6px; }
/* tablourile din shop */
.card-tablou { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding: 10px 12px; border-radius: 12px;
	border: 1px solid rgba(255, 196, 80, 0.45); background: linear-gradient(135deg, rgba(255, 196, 80, 0.14), rgba(255, 157, 46, 0.05)); }
.card-tablou-text { display: flex; flex-direction: column; font-size: 12.5px; color: var(--text-slab); }
.card-tablou-text strong { color: #ffd27a; font-size: 13.5px; font-weight: 600; }
.buton.tablou { min-height: 38px; padding: 8px 16px; background: #ffc450; border-color: #ffc450; color: #1a0f00; white-space: nowrap; }
.buton.tablou:hover { background: #ffd27a; }
.filtru-tablouri { width: 100%; margin: 0 0 8px; padding: 9px 14px; border-radius: 20px; border: 1px solid rgba(255, 196, 80, 0.35); background: transparent;
	color: #ffd27a; font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.filtru-tablouri::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 3px; border: 1px solid #ffc450; vertical-align: -1px; }
.filtru-tablouri.activ { background: rgba(255, 196, 80, 0.14); }
.filtru-tablouri.activ::before { background: #ffc450; box-shadow: inset 0 0 0 2px #1a1206; }
.eticheta-tablou { margin-left: auto; font-style: normal; font-size: 10.5px; color: #ffd27a; border: 1px solid rgba(255, 196, 80, 0.5); border-radius: 10px; padding: 1px 7px; }
.lista-categorie { font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; margin: 14px 0 4px; }
.lista-gol { color: var(--text-slab); font-size: 14px; }

@media (max-width: 700px) {
	.titlu-app { display: none; }
	.panou { top: auto; left: 0; width: 100%; max-height: 58vh; border-left: 0; border-top: 1px solid var(--panou-margine); border-radius: 18px 18px 0 0; }
	#card { transform: translateY(24px); }
	.card-imagine { aspect-ratio: 4 / 3; }
	.buton-rotund span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
#voal.rapid { transition-duration: 0.12s; }
/* telefon: 6 butoane sus - mai mici, iar linkul spre site doar cu sageata */
@media (max-width: 700px) {
	.unelte-sus { right: 10px; gap: 6px; }
	.unealta { width: 36px; height: 36px; }
	.inapoi span { display: none; }
	.inapoi { padding: 8px; }
}

/* Soarele / Luna: fotografiile mele, in lista verticala (calculator) */
.variante.verticala { flex-direction: column; gap: 6px; overflow: visible; }
.variante.verticala .varianta { width: 100%; height: auto; display: flex; align-items: center; gap: 12px; padding: 5px 10px 5px 5px; border-radius: 10px;
	border: 1px solid transparent; background: rgba(255, 255, 255, 0.04); color: var(--text); text-align: left; }
.variante.verticala .varianta:hover { background: rgba(255, 255, 255, 0.08); }
.variante.verticala .varianta.activa { border-color: var(--accent); background: rgba(255, 157, 46, 0.08); }
.variante.verticala .varianta img { width: 52px; height: 52px; border-radius: 7px; flex: none; }
.varianta-text { display: flex; flex-direction: column; min-width: 0; font-size: 13px; line-height: 1.35; }
.varianta-data { font-size: 11.5px; color: var(--text-slab); }
.variante.verticala .varianta.are-tablou:not(.activa) { border-color: rgba(255, 196, 80, 0.5); background: rgba(255, 196, 80, 0.07); }
.varianta.are-tablou:not(.activa) { border-color: rgba(255, 196, 80, 0.75); }

@media (max-width: 700px) {
	/* card pe telefon: margine de sus vizibila (manerul + linie aurie discreta + umbra) */
	.panou { border-top: 1px solid rgba(255, 157, 46, 0.5); box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.65), 0 -1px 0 rgba(255, 157, 46, 0.15); background: rgba(12, 17, 31, 0.96); }
	.panou::before { content: ''; position: sticky; top: -6px; display: block; width: 44px; height: 4px; margin: -6px auto 10px; border-radius: 2px; background: rgba(255, 255, 255, 0.28); }
	/* Soarele / Luna pe telefon: miniaturi pe un rand, fara text */
	.variante.verticala { flex-direction: row; overflow-x: auto; }
	.variante.verticala .varianta { width: 56px; height: 56px; flex: none; padding: 0; border-width: 2px; }
	.variante.verticala .varianta img { width: 100%; height: 100%; border-radius: 6px; }
	.variante.verticala .varianta-text, .variante.verticala .eticheta-tablou { display: none; }
}

/* telefon: la atingerea unui buton de sus apare explicatia lui, care se stinge in ~3 secunde */
.tip-atingere { position: fixed; z-index: 30; max-width: 220px; padding: 7px 11px; border-radius: 10px; background: rgba(10, 14, 26, 0.95);
	border: 1px solid rgba(255, 157, 46, 0.4); color: var(--text); font-size: 12.5px; line-height: 1.4; pointer-events: none;
	animation: stingeTip 3s ease-out forwards; }
@keyframes stingeTip { 0% { opacity: 0; transform: translateY(-4px); } 8% { opacity: 1; transform: none; } 45% { opacity: 1; } 100% { opacity: 0; } }

/* bare de derulare fine (card, lista) */
.panou { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent; }
.panou::-webkit-scrollbar { width: 6px; }
.panou::-webkit-scrollbar-track { background: transparent; }
.panou::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 3px; }
.panou::-webkit-scrollbar-thumb:hover { background: rgba(255, 157, 46, 0.45); }
.variante::-webkit-scrollbar { height: 4px; }
.variante::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 2px; }
.variante { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.16) transparent; }

/* un singur card: fotografia care se vinde + caseta tabloului (Soare / Luna in variante, "Alte fotografii din zona") */
.grup-tablou { border: 1px solid rgba(255, 196, 80, 0.6); border-radius: 12px; background: rgba(255, 196, 80, 0.07); overflow: hidden; }
.grup-tablou:has(.varianta.activa) { border-color: var(--accent); background: rgba(255, 157, 46, 0.08); }
.grup-tablou > .vecina { border-color: transparent; background: transparent; border-radius: 0; }
.grup-tablou > .card-tablou.in-grup { margin: 0; border: 0; border-top: 1px dashed rgba(255, 196, 80, 0.3); border-radius: 0; background: none; padding: 8px 12px 10px; }
.grup-tablou .card-tablou.in-grup .buton.tablou { min-height: 34px; padding: 6px 14px; font-size: 13px; }
@media (min-width: 701px) {
	.grup-varianta > .varianta { border-color: transparent !important; background: transparent !important; border-radius: 0; width: 100%; }
}
@media (min-width: 701px) { .doar-telefon { display: none; } }
@media (max-width: 700px) { .grup-varianta { display: contents; } .grup-varianta .card-tablou.in-grup { display: none; } }

/* pulsul pe poza deschisa din link (galerie / shop), cand e prea mica pe ecran */
#puls-tinta { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; transition: opacity 0.3s; }
#puls-tinta.vizibil { opacity: 1; }
#puls-tinta i { position: absolute; left: -30px; top: -30px; width: 60px; height: 60px; border-radius: 50%; border: 2px solid #ff3b2f; animation: pulsTinta 2.2s ease-out infinite; }
#puls-tinta i:nth-child(2) { border-color: #fff; animation-delay: 0.73s; }
#puls-tinta i:nth-child(3) { animation-delay: 1.46s; }
@keyframes pulsTinta { from { transform: scale(0.15); opacity: 1; } to { transform: scale(1); opacity: 0; } }

@media (max-width: 700px) { .panou { padding-left: 10px; padding-right: 10px; } }

/* copyright in cardul de informatii */
.legenda-copy { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 11px; color: var(--text-slab); }
.legenda-copy a { color: var(--accent); text-decoration: none; }
.legenda-copy a:hover { text-decoration: underline; }

/* cadran pe prima pagina (?embed=1): doar globul care se roteste; click pe o poza deschide harta completa */
body.embed .bara, body.embed .unelte-sus, body.embed .butoane-jos, body.embed #legenda, body.embed #intro { display: none !important; }
body.embed #cer { touch-action: pan-y; }
body.embed #embed-deschide { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 6; white-space: nowrap; display: inline-flex; }

/* o singura culoare pentru fotografii (albastru deschis); auriu = tablou */
#legenda i.cat { background: #a9c9ff; box-shadow: 0 0 6px rgba(169, 201, 255, 0.6); }
#legenda i.cat.tablou { background: transparent; box-shadow: none; }

/* explicatii "Cum e desenat cerul" */
.legenda-adevar { margin: 0 0 6px; padding-left: 16px; }
.legenda-adevar li { margin: 2px 0; }

/* butonul de limba, jos (rotund, ca butonul de informatii) */
.buton-limba { width: 44px; padding: 0; justify-content: center; }
.buton-limba span { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); }

/* poza din card: lupa + click = tot ecranul */
.card-imagine img { cursor: zoom-in; }
.card-mareste { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(8, 11, 22, 0.7); color: #fff; cursor: pointer; opacity: 0.85;
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity 0.2s, transform 0.15s, border-color 0.2s; }
.card-mareste:hover { opacity: 1; transform: scale(1.08); border-color: var(--accent); }
.card-imagine { position: relative; }
#lightbox { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(2, 4, 10, 0.96); padding: 18px; }
#lightbox[hidden] { display: none; }
#lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7); }
#lightbox .inchide { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px; float: none; margin: 0; z-index: 61; }

/* butoane din card: "Vezi proiectul" albastru, "Comanda tabloul" auriu si mai vizibil */
.buton.proiect { background: linear-gradient(135deg, #3d8bff, #2a62d9); border-color: #4a93ff; color: #fff; }
.buton.proiect:hover { background: linear-gradient(135deg, #5a9eff, #3a73ea); }
.buton.tablou { background: linear-gradient(135deg, #ffd36b, #ffb020); border-color: #ffc450; color: #1a0f00; font-weight: 700; box-shadow: 0 0 14px rgba(255, 190, 70, 0.4); }
.buton.tablou:hover { background: linear-gradient(135deg, #ffe08a, #ffc03a); box-shadow: 0 0 20px rgba(255, 190, 70, 0.6); }

/* linia subtire de sus: progresul miniaturilor, cat timp pozele nu au aparut inca */
#bara-poze { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); box-shadow: 0 0 8px rgba(255, 157, 46, 0.7); z-index: 8; transition: width 0.25s ease, opacity 0.4s; pointer-events: none; }
#bara-poze[hidden] { display: none; }

/* comutator "Ascunde pozele suprapuse" (sub poza din card) */
.comutator-suprapuse { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; cursor: pointer; user-select: none;
	background: rgba(255, 255, 255, 0.04); border: 1px solid var(--panou-margine); font-size: 13px; color: var(--text); }
.comutator-suprapuse:hover { border-color: rgba(255, 157, 46, 0.4); }
.comutator-suprapuse input { position: absolute; opacity: 0; width: 0; height: 0; }
.comutator { position: relative; flex: none; width: 36px; height: 20px; border-radius: 10px; background: rgba(255, 255, 255, 0.16); transition: background 0.2s; }
.comutator::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.comutator-suprapuse input:checked + .comutator { background: var(--accent); }
.comutator-suprapuse input:checked + .comutator::after { transform: translateX(16px); }
.comutator-suprapuse input:focus-visible + .comutator { outline: 2px solid var(--accent); outline-offset: 2px; }

/* butonul de cumparare din fotografia pe tot ecranul: centrat jos, vizibil dar discret */
#lightbox-shop { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 61; display: inline-flex; align-items: center; gap: 8px;
	text-decoration: none; border-radius: 24px; min-height: 42px; padding: 8px 20px; font-size: 14px; opacity: 0.92; backdrop-filter: blur(4px); }
#lightbox-shop[hidden] { display: none; }
#lightbox-shop:hover { opacity: 1; }
.legenda-cum { margin: 0 0 12px; color: var(--accent); font-size: 12px; font-weight: 400; line-height: 1.5; }
.card-tablou .buton.tablou { display: inline-flex; align-items: center; gap: 8px; }

/* ===== bara de jos: [meniu] [Glob | Cer | AR] [Fotografii] ===== */
.butoane-jos { align-items: center; gap: 8px; }
.buton-meniu { width: 50px; height: 50px; padding: 0; justify-content: center; border-radius: 50%; }
.buton-meniu svg { color: var(--text); }
.buton-meniu.activ { border-color: var(--accent); }
.buton-fotografii { flex-direction: column; justify-content: center; gap: 2px; height: 58px; min-width: 70px; padding: 0 10px; border-radius: 29px; font-size: 11.5px; font-weight: 600; color: var(--text-slab); }
.buton-fotografii svg { color: var(--text); }
.buton-fotografii span { font-size: 11.5px !important; }

/* comutatorul de mod: o "pastila" de sticla; lumina aurie aluneca elastic sub modul ales */
.comutator-mod { --n: 2; --i: 0; position: relative; display: flex; padding: 5px; border-radius: 34px; background: rgba(10, 14, 26, 0.72);
	border: 1px solid rgba(255, 196, 80, 0.28); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.comutator-mod .glisor { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / var(--n)); border-radius: 29px;
	background: linear-gradient(135deg, #ffd36b, #ff9d2e 55%, #f07a10); box-shadow: 0 0 22px rgba(255, 170, 60, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
	transform: translateX(calc(var(--i) * 100%)); transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.5, 1); }
.comutator-mod .seg { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	width: 78px; height: 58px; padding: 0; border: 0; background: none; color: var(--text-slab); font-size: 11.5px; font-weight: 600; cursor: pointer; transition: color 0.3s; }
.comutator-mod .seg svg { width: 22px; height: 22px; overflow: visible; }
.comutator-mod .seg:hover:not(.activ) { color: var(--text); }
.comutator-mod .seg.activ { color: #1a0f00; }
.comutator-mod .seg-ar:not(.activ) svg { color: #8fd0ff; }
/* iconite animate: globul se roteste, stelele clipesc, telefonul AR emite unde */
.ic-glob .meridian { transform-origin: 12px 12px; animation: ic-rotire 6s linear infinite; }
@keyframes ic-rotire { 0% { transform: scaleX(1); } 50% { transform: scaleX(0.15); } 100% { transform: scaleX(1); } }
.ic-cer .st { animation: ic-clipire 2.4s infinite ease-in-out; }
.ic-cer .st:nth-of-type(2) { animation-delay: 0.8s; } .ic-cer .st:nth-of-type(3) { animation-delay: 1.6s; }
@keyframes ic-clipire { 50% { opacity: 0.25; } }
.ic-ar .unda { transform-origin: 12px 12px; animation: ic-unda 2s infinite ease-out; opacity: 0; } .ic-ar .unda.d2 { animation-delay: 1s; }
@keyframes ic-unda { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }

/* meniul */
.meniu { position: fixed; z-index: 40; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(320px, calc(100% - 24px));
	padding: 8px; border-radius: 18px; background: var(--panou); border: 1px solid var(--panou-margine); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6); animation: meniu-apare 0.25s ease-out; }
@keyframes meniu-apare { from { opacity: 0; transform: translate(-50%, 10px); } }
.meniu-rand { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px 12px; border: 0; border-radius: 12px; background: none;
	color: var(--text); font-size: 14px; text-align: left; cursor: pointer; }
.meniu-rand:hover, .meniu-rand.activ { background: rgba(255, 255, 255, 0.07); }
.meniu-rand svg { color: var(--accent); flex: none; }
.meniu-text { font-weight: 400; }
.meniu-cod { width: 20px; text-align: center; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); flex: none; }
.meniu-jos { display: flex; flex-direction: column; gap: 2px; margin: 6px 4px 2px; padding: 10px 8px 4px; border-top: 1px solid var(--panou-margine); font-size: 11.5px; color: var(--text-slab); }
.meniu-jos a { color: var(--text-slab); }
/* nota scurta deasupra barei de jos */
.nota-ecran { position: fixed; z-index: 45; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: calc(100% - 32px); width: max-content;
	padding: 10px 16px; border-radius: 16px; background: rgba(10, 14, 26, 0.92); border: 1px solid rgba(143, 208, 255, 0.4); color: #cfe6ff; font-size: 13px; text-align: center;
	animation: nota 3.6s ease forwards; pointer-events: none; }
@keyframes nota { 0% { opacity: 0; transform: translate(-50%, 8px); } 8%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
/* telefon mic (iPhone SE: 375 px) */
@media (max-width: 400px) {
	.butoane-jos { gap: 6px; }
	.comutator-mod .seg { width: 66px; }
	.buton-fotografii { min-width: 64px; padding: 0 6px; }
	.buton-meniu { width: 46px; height: 46px; }
}
@media (max-width: 700px) { #legenda { bottom: calc(92px + env(safe-area-inset-bottom)); } }

/* ===== modul AR ===== */
/* uneltele care nu au sens cand cerul il misca telefonul */
body.mod-ar #buton-acasa, body.mod-ar #buton-rotire, body.mod-ar #buton-axa { display: none; }
#etichete .cardinal { font-size: 20px; font-weight: 600; color: #ff5a4a; text-shadow: 0 0 6px rgba(0, 0, 0, 0.9), 0 0 2px #000; letter-spacing: 0.04em; }
#etichete .cardinal.mic { font-size: 14px; color: rgba(255, 110, 95, 0.8); }
.diagnostic-ar { position: fixed; z-index: 70; left: 8px; top: calc(64px + env(safe-area-inset-top)); margin: 0; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.72);
	color: #b8ffcf; font: 11px/1.45 ui-monospace, Menlo, monospace; pointer-events: none; white-space: pre; }
/* bifa din meniu (comutator mic) */
.meniu-bifa { position: relative; user-select: none; -webkit-user-select: none; }
.meniu-bifa input { position: absolute; opacity: 0; width: 0; height: 0; }
.meniu-bifa input:checked + .comutator { background: var(--accent); }
.meniu-bifa input:checked + .comutator::after { transform: translateX(16px); }
.meniu-bifa input:focus-visible + .comutator { outline: 2px solid var(--accent); outline-offset: 2px; }
.meniu-bifa .meniu-text { font-size: 13.5px; }
/* AR: sageata care te duce la poza aleasa si pulsul de la sosire */
#ghid-ar { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; transition: opacity 0.3s; }
#ghid-ar.vizibil { opacity: 1; }
#ghid-ar svg { position: absolute; left: -24px; top: -24px; color: var(--accent); filter: drop-shadow(0 0 6px rgba(255, 157, 46, 0.8)) drop-shadow(0 0 2px #000);
	animation: ghidImpinge 1.1s ease-in-out infinite; }
@keyframes ghidImpinge { 50% { opacity: 0.55; } }
#ghid-text { position: absolute; left: 0; top: 0; max-width: 220px; width: max-content; padding: 5px 11px; border-radius: 14px; background: rgba(10, 14, 26, 0.88);
	border: 1px solid rgba(255, 157, 46, 0.45); color: #ffd9a8; font-size: 12.5px; line-height: 1.35; text-align: center; white-space: normal; opacity: 0; transition: opacity 0.3s; }
#ghid-text.vizibil { opacity: 1; }
#puls-ghid { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; transition: opacity 0.3s; }
#puls-ghid.vizibil { opacity: 1; }
#puls-ghid i { position: absolute; left: -30px; top: -30px; width: 60px; height: 60px; border-radius: 50%; border: 2px solid #ff3b2f; animation: pulsTinta 2.2s ease-out infinite; }
#puls-ghid i:nth-child(2) { border-color: #fff; animation-delay: 0.73s; }
#puls-ghid i:nth-child(3) { animation-delay: 1.46s; }
.buton.gaseste { background: rgba(255, 157, 46, 0.14); border-color: rgba(255, 157, 46, 0.55); color: #ffd9a8; flex-basis: 100%; }
.buton.gaseste svg { color: var(--accent); }
/* versiunea: randul din meniu si notificarea "versiune noua" */
.meniu-versiune-rand { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.buton-actualizeaza, #nota-versiune .actualizeaza { padding: 5px 12px; border-radius: 14px; border: 0; background: linear-gradient(135deg, #ffd36b, #ff9d2e); color: #1a0f00;
	font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
#nota-versiune { position: fixed; z-index: 46; left: 50%; top: calc(70px + env(safe-area-inset-top)); transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px);
	display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 18px; background: rgba(10, 14, 26, 0.94); border: 1px solid rgba(255, 157, 46, 0.5);
	color: var(--text); font-size: 13px; box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55); }
#nota-versiune .inchide-nota { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.08); color: var(--text-slab); font-size: 16px; cursor: pointer; }
/* AR: cercul-reper din centrul zonei de cer vizibile */
#mira-ar { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; transition: opacity 0.3s; }
#mira-ar.vizibil { opacity: 1; }
#mira-ar::before { content: ''; position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 2px dashed rgba(255, 157, 46, 0.75); box-sizing: border-box; }
#mira-ar::after { content: ''; position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 157, 46, 0.9); }
/* AR: reticulul care urmareste subiectul cand e pe ecran */
#reticul-ar { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity 0.3s; color: #ffb347; filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 6px rgba(255, 157, 46, 0.5)); }
#reticul-ar.vizibil { opacity: 1; }
#reticul-ar svg { width: 100%; height: 100%; display: block; overflow: visible; animation: reticul 3.2s ease-in-out infinite; }
/* pulseaza incet: se mareste si revine (nu scade niciodata sub marimea de baza, deci nu intra peste poza) */
@keyframes reticul { 50% { transform: scale(1.12); } }
/* ecranul "Porneste AR" (venit din site pe iPhone / iPad) */
#start-ar { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(2, 4, 10, 0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.start-ar-cutie { width: min(360px, 100%); padding: 26px 22px 20px; border-radius: 20px; background: var(--panou); border: 1px solid rgba(255, 157, 46, 0.4); text-align: center; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); }
.start-ar-cutie svg { color: var(--accent); }
.start-ar-cutie h2 { margin: 10px 0 8px; font-size: 19px; font-weight: 600; }
.start-ar-cutie p { margin: 0 0 18px; color: var(--text-slab); font-size: 14px; line-height: 1.5; }
.start-ar-cutie .buton { width: 100%; margin-top: 8px; }
