/* ==========================================================================
   Profilul public al unui cont (profil.php)
   ========================================================================== */
.profil { padding-top: 24px; padding-bottom: 24px; }
.profil-cap { border-radius: 40px; border: 1px solid var(--dau-line); background-color: var(--dau-surface); padding: clamp(22px, 4vw, 44px); display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.profil-cap__poza { width: 136px; height: 136px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--dau-inverse); color: var(--dau-on-inverse); display: flex; align-items: center; justify-content: center; font: 800 44px var(--dau-font-display); }
.profil-cap__poza--firma { border-radius: 36px; background: var(--dau-surface); border: 1px solid var(--dau-line); color: var(--dau-text); }
.profil-cap__poza img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Sigla firmei: întreagă și centrată, pe fond alb, oricât de lată sau înaltă ar fi */
.profil-cap__poza--firma { background: #fff; padding: 14px; }
.profil-cap__poza--firma img { object-fit: contain; object-position: center; border-radius: 14px; }
.profil-cap__text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.profil-cap__text h1 { font-size: clamp(2.2rem, 5.4vw, 4.6rem); font-weight: 800; overflow-wrap: anywhere; }
.profil-cap__etichete { display: flex; flex-wrap: wrap; gap: 6px; }
.profil-cap__etichete .dau-chip { padding: 6px 12px; font-size: 13px; }
.profil-cap__actiuni { flex: 0 1 260px; min-width: 220px; display: flex; flex-direction: column; gap: 8px; }

.profil-cifre { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 12px; }
.profil-cifre .dau-card { padding: 18px 20px; }
.profil-cifre .dau-eyebrow { font-size: 11px; }
.profil-cifre .dau-display { font-size: 38px; margin-top: 10px; }

.profil-corp { display: flex; flex-wrap: wrap; gap: 24px; margin-top: clamp(32px, 5vw, 56px); align-items: flex-start; }
.profil-lista { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 100px; }
.profil-lista .dau-section__cap { margin-bottom: 0; }
.profil-lista .dau-seg { align-self: flex-start; }
.profil-lista .dau-seg > a { min-height: 44px; }
.profil-h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-top: 8px; }
.profil-sort { display: flex; gap: 8px; }
.profil-sort .dau-dd { min-width: 200px; }
.profil-sort .dau-dd__btn { border-radius: 999px; min-height: 46px; padding-left: 18px; font-size: 15px; font-weight: 600; }
.profil-sort .dau-dd__menu { left: auto; right: 0; }

.profil-lateral { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 100px; }
.profil-caseta { border-radius: 32px; padding: 22px; }
.profil-caseta h2 { font-size: 26px; margin-bottom: 8px; }
.profil-agent { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--dau-line); min-height: 44px; }
.profil-agent > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.profil-agent strong { font-weight: 600; }
.profil-agent small { font-size: 13px; }
.profil-agent:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.profil-agentie { display: flex; align-items: center; gap: 14px; transition: transform .3s var(--dau-ease), box-shadow .3s; }
.profil-agentie:hover { transform: translateY(-4px); box-shadow: var(--dau-shadow); }
.profil-agentie > span { display: flex; flex-direction: column; min-width: 0; }
.profil-agentie .dau-eyebrow { font-size: 11px; }
.profil-agentie strong { font-size: 17px; }
.profil-agentie small { font-size: 13px; }
.profil-date { margin: 0; }
.profil-date > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--dau-line); }
.profil-date dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.profil-nota { margin: 8px 0 0; font-size: 14px; }

@media (max-width: 900px) {
  .profil-cap { border-radius: 28px; gap: 18px; }
  .profil-cap__poza { width: 88px; height: 88px; font-size: 30px; }
  .profil-cap__poza--firma { border-radius: 24px; }
  .profil-cap__actiuni { flex: 1 1 100%; }
  .profil-cifre { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .profil-cifre .dau-display { font-size: 28px; }
  .profil-lateral { position: static; }
  .profil-sort, .profil-sort .dau-dd { width: 100%; }
  .profil-lista .dau-seg { align-self: stretch; }
  .profil-lista .dau-seg > a { flex: 1 1 auto; justify-content: center; padding: 0 10px; font-size: 13px; }
}