/* =====================================================================
   NovaWebDesign — paginile de cont: login.html + cont.html
   Mobile-first. Folosește câmpurile formularului de ofertă (.form-group, .form-label,
   .form-input, .form-error) și butoanele site-ului (.btn-primary / .btn-secondary).
   Ținte de atingere ≥ 44px, focus vizibil, fără scroll orizontal, safe-area.
   Animații doar din transform / opacity; oprite la prefers-reduced-motion.

   1. Pagina   2. Cardul + vizualizările   3. Tab-uri   4. Formulare   5. Mesaje
   6. Stări (confirmat, conectat…)   7. Contul meu   8. Ecrane mai mari   9. Mișcare redusă
   ===================================================================== */

/* 1. PAGINA ------------------------------------------------------------ */
.auth-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(104px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 64px max(16px, env(safe-area-inset-left, 0px));
}
@supports (overflow: clip) {
  .auth-page { overflow: clip; }
}
/* lumini Nova în fundal (gradiente statice, fără blur live) */
.auth-page::before,
.auth-page::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.auth-page::before {
  width: 560px;
  height: 560px;
  top: -180px;
  right: -220px;
  background: radial-gradient(closest-side, rgba(var(--nv-acc-rgb), .24), rgba(var(--nv-acc-rgb), 0));
  animation: authFloat 16s ease-in-out infinite alternate;
}
.auth-page::after {
  width: 460px;
  height: 460px;
  bottom: -140px;
  left: -200px;
  background: radial-gradient(closest-side, rgba(var(--nv-acc2-rgb), .15), rgba(var(--nv-acc2-rgb), 0));
  animation: authFloat 19s ease-in-out -6s infinite alternate-reverse;
}
@keyframes authFloat {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-24px, 30px, 0); }
}

.auth-wrap {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}
.auth-wrap--wide { max-width: 560px; }

.auth-head {
  text-align: center;
  margin-bottom: 24px;
}
.auth-head .section-label { margin-bottom: .6rem; }
.auth-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 7vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--text-primary);
  text-wrap: balance;
}
.auth-grad {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: .04em;
}
.auth-lead {
  max-width: 34ch;
  margin: 10px auto 0;
  color: var(--text-secondary);
  font-size: clamp(.95rem, 2.8vw, 1.05rem);
  line-height: 1.6;
  text-wrap: pretty;
}

/* 2. CARDUL + VIZUALIZĂRILE ------------------------------------------- */
.auth-card {
  position: relative;
  padding: 22px 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)), rgba(12, 12, 20, .72);
  box-shadow: 0 30px 80px -40px rgba(var(--nv-acc-rgb), .55), inset 0 1px 0 rgba(255, 255, 255, .04);
}
/* linie luminoasă sus, ca la subsolul site-ului */
.auth-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--nv-acc-rgb), .85), rgba(var(--nv-acc2-rgb), .85), transparent);
  pointer-events: none;
}

.auth-view { display: none; }
.auth-card[data-view="checking"]   > [data-view-name="checking"],
.auth-card[data-view="forms"]      > [data-view-name="forms"],
.auth-card[data-view="signed-in"]  > [data-view-name="signed-in"],
.auth-card[data-view="confirmed"]  > [data-view-name="confirmed"],
.auth-card[data-view="recovery"]   > [data-view-name="recovery"],
.auth-card[data-view="reset-done"] > [data-view-name="reset-done"],
.auth-card[data-view="loading"]    > [data-view-name="loading"],
.auth-card[data-view="account"]    > [data-view-name="account"],
.auth-card[data-view="signed-out"] > [data-view-name="signed-out"] {
  display: block;
  animation: authIn 360ms var(--nova-ease, cubic-bezier(.16, 1, .3, 1)) both;
}
@keyframes authIn {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to   { opacity: 1; transform: none; }
}

/* se verifică linkul din email */
.auth-checking {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 0 12px;
  color: var(--text-secondary);
  text-align: center;
}
.auth-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .12);
  border-top-color: var(--nv-acc2);
  animation: authSpin .9s linear infinite;
}
@keyframes authSpin { to { transform: rotate(360deg); } }

