/* ============================================================
   onboarding.css — turul de bun venit, ecranul de username obligatoriu
   și cartonașul de preferințe notificări (onboarding.js). Namespace
   separat ("obw-") de account-widget.css ("aw-"), design similar
   (aceleași principii: overlay întunecat, card central) dar independent,
   ca sa nu riscam sa stricam ceva din modalele deja existente.
   ============================================================ */

.obw-overlay{
  position: fixed;
  inset: 0;
  z-index: 4200;
  background: rgba(3, 6, 12, .82);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  animation: obwFadeIn .18s ease;
}
@keyframes obwFadeIn{ from{ opacity: 0; } to{ opacity: 1; } }

body.obw-blocat{ overflow: hidden; }

.obw-card{
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #12161f;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 32px 28px 26px;
  color: #fff;
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
  text-align: center;
}

/* turul de bun venit (carusel) foloseste cartonase mult mai mari, cu loc
   pentru un screenshot al site-ului - vezi .obw-shot mai jos. Cartonasele
   celelalte (username obligatoriu, preferinte notificari) raman la
   dimensiunea "clasica" de mai sus (.obw-card), fara aceasta clasa. */
.obw-card.obw-card-tur{
  max-width: 640px;
  padding: 40px 40px 32px;
}
@media (max-width: 720px){
  .obw-card.obw-card-tur{ max-width: 520px; padding: 32px 26px 26px; }
}

.obw-shot{
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 34px rgba(0,0,0,.4);
  margin: 4px 0 20px;
  background: rgba(255,255,255,.04);
}

.obw-icon{ font-size: 2.6rem; line-height: 1; margin-bottom: 14px; }
.obw-card-tur .obw-icon{ font-size: 2.4rem; margin-bottom: 10px; }
.obw-title{ margin: 0 0 10px; font-size: 1.3rem; font-weight: 800; }
.obw-card-tur .obw-title{ font-size: 1.55rem; }
.obw-body{ margin: 0 0 20px; font-size: .98rem; line-height: 1.55; color: rgba(255,255,255,.7); }
.obw-card-tur .obw-body{ font-size: 1.12rem; line-height: 1.65; text-align: left; }

.obw-dots{ display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }
.obw-dot{ width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.2); transition: background .15s ease, transform .15s ease; }
.obw-dot.is-active{ background: #4ADE80; transform: scale(1.25); }

.obw-actions{ display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.obw-actions-right{ display: flex; gap: 8px; }

.obw-btn-primary{
  background: linear-gradient(135deg, #4ADE80, #38BDF8);
  border: none;
  border-radius: 10px;
  padding: 11px 18px;
  color: #06231a;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  white-space: nowrap;
}
.obw-btn-primary:disabled{ opacity: .6; cursor: not-allowed; }

.obw-btn-secondary{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 11px 16px;
  color: #fff;
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
}

.obw-btn-text{
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  font-size: .82rem;
  cursor: pointer;
  padding: 0;
}
.obw-btn-text:hover{ color: rgba(255,255,255,.8); }

.obw-input{
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 11px 12px;
  color: #fff;
  font-size: .95rem;
  text-align: center;
  margin-bottom: 14px;
}
.obw-input:focus{ outline: none; border-color: #4ADE80; }

.obw-error{
  background: rgba(220,53,69,.12);
  border: 1px solid rgba(220,53,69,.35);
  color: #ff9aa4;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: .8rem;
  display: none;
  margin-bottom: 12px;
  text-align: left;
}
.obw-error.is-visible{ display: block; }

.obw-toggle-row{
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: .86rem;
  color: rgba(255,255,255,.85);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
}
.obw-toggle-row:last-of-type{ border-bottom: none; }
.obw-toggle-row input{ width: 17px; height: 17px; flex-shrink: 0; accent-color: #4ADE80; }

.obw-toggle-row + .obw-btn-primary{ width: 100%; margin-top: 18px; }

@media (max-width: 480px){
  .obw-card{ padding: 26px 20px 22px; }
  .obw-actions{ flex-direction: column-reverse; align-items: stretch; }
  .obw-actions-right{ justify-content: stretch; }
  .obw-actions-right .obw-btn-primary, .obw-actions-right .obw-btn-secondary{ flex: 1; }
  .obw-btn-text{ text-align: center; padding: 6px 0; }
}