/* 3. TAB-URI: Conectare / Cont nou ------------------------------------- */
.auth-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  margin-bottom: 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .035);
}
.auth-tab {
  position: relative;
  z-index: 1;
  min-height: 46px;
  padding: 0 8px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-secondary);
  -webkit-tap-highlight-color: transparent;
  transition: color 200ms ease;
}
.auth-tab[aria-selected="true"] { color: var(--nv-tx); }
.auth-tab:focus-visible {
  outline: 2px solid var(--nv-acc2);
  outline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .auth-tab[aria-selected="false"]:hover { color: var(--text-primary); }
}
/* „cerneala” glisantă (violet → cyan închis: textul alb rămâne lizibil) */
.auth-tabs__ink {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--nv-acc-lo), var(--nv-acc2-lo));
  box-shadow: 0 8px 24px -10px rgba(var(--nv-acc-rgb), .9), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: transform 380ms var(--nova-ease, cubic-bezier(.16, 1, .3, 1));
  pointer-events: none;
}
.auth-tabs[data-active="1"] .auth-tabs__ink { transform: translateX(100%); }

/* 4. FORMULARE ----------------------------------------------------------- */
.auth-form .form-group { margin-bottom: 14px; }
.auth-form .form-input {
  min-height: 48px;
  font-size: 1rem;          /* 16px: fără zoom automat pe iPhone */
}
.auth-form .form-error:empty { min-height: 0; margin-top: 0; }
.auth-form .form-error:not(:empty) { margin-top: 6px; }
.auth-readonly {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, .02);
  cursor: default;
}

/* parolă + butonul „arată” */
.auth-pass { position: relative; }
.auth-pass .form-input { padding-right: 54px; }
.auth-pass .form-input::-ms-reveal,
.auth-pass .form-input::-ms-clear { display: none; }
.auth-eye {
  position: absolute;
  top: 50%;
  right: 2px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--text-secondary);
  transform: translateY(-50%);
  -webkit-tap-highlight-color: transparent;
  transition: color 200ms ease, background-color 200ms ease;
}
.auth-eye svg { width: 20px; height: 20px; }
.auth-eye .auth-eye__hide,
.auth-eye[aria-pressed="true"] .auth-eye__show { display: none; }
.auth-eye[aria-pressed="true"] .auth-eye__hide { display: block; }
.auth-eye[aria-pressed="true"] { color: var(--nv-acc2); }
.auth-eye:focus-visible {
  outline: 2px solid var(--nv-acc2);
  outline-offset: -3px;
}
@media (hover: hover) and (pointer: fine) {
  .auth-eye:hover { color: var(--nv-tx); background: rgba(255, 255, 255, .05); }
}

/* indicatorul de putere */
.auth-meter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.auth-meter__bars {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.auth-meter__bars i {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .1);
  transition: background-color 250ms ease;
}
.auth-meter__label {
  min-width: 8.5em;
  text-align: right;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
}
.auth-meter[data-score="1"] .auth-meter__bars i:nth-child(-n+1) { background: #F87171; }
.auth-meter[data-score="2"] .auth-meter__bars i:nth-child(-n+2) { background: #FBBF24; }
.auth-meter[data-score="3"] .auth-meter__bars i:nth-child(-n+3) { background: var(--nv-acc2); }
.auth-meter[data-score="4"] .auth-meter__bars i { background: #4ADE80; }
.auth-meter[data-score="1"] .auth-meter__label { color: #FCA5A5; }
.auth-meter[data-score="2"] .auth-meter__label { color: #FCD34D; }
.auth-meter[data-score="3"] .auth-meter__label { color: var(--nv-acc2-hi); }
.auth-meter[data-score="4"] .auth-meter__label { color: #86EFAC; }

.auth-hint {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: .8rem;
  line-height: 1.5;
}
.auth-caps {
  display: block;
  margin-top: 6px;
  color: #FCD34D;
  font-size: .8rem;
  font-weight: 600;
}
.auth-caps:empty { display: none; }

/* linkuri-text (Am uitat parola, Înapoi…) */
.auth-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  border-radius: 8px;
  color: var(--nv-acc2-hi);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(var(--nv-acc2-hi-rgb), .35);
  text-underline-offset: 4px;
  -webkit-tap-highlight-color: transparent;
  transition: text-decoration-color 200ms ease, color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .auth-link:hover { color: var(--nv-acc2-hi); text-decoration-color: currentColor; }
}
.auth-row-end {
  display: flex;
  justify-content: flex-end;
  margin: -8px -4px 8px 0;
}
.auth-row-center {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* butonul principal: lățime completă + stare „în lucru” */
.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  font-size: 1rem;
  text-align: center;
}
.auth-submit[aria-busy="true"],
.auth-actions [aria-busy="true"],
.auth-alert__btn[aria-busy="true"] { cursor: progress; }
.auth-submit[aria-disabled="true"],
.auth-actions [aria-disabled="true"] {
  transform: none !important;
  opacity: .85;
}
.auth-submit[aria-busy="true"]::before,
.auth-actions .btn-secondary[aria-busy="true"]::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: authSpin .8s linear infinite;
}

.auth-subtitle {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.auth-subtitle:focus { outline: none; }
.auth-text {
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.6;
  margin-bottom: 14px;
}
.auth-text--muted { color: var(--text-muted); font-size: .875rem; }
.auth-email {
  color: var(--text-primary);
  font-weight: 600;
  overflow-wrap: anywhere;
}
/* email încă necunoscut (SDK-ul se încarcă): loc rezervat, fără salt */
.auth-email:empty::before,
.acc-email:empty::before {
  content: '';
  display: inline-block;
  width: 11em;
  max-width: 100%;
  height: .85em;
  border-radius: 6px;
  vertical-align: -1px;
  background: rgba(255, 255, 255, .1);
  animation: authPulse 1.2s ease-in-out infinite;
}
@keyframes authPulse { 50% { opacity: .45; } }

/* Google (pregătit, ascuns) */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .08);
}
.auth-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid #dadce0;
  background: #fff;
  color: #1f1f1f;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
}
.auth-google svg { width: 18px; height: 18px; flex: none; }
.auth-google:disabled { opacity: .55; cursor: not-allowed; }

/* notă de securitate */
.auth-secure {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  color: var(--text-muted);
  font-size: .8125rem;
  line-height: 1.55;
}
.auth-secure svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--nv-acc2);
}

.auth-aside {
  margin-top: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: .875rem;
  line-height: 1.5;
}
.auth-aside a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--nv-acc2-hi);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(var(--nv-acc2-hi-rgb), .35);
  text-underline-offset: 4px;
}

/* 5. MESAJE (erori / confirmări / informații) --------------------------- */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(var(--nv-acc-rgb), .35);
  background: rgba(var(--nv-acc-rgb), .1);
  color: var(--nv-acc-pale);
  font-size: .9rem;
  line-height: 1.55;
  animation: authIn 300ms var(--nova-ease, cubic-bezier(.16, 1, .3, 1)) both;
}
.auth-alert[hidden] { display: none; }
.auth-alert--error { border-color: rgba(248, 113, 113, .45); background: rgba(239, 68, 68, .1); color: #FEE2E2; }
.auth-alert--success { border-color: rgba(74, 222, 128, .4); background: rgba(34, 197, 94, .09); color: #DCFCE7; }
.auth-alert__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: -1px;
  color: var(--nv-acc-pale);
}
.auth-alert--error .auth-alert__icon { color: #FCA5A5; }
.auth-alert--success .auth-alert__icon { color: #86EFAC; }
.auth-alert__icon svg { width: 22px; height: 22px; }
.auth-alert__body { flex: 1; min-width: 0; }
.auth-alert__text { margin: 0; overflow-wrap: anywhere; }
.auth-alert__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  margin-top: 2px;
}
.auth-alert__actions[hidden] { display: none; }
.auth-alert__btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  color: var(--nv-tx);
  font-size: .875rem;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .45);
  text-underline-offset: 4px;
}
.auth-alert__btn:focus-visible {
  outline: 2px solid var(--nv-acc2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 6. STĂRI: conectat, confirmat, email trimis, parolă schimbată -------- */
.auth-state {
  text-align: center;
  padding: 6px 0 2px;
}
.auth-state .auth-text { max-width: 36ch; margin-left: auto; margin-right: auto; }
.auth-state__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: var(--nv-tx);
  background: linear-gradient(135deg, rgba(var(--nv-acc-rgb), .9), rgba(var(--nv-acc2-rgb), .75));
  box-shadow: 0 14px 34px -14px rgba(var(--nv-acc-rgb), .95), 0 0 24px -8px rgba(var(--nv-acc2-rgb), .7);
}
.auth-state__icon svg { width: 28px; height: 28px; }
.auth-state__icon--ok {
  background: linear-gradient(135deg, #22C55E, var(--nv-acc2));
  box-shadow: 0 14px 34px -14px rgba(34, 197, 94, .9), 0 0 24px -8px rgba(var(--nv-acc2-rgb), .7);
  animation: authPop 520ms var(--nova-ease, cubic-bezier(.16, 1, .3, 1)) both;
}
@keyframes authPop {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; transform: none; }
}
.auth-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: var(--nv-on-acc);
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(var(--nv-bg-rgb), .35);
  box-shadow: 0 14px 34px -14px rgba(var(--nv-acc-rgb), .95), 0 0 24px -8px rgba(var(--nv-acc2-rgb), .7);
}
/* punct verde: conectat */
.auth-avatar::after {
  content: '';
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 3px var(--nv-card), 0 0 10px rgba(74, 222, 128, .7);
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.auth-actions > .btn-primary,
.auth-actions > .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  text-align: center;
}
.auth-state .auth-actions { margin-top: 18px; }

/* 7. CONTUL MEU ------------------------------------------------------------ */
.acc-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}
.acc-profile .acc-avatar {
  flex: none;
  width: 60px;
  height: 60px;
  margin: 0;
  font-size: 1.5rem;
}
.acc-id { min-width: 0; }
.acc-label {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.acc-email {
  margin-top: 2px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.acc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, .32);
  background: rgba(34, 197, 94, .1);
  color: #86EFAC;
  font-size: .75rem;
  font-weight: 600;
}
.acc-badge[hidden] { display: none; }
.acc-badge svg { width: 13px; height: 13px; }
.acc-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 20px 0 0;
}
.acc-meta > div {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .03);
}
.acc-meta dt {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.acc-meta dd {
  margin: 4px 0 0;
  color: var(--text-primary);
  font-size: .95rem;
}
.acc-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: .875rem;
  line-height: 1.55;
}
.acc-note svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--nv-acc2-hi);
}

/* schelet cât timp se încarcă datele contului */
.acc-skel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 4px 0 8px;
}
.acc-skel__avatar {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  animation: authPulse 1.2s ease-in-out infinite;
}
.acc-skel__lines {
  flex: 1;
  display: grid;
  gap: 10px;
}
.acc-skel__lines span {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  animation: authPulse 1.2s ease-in-out infinite;
}
.acc-skel__lines span:first-child { width: 40%; }
.acc-skel__lines span:last-child { width: 75%; }

/* 8. ECRANE MAI MARI ------------------------------------------------------ */
@media (min-width: 480px) {
  .auth-card { padding: 30px 30px 24px; border-radius: 24px; }
  .auth-actions { flex-direction: row; }
  .auth-actions > .btn-primary,
  .auth-actions > .btn-secondary { flex: 1 1 0; width: auto; }
  .acc-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 769px) {
  .auth-page { padding-top: calc(128px + env(safe-area-inset-top, 0px)); padding-bottom: 96px; }
  .auth-head { margin-bottom: 30px; }
}
/* ecrane joase (telefon culcat): mai puțin spațiu sus */
@media (max-height: 500px) and (orientation: landscape) {
  .auth-page { padding-top: calc(100px + env(safe-area-inset-top, 0px)); }
}

/* 9. MIȘCARE REDUSĂ ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .auth-page::before,
  .auth-page::after,
  .auth-card > .auth-view,
  .auth-alert,
  .auth-state__icon--ok,
  .auth-email:empty::before,
  .acc-email:empty::before,
  .acc-skel__avatar,
  .acc-skel__lines span {
    animation: none !important;
  }
  .auth-tabs__ink,
  .auth-tab,
  .auth-eye,
  .auth-link,
  .auth-meter__bars i {
    transition: none !important;
  }
}

/* 10. OFERTA DE CONT NOU, GOOGLE, PREFERINȚE --------------------------------- */
/* „Cont nou = 5% reducere la prima comandă” */
.auth-perk {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 420px;
  margin: 16px auto 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(var(--nv-acc-rgb), .28);
  background: linear-gradient(135deg, rgba(var(--nv-acc-rgb), .12), rgba(var(--nv-acc2-rgb), .06));
  color: var(--text-secondary);
  font-size: .875rem;
  line-height: 1.55;
  text-align: left;
}
.auth-perk strong { color: var(--text-primary); font-weight: 600; }
.auth-perk__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(var(--nv-acc-rgb), .18);
  color: var(--nv-acc-pale);
}
.auth-perk__icon svg { width: 18px; height: 18px; }
.auth-perk--inline { margin: 16px 0 0; max-width: none; }

/* Se verifică: linkul din email SAU revenirea din Google */
.auth-checking__oauth,
.nw-auth-oauth .auth-checking__email { display: none; }
.nw-auth-oauth .auth-checking__oauth { display: inline; }

/* Google: vizibil din prima clipă dacă sesiunea știe deja că e pornit */
.nw-google .auth-oauth[hidden] { display: block; }
/* textul de sus: „cu email sau cu Google” doar când butonul Google chiar apare */
.auth-lead-google { display: none; }
.nw-google .auth-lead-google { display: inline; }
.nw-google .auth-lead-email { display: none; }
.auth-google {
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.auth-google:hover { background: #f7f8f8; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5); }
.auth-google:active { transform: scale(.985); }
.auth-google:focus-visible { outline: 2px solid var(--nv-acc2); outline-offset: 3px; }
.auth-google[aria-disabled="true"] { cursor: progress; opacity: .8; }
.auth-oauth__note {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: .78rem;
  line-height: 1.5;
  text-align: center;
}
.auth-oauth__note a,
.nw-check__text a {
  color: var(--nv-acc2-hi);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Bifele de la cont nou */
.nw-checks { display: grid; gap: 4px; margin: 4px 0 6px; }

/* Contul meu: oferta + preferința pentru oferte pe email */
.acc-perk {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(var(--nv-acc-rgb), .28);
  background: linear-gradient(135deg, rgba(var(--nv-acc-rgb), .12), rgba(var(--nv-acc2-rgb), .06));
}
.acc-perk p {
  margin: 0;
  color: var(--text-secondary);
  font-size: .875rem;
  line-height: 1.55;
}
.acc-perk strong { color: var(--text-primary); font-weight: 600; }
/* după prima cerere trimisă, textul nu mai promite reducerea */
.acc-perk__used,
.acc-perk__ten { display: none; }
.nw-offer-used .acc-perk__new { display: none; }
.nw-offer-used .acc-perk__used { display: block; }
.nw-offer-10 .acc-perk__new,
.nw-offer-10 .acc-perk__used { display: none; }
.nw-offer-10 .acc-perk__ten { display: block; }
/* titlurile secțiunilor din Contul meu */
.acc-section-title {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.acc-section-title + .acc-perk,
.acc-section-title + .acc-pref { margin-top: 10px; }
/* date salvate pentru cereri */
.acc-saved { padding: 12px 14px; }
.acc-saved__list { display: grid; gap: 8px; margin: 0 0 12px; }
.acc-saved__list div { display: flex; justify-content: space-between; gap: 12px; }
.acc-saved__list dt { color: var(--text-muted); font-size: .875rem; }
.acc-saved__list dd { margin: 0; color: var(--text-primary); font-size: .875rem; text-align: right; overflow-wrap: anywhere; }
.acc-saved__empty { margin: 0; color: var(--text-secondary); font-size: .875rem; line-height: 1.55; }
.acc-saved__clear { min-height: 44px; }
.acc-saved__list[hidden],
.acc-saved__empty[hidden],
.acc-saved__clear[hidden] { display: none; }
.acc-pref {
  margin-top: 14px;
  padding: 6px 14px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .025);
}
.acc-pref__hint {
  margin: 0 0 0 36px;
  color: var(--text-muted);
  font-size: .8rem;
  line-height: 1.5;
}
.acc-pref__status {
  margin: 6px 0 0 36px;
  color: var(--text-secondary);
  font-size: .8rem;
  line-height: 1.5;
}
.acc-pref__status:empty { display: none; }
.acc-pref__status.is-ok { color: #86EFAC; }
.acc-pref__status.is-error { color: #FCA5A5; }

/* Contul meu: comenzile de mentenanță */
.acc-orders { padding: 12px 14px; }
.acc-orders__msg { margin: 0; color: var(--text-secondary); font-size: .875rem; line-height: 1.55; }
.acc-orders__msg a { color: var(--accent-secondary, var(--nv-acc2)); text-decoration: underline; text-underline-offset: 3px; }
.acc-orders__msg--err { color: #fecaca; }
.acc-orders__msg[hidden], .acc-orders__list[hidden] { display: none; }
/* „Acesta este numărul comenzii / cererii tale…”: doar când lista are ceva */
.acc-ref-note { margin: 10px 0 0; }
.acc-orders__list[hidden] ~ .acc-ref-note { display: none; }
.acc-orders__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.acc-order {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
}
.acc-order__ref { font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: var(--text-primary); white-space: nowrap; }
.acc-order__meta { flex-basis: 100%; font-size: .85rem; color: var(--text-secondary); }
.acc-order__status {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--nv-acc-pale);
  background: rgba(var(--nv-acc-rgb), .18);
  border: 1px solid rgba(var(--nv-acc-rgb), .35);
}
.acc-order__status[data-s="activa"], .acc-order__status[data-s="platita"] { color: #d1fae5; background: rgba(74, 222, 128, .12); border-color: rgba(74, 222, 128, .35); }
.acc-order__status[data-s="anulata"], .acc-order__status[data-s="returnata"], .acc-order__status[data-s="suspendata"] { color: #fecaca; background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .3); }
.acc-order__status[data-s="local"] { color: #fde68a; background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .3); }
