/* ==========================================================================
   HRI Academy — foaie de stil partajata (design system)
   Platforma interna de instruire in securitate pentru Expertarom.
   Temă deschisă, profesională, de încredere. Font de sistem (CSP: fără fonturi externe).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Token-uri de design (variabile CSS)
   -------------------------------------------------------------------------- */
:root {
  /* Culori de marcă — accent teal/indigo, corporate-clean */
  --brand-50:  #eef6f7;
  --brand-100: #d3e9ec;
  --brand-200: #a7d3d9;
  --brand-300: #6fb5bf;
  --brand-400: #3d94a1;
  --brand-500: #1f7682;  /* accent principal */
  --brand-600: #175d68;
  --brand-700: #124a53;
  --brand-800: #0f3b43;
  --brand-900: #0b2b31;

  /* Accent secundar — indigo profund pentru contrast */
  --accent-500: #4f46e5;
  --accent-600: #4338ca;
  --accent-50:  #eef0fe;

  /* Neutre */
  --gray-0:   #ffffff;
  --gray-50:  #f7f9fa;
  --gray-100: #eef1f4;
  --gray-150: #e4e9ee;
  --gray-200: #d8dee4;
  --gray-300: #c2cbd3;
  --gray-400: #97a3ae;
  --gray-500: #6b7682;
  --gray-600: #525b66;
  --gray-700: #3c444d;
  --gray-800: #272d34;
  --gray-900: #171b20;

  /* Semantice */
  --succes-50:  #e9f7ef;
  --succes-100: #c9ecd8;
  --succes-500: #18794e;
  --succes-600: #136b43;
  --warn-50:    #fff6e6;
  --warn-100:   #ffe9bf;
  --warn-500:   #b45309;
  --warn-600:   #92400e;
  --pericol-50: #fdecec;
  --pericol-100:#facdcd;
  --pericol-500:#c0362c;
  --pericol-600:#a02a22;
  --info-50:    #e8f2fd;
  --info-500:   #1d6fd0;

  /* Suprafețe / fundal */
  --bg-app:     var(--gray-50);
  --bg-surface: var(--gray-0);
  --bg-subtle:  var(--gray-100);
  --bg-inset:   var(--gray-50);

  /* Text */
  --text-tare:    var(--gray-900);
  --text-normal:  var(--gray-700);
  --text-slab:    var(--gray-500);
  --text-inversat:#ffffff;

  /* Borduri */
  --bord:        var(--gray-200);
  --bord-tare:   var(--gray-300);
  --bord-focus:  var(--brand-400);

  /* Spațiere (grilă 4px) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;

  /* Raze */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  20px;
  --r-pill: 999px;

  /* Umbre */
  --um-xs: 0 1px 2px rgba(16, 32, 40, 0.06);
  --um-sm: 0 1px 3px rgba(16, 32, 40, 0.08), 0 1px 2px rgba(16, 32, 40, 0.04);
  --um-md: 0 4px 12px rgba(16, 32, 40, 0.08), 0 2px 4px rgba(16, 32, 40, 0.04);
  --um-lg: 0 12px 28px rgba(16, 32, 40, 0.12), 0 4px 8px rgba(16, 32, 40, 0.06);
  --um-focus: 0 0 0 3px rgba(31, 118, 130, 0.28);

  /* Tipografie — font de sistem (fără fonturi externe din cauza CSP) */
  --font-baza: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --fs-xs:  0.75rem;
  --fs-sm:  0.8125rem;
  --fs-md:  0.9375rem;
  --fs-base:1rem;
  --fs-lg:  1.125rem;
  --fs-xl:  1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 3rem;

  --lh-strans: 1.2;
  --lh-normal: 1.5;
  --lh-relaxat:1.65;

  /* Tranziții */
  --tr-rapid:  120ms cubic-bezier(0.4, 0, 0.2, 1);
  --tr-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --tr-lent:   320ms cubic-bezier(0.22, 1, 0.36, 1);

  /* Mișcare continuă în player (bucle după intrare) */
  --bucla-plutire:    5.2s;
  --bucla-puls:       2.6s;
  --bucla-tremur:     4.8s;
  --bucla-stralucire: 3.2s;
  --bucla-respiratie: 6s;
  --bucla-fundal:     22s;
  --scena-accent:     #ffe08a;
  --halo-alb:     rgba(255, 255, 255, 0.45);
  --halo-accent:  rgba(255, 224, 138, 0.6);
  --halo-pericol: rgba(239, 83, 70, 0.6);
  --halo-succes:  rgba(52, 199, 120, 0.55);
  --halo-warn:    rgba(245, 166, 35, 0.55);

  /* Naratoarea Ana (avatar SVG) */
  --ana-piele:        #f3c9a5;
  --ana-piele-umbra:  #e3ab86;
  --ana-par:          #3a2a22;
  --ana-buze:         #a2443f;
  --ana-obraz:        #f08f84;
  --ana-casca:        var(--gray-800);

  /* Dimensiuni de layout */
  --nav-h: 60px;
  --container-max: 1120px;
  --z-nav: 100;
  --z-toast: 500;
  --z-modal: 600;
}

/* --------------------------------------------------------------------------
   2. Resetare & baza
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-baza);
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  color: var(--text-normal);
  background-color: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-tare);
  line-height: var(--lh-strans);
  font-weight: 650;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { line-height: var(--lh-relaxat); }

a { color: var(--brand-600); text-decoration: none; transition: color var(--tr-rapid); }
a:hover { color: var(--brand-700); text-decoration: underline; }

img, svg { display: block; max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--bord-focus);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: var(--brand-200); color: var(--brand-900); }

.vizual-ascuns {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout utilitare
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.pagina {
  padding-top: var(--sp-10);
  padding-bottom: var(--sp-20);
  min-height: calc(100vh - var(--nav-h));
}

.rand { display: flex; align-items: center; gap: var(--sp-3); }
.rand-intre { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.coloana { display: flex; flex-direction: column; }
.flex-1 { flex: 1; }
.spatiu > * + * { margin-top: var(--sp-4); }

/* --------------------------------------------------------------------------
   4. Navigație (partajată)
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--bord);
}
.nav__inner {
  height: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.nav__marca {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--text-tare);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.nav__marca:hover { text-decoration: none; color: var(--text-tare); }
.nav__logo {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: var(--um-sm);
  flex: none;
}
.nav__linkuri {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-left: var(--sp-4);
}
.nav__link {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  color: var(--text-normal);
  font-weight: 550;
  font-size: var(--fs-md);
  transition: background var(--tr-rapid), color var(--tr-rapid);
}
.nav__link:hover { background: var(--bg-subtle); color: var(--text-tare); text-decoration: none; }
.nav__link--activ { color: var(--brand-600); background: var(--brand-50); }
.nav__dreapta { margin-left: auto; display: flex; align-items: center; gap: var(--sp-3); }
.nav__user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
}
.nav__user-nume { font-weight: 600; color: var(--text-tare); font-size: var(--fs-md); }
.nav__user-rol { font-size: var(--fs-xs); color: var(--text-slab); text-transform: capitalize; }
.nav__avatar {
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  background: var(--brand-100);
  color: var(--brand-700);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: var(--fs-sm);
  flex: none;
}
.nav__burger {
  display: none;
  background: none;
  border: 1px solid var(--bord);
  border-radius: var(--r-sm);
  width: 40px; height: 38px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__burger span {
  display: block; width: 18px; height: 2px;
  background: var(--text-normal);
  position: relative;
}
.nav__burger span::before, .nav__burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: var(--text-normal);
}
.nav__burger span::before { top: -5px; }
.nav__burger span::after  { top: 5px; }

@media (max-width: 760px) {
  .nav__burger { display: flex; }
  .nav__linkuri, .nav__dreapta {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--bord);
    padding: var(--sp-3);
    gap: var(--sp-1);
    margin: 0;
    box-shadow: var(--um-md);
    display: none;
  }
  .nav__dreapta { top: auto; }
  .nav[data-deschis="1"] .nav__linkuri,
  .nav[data-deschis="1"] .nav__dreapta {
    display: flex;
  }
  .nav__dreapta { position: static; }
  .nav[data-deschis="1"] .nav__dreapta {
    position: absolute;
    top: calc(var(--nav-h) + 140px);
    border-top: none;
  }
  .nav__user { align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   5. Butoane
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background var(--tr-rapid), border-color var(--tr-rapid),
    box-shadow var(--tr-rapid), transform var(--tr-rapid), color var(--tr-rapid);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn:focus-visible { outline: none; box-shadow: var(--um-focus); }

.btn--primar {
  background: var(--brand-500);
  color: #fff;
  box-shadow: var(--um-xs);
}
.btn--primar:hover:not(:disabled) { background: var(--brand-600); text-decoration: none; color: #fff; }

.btn--secundar {
  background: var(--bg-surface);
  color: var(--text-tare);
  border-color: var(--bord-tare);
  box-shadow: var(--um-xs);
}
.btn--secundar:hover:not(:disabled) { background: var(--gray-50); border-color: var(--gray-400); text-decoration: none; color: var(--text-tare); }

.btn--fantoma {
  background: transparent;
  color: var(--brand-600);
}
.btn--fantoma:hover:not(:disabled) { background: var(--brand-50); text-decoration: none; }

.btn--pericol {
  background: var(--pericol-500);
  color: #fff;
}
.btn--pericol:hover:not(:disabled) { background: var(--pericol-600); color: #fff; text-decoration: none; }

.btn--succes {
  background: var(--succes-500);
  color: #fff;
}
.btn--succes:hover:not(:disabled) { background: var(--succes-600); color: #fff; text-decoration: none; }

.btn--mic { padding: var(--sp-2) var(--sp-3); font-size: var(--fs-sm); border-radius: var(--r-sm); }
.btn--mare { padding: var(--sp-4) var(--sp-6); font-size: var(--fs-base); }
.btn--bloc { display: flex; width: 100%; }

.btn__spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: hri-rotire 0.7s linear infinite;
}

/* --------------------------------------------------------------------------
   6. Carduri
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--bord);
  border-radius: var(--r-lg);
  box-shadow: var(--um-sm);
}
.card__corp { padding: var(--sp-6); }
.card__cap {
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--bord);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.card__titlu { font-size: var(--fs-lg); font-weight: 650; }
.card--interactiv { transition: box-shadow var(--tr-normal), transform var(--tr-normal), border-color var(--tr-normal); }
.card--interactiv:hover { box-shadow: var(--um-md); transform: translateY(-2px); border-color: var(--bord-tare); }

/* Card de statistică */
.stat {
  background: var(--bg-surface);
  border: 1px solid var(--bord);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  box-shadow: var(--um-sm);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.stat__icon {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  flex: none;
  color: var(--brand-600);
  background: var(--brand-50);
}
.stat__icon svg { width: 22px; height: 22px; }
.stat__icon--accent { color: var(--accent-600); background: var(--accent-50); }
.stat__icon--succes { color: var(--succes-500); background: var(--succes-50); }
.stat__icon--warn   { color: var(--warn-500);   background: var(--warn-50); }
.stat__valoare { font-size: var(--fs-2xl); font-weight: 720; color: var(--text-tare); line-height: 1.1; }
.stat__eticheta { font-size: var(--fs-sm); color: var(--text-slab); margin-top: 2px; }

.grila-statistici {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--sp-4);
}

/* --------------------------------------------------------------------------
   7. Formulare
   -------------------------------------------------------------------------- */
.camp { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.camp__eticheta { font-size: var(--fs-sm); font-weight: 600; color: var(--text-tare); }
.camp__indiciu { font-size: var(--fs-xs); color: var(--text-slab); }

.input, .select, .textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-3);
  background: var(--bg-surface);
  border: 1px solid var(--bord-tare);
  border-radius: var(--r-md);
  font-size: var(--fs-md);
  color: var(--text-tare);
  transition: border-color var(--tr-rapid), box-shadow var(--tr-rapid);
}
.input::placeholder, .textarea::placeholder { color: var(--gray-400); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--bord-focus);
  box-shadow: var(--um-focus);
}
.input:disabled, .select:disabled { background: var(--gray-100); color: var(--text-slab); cursor: not-allowed; }
.input[aria-invalid="true"] { border-color: var(--pericol-500); }
.textarea { resize: vertical; min-height: 90px; line-height: var(--lh-normal); }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7682' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-3) center;
  padding-right: var(--sp-10);
}
.camp__eroare { color: var(--pericol-600); font-size: var(--fs-sm); font-weight: 500; }

/* Checkbox / radio */
.alegere {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--bord);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--tr-rapid), background var(--tr-rapid);
  background: var(--bg-surface);
}
.alegere:hover { border-color: var(--bord-focus); background: var(--brand-50); }
.alegere input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--brand-500); flex: none; }
.alegere--selectat { border-color: var(--brand-400); background: var(--brand-50); }

/* --------------------------------------------------------------------------
   8. Insigne (badges)
   -------------------------------------------------------------------------- */
.insigna {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 3px var(--sp-2);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.insigna__punct { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.insigna--neutru  { background: var(--gray-100); color: var(--gray-600); }
.insigna--brand   { background: var(--brand-50); color: var(--brand-700); }
.insigna--succes  { background: var(--succes-50); color: var(--succes-500); }
.insigna--warn    { background: var(--warn-50); color: var(--warn-600); }
.insigna--pericol { background: var(--pericol-50); color: var(--pericol-600); }
.insigna--info    { background: var(--info-50); color: var(--info-500); }
.insigna--accent  { background: var(--accent-50); color: var(--accent-600); }

/* Nivel: incepator / intermediar / avansat */
.insigna--incepator   { background: var(--succes-50); color: var(--succes-500); }
.insigna--intermediar { background: var(--warn-50); color: var(--warn-600); }
.insigna--avansat     { background: var(--pericol-50); color: var(--pericol-600); }

/* --------------------------------------------------------------------------
   9. Bara de progres
   -------------------------------------------------------------------------- */
.progres {
  width: 100%;
  height: 8px;
  background: var(--gray-150);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.progres__bara {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
  border-radius: var(--r-pill);
  transition: width var(--tr-lent);
}
.progres--subtire { height: 5px; }

/* --------------------------------------------------------------------------
   10. Tabel
   -------------------------------------------------------------------------- */
.tabel-invelis { overflow-x: auto; border: 1px solid var(--bord); border-radius: var(--r-lg); background: var(--bg-surface); }
.tabel {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-md);
  min-width: 640px;
}
.tabel th {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-slab);
  font-weight: 650;
  background: var(--gray-50);
  border-bottom: 1px solid var(--bord);
  white-space: nowrap;
}
.tabel td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
  color: var(--text-normal);
}
.tabel tr:last-child td { border-bottom: none; }
.tabel tbody tr { transition: background var(--tr-rapid); }
.tabel tbody tr:hover { background: var(--gray-50); }
.tabel__nume { font-weight: 600; color: var(--text-tare); }
.tabel__sub  { font-size: var(--fs-xs); color: var(--text-slab); }

/* --------------------------------------------------------------------------
   11. Toast-uri (notificări)
   -------------------------------------------------------------------------- */
.toast-zona {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-width: min(360px, calc(100vw - 32px));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--gray-900);
  color: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--um-lg);
  font-size: var(--fs-md);
  animation: hri-toast-in var(--tr-lent) both;
}
.toast--iese { animation: hri-toast-out var(--tr-normal) forwards; }
.toast__icon { flex: none; margin-top: 1px; }
.toast__icon svg { width: 18px; height: 18px; }
.toast--succes { background: #13463a; }
.toast--eroare { background: #5a1f1a; }
.toast--info   { background: var(--gray-900); }
.toast__text { line-height: var(--lh-normal); }
.toast__inchide {
  background: none; border: none; color: rgba(255,255,255,0.7);
  cursor: pointer; padding: 0; margin-left: auto; line-height: 1;
  font-size: 18px;
}
.toast__inchide:hover { color: #fff; }

/* --------------------------------------------------------------------------
   12. Modal
   -------------------------------------------------------------------------- */
.modal-fundal {
  position: fixed; inset: 0;
  background: rgba(16, 27, 32, 0.5);
  backdrop-filter: blur(2px);
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--sp-4);
  animation: hri-fade-in var(--tr-normal) both;
}
.modal {
  background: var(--bg-surface);
  border-radius: var(--r-xl);
  box-shadow: var(--um-lg);
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  animation: hri-modal-in var(--tr-lent) both;
}
.modal__cap {
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--bord);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
}
.modal__titlu { font-size: var(--fs-lg); font-weight: 650; }
.modal__corp { padding: var(--sp-6); }
.modal__subsol {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--bord);
  display: flex; justify-content: flex-end; gap: var(--sp-3);
  background: var(--gray-50);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.modal__inchide {
  background: none; border: none; cursor: pointer;
  color: var(--text-slab); padding: var(--sp-1); border-radius: var(--r-sm);
  display: grid; place-items: center;
}
.modal__inchide:hover { background: var(--gray-100); color: var(--text-tare); }

/* --------------------------------------------------------------------------
   13. Alerte / casete
   -------------------------------------------------------------------------- */
.alerta {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  font-size: var(--fs-md);
  border: 1px solid transparent;
  line-height: var(--lh-normal);
}
.alerta__icon { flex: none; margin-top: 1px; }
.alerta__icon svg { width: 18px; height: 18px; }
.alerta--eroare  { background: var(--pericol-50); color: var(--pericol-600); border-color: var(--pericol-100); }
.alerta--succes  { background: var(--succes-50); color: var(--succes-600); border-color: var(--succes-100); }
.alerta--warn    { background: var(--warn-50); color: var(--warn-600); border-color: var(--warn-100); }
.alerta--info    { background: var(--info-50); color: var(--info-500); border-color: #cfe3fb; }
.alerta ul { margin: var(--sp-1) 0 0; padding-left: var(--sp-5); }

/* --------------------------------------------------------------------------
   14. Stări goale & încărcare
   -------------------------------------------------------------------------- */
.gol {
  text-align: center;
  padding: var(--sp-12) var(--sp-6);
  color: var(--text-slab);
}
.gol__icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--sp-4);
  border-radius: var(--r-lg);
  background: var(--brand-50);
  color: var(--brand-400);
  display: grid; place-items: center;
}
.gol__icon svg { width: 28px; height: 28px; }
.gol__titlu { font-size: var(--fs-lg); font-weight: 650; color: var(--text-tare); margin-bottom: var(--sp-2); }
.gol__text { max-width: 420px; margin: 0 auto var(--sp-4); }

.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--brand-500);
  border-radius: 50%;
  animation: hri-rotire 0.7s linear infinite;
  margin: var(--sp-10) auto;
}

.schelet {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-150) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: hri-shimmer 1.3s ease-in-out infinite;
  border-radius: var(--r-sm);
}

/* --------------------------------------------------------------------------
   15. Antet de pagină
   -------------------------------------------------------------------------- */
.antet-pagina { margin-bottom: var(--sp-8); }
.antet-pagina__titlu { font-size: var(--fs-3xl); margin-bottom: var(--sp-2); }
.antet-pagina__sub { color: var(--text-slab); font-size: var(--fs-base); max-width: 56ch; }

.eticheta-sectie {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: var(--sp-2);
}

/* --------------------------------------------------------------------------
   16. Utilitare text / spațiere
   -------------------------------------------------------------------------- */
.t-slab { color: var(--text-slab); }
.t-mic { font-size: var(--fs-sm); }
.t-xs { font-size: var(--fs-xs); }
.t-tare { color: var(--text-tare); font-weight: 600; }
.t-centru { text-align: center; }
.mono { font-family: var(--font-mono); }
.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }

/* --------------------------------------------------------------------------
   17. Animații (chei)
   -------------------------------------------------------------------------- */
@keyframes hri-rotire { to { transform: rotate(360deg); } }
@keyframes hri-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes hri-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hri-toast-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes hri-toast-out { to { opacity: 0; transform: translateX(20px); } }
@keyframes hri-modal-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes hri-sus { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.apare { animation: hri-sus var(--tr-lent) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------------------
   18. Autentificare
   -------------------------------------------------------------------------- */
.auth-pagina {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(31, 118, 130, 0.08), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(79, 70, 229, 0.06), transparent 55%),
    var(--bg-app);
}
@media (min-width: 880px) {
  .auth-pagina { grid-template-columns: 1.05fr 1fr; }
}

.auth-marca {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--sp-12);
  color: #fff;
  background:
    radial-gradient(800px 500px at 20% 0%, rgba(255,255,255,0.08), transparent 60%),
    linear-gradient(155deg, var(--brand-700), var(--brand-900));
  position: relative;
  overflow: hidden;
}
@media (min-width: 880px) { .auth-marca { display: flex; } }
.auth-marca::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
}
.auth-marca__sus, .auth-marca__jos, .auth-marca__centru { position: relative; z-index: 1; }
.auth-marca__logo {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-weight: 800; font-size: var(--fs-xl); letter-spacing: -0.02em;
}
.auth-marca__logo span.ico {
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(255,255,255,0.15);
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.2);
}
.auth-marca__titlu { font-size: var(--fs-4xl); color: #fff; line-height: 1.1; margin-bottom: var(--sp-4); max-width: 14ch; }
.auth-marca__text { color: rgba(255,255,255,0.82); font-size: var(--fs-lg); max-width: 42ch; line-height: var(--lh-relaxat); }
.auth-marca__lista { list-style: none; padding: 0; margin-top: var(--sp-8); display: flex; flex-direction: column; gap: var(--sp-4); }
.auth-marca__lista li { display: flex; align-items: center; gap: var(--sp-3); color: rgba(255,255,255,0.92); }
.auth-marca__lista .ico {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: rgba(255,255,255,0.14); display: grid; place-items: center;
}
.auth-marca__jos { color: rgba(255,255,255,0.6); font-size: var(--fs-sm); }

.auth-panou {
  display: grid;
  place-items: center;
  padding: var(--sp-6);
}
.auth-card {
  width: 100%;
  max-width: 400px;
  animation: hri-sus var(--tr-lent) both;
}
.auth-card__logo-mobil {
  display: flex; align-items: center; gap: var(--sp-2);
  justify-content: center; margin-bottom: var(--sp-6);
  font-weight: 800; font-size: var(--fs-xl); color: var(--text-tare);
}
@media (min-width: 880px) { .auth-card__logo-mobil { display: none; } }
.auth-card__logo-mobil .ico {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff; display: grid; place-items: center;
}
.auth-card__titlu { font-size: var(--fs-2xl); margin-bottom: var(--sp-1); }
.auth-card__sub { color: var(--text-slab); margin-bottom: var(--sp-6); }
.auth-card__nota { margin-top: var(--sp-6); text-align: center; color: var(--text-slab); font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   19. 404
   -------------------------------------------------------------------------- */
.pagina-404 {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--sp-6);
  text-align: center;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(31, 118, 130, 0.07), transparent 60%),
    var(--bg-app);
}
.pagina-404__cod {
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   20. Hero / CTA panou
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: var(--sp-10) var(--sp-8);
  color: #fff;
  background:
    radial-gradient(700px 400px at 90% -20%, rgba(255,255,255,0.10), transparent 60%),
    linear-gradient(135deg, var(--brand-600), var(--brand-800));
  box-shadow: var(--um-md);
  margin-bottom: var(--sp-8);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 20px 20px; opacity: 0.6; pointer-events: none;
}
.hero__continut { position: relative; z-index: 1; max-width: 60ch; }
.hero__salut { font-size: var(--fs-sm); color: rgba(255,255,255,0.75); font-weight: 600; letter-spacing: 0.02em; }
.hero__titlu { color: #fff; font-size: var(--fs-3xl); margin: var(--sp-2) 0 var(--sp-3); }
.hero__text { color: rgba(255,255,255,0.86); font-size: var(--fs-lg); margin-bottom: var(--sp-6); }
.hero .btn--primar { background: #fff; color: var(--brand-700); }
.hero .btn--primar:hover { background: rgba(255,255,255,0.9); color: var(--brand-800); }
.hero__progres { margin-top: var(--sp-6); max-width: 360px; }
.hero__progres .progres { background: rgba(255,255,255,0.2); }
.hero__progres .progres__bara { background: #fff; }
.hero__progres-text { font-size: var(--fs-sm); color: rgba(255,255,255,0.85); margin-bottom: var(--sp-2); }

/* --------------------------------------------------------------------------
   21. Certificate
   -------------------------------------------------------------------------- */
.certificat {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4);
  border: 1px solid var(--bord);
  border-radius: var(--r-md);
  background: var(--bg-surface);
  transition: border-color var(--tr-rapid), box-shadow var(--tr-rapid);
}
.certificat:hover { border-color: var(--brand-300); box-shadow: var(--um-sm); }
.certificat__medalie {
  width: 46px; height: 46px; border-radius: var(--r-md); flex: none;
  background: linear-gradient(135deg, #f6c453, #e0a93e);
  color: #5c3d00; display: grid; place-items: center;
  box-shadow: var(--um-xs);
}
.certificat__info { flex: 1; min-width: 0; }
.certificat__titlu { font-weight: 650; color: var(--text-tare); }
.certificat__meta { font-size: var(--fs-sm); color: var(--text-slab); }
.certificat__cod { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-slab); }

/* --------------------------------------------------------------------------
   22. Catalog lecții
   -------------------------------------------------------------------------- */
.grila-lectii {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: var(--sp-5);
}
.lectie-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--bord);
  border-radius: var(--r-lg);
  box-shadow: var(--um-sm);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow var(--tr-normal), transform var(--tr-normal), border-color var(--tr-normal);
}
.lectie-card:hover {
  box-shadow: var(--um-md); transform: translateY(-3px);
  border-color: var(--bord-tare); text-decoration: none;
}
.lectie-card:focus-visible { outline: 2px solid var(--bord-focus); outline-offset: 2px; }
.lectie-card__banda {
  height: 6px;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
}
.lectie-card__corp { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.lectie-card__sus { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.lectie-card__categorie { font-size: var(--fs-xs); font-weight: 650; color: var(--brand-600); text-transform: uppercase; letter-spacing: 0.04em; }
.lectie-card__titlu { font-size: var(--fs-lg); font-weight: 650; color: var(--text-tare); line-height: 1.3; }
.lectie-card__desc { color: var(--text-slab); font-size: var(--fs-md); line-height: var(--lh-normal); flex: 1; }
.lectie-card__jos {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-2); padding-top: var(--sp-3);
  border-top: 1px solid var(--gray-100); margin-top: auto;
}
.lectie-card__durata { display: inline-flex; align-items: center; gap: 5px; color: var(--text-slab); font-size: var(--fs-sm); }
.lectie-card__durata svg { width: 15px; height: 15px; }

/* Bară de filtre */
.filtre { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.filtru {
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--bord-tare);
  border-radius: var(--r-pill);
  background: var(--bg-surface);
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-normal);
  cursor: pointer; transition: all var(--tr-rapid);
}
.filtru:hover { border-color: var(--brand-300); color: var(--brand-600); }
.filtru--activ { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }

/* Sectiune cu titlu */
.sectiune { margin-bottom: var(--sp-10); }
.sectiune__cap { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.sectiune__titlu { font-size: var(--fs-xl); }

/* --------------------------------------------------------------------------
   23. Player de lecție (inima produsului)
   -------------------------------------------------------------------------- */
.player { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg-app); }

.player__bara-sus {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--bord);
}
.player__bara-inner {
  max-width: 1240px; margin-inline: auto;
  padding: var(--sp-3) var(--sp-6);
  display: flex; align-items: center; gap: var(--sp-4);
}
.player__inapoi {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-normal); font-weight: 600; font-size: var(--fs-md);
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm);
}
.player__inapoi:hover { background: var(--bg-subtle); text-decoration: none; color: var(--text-tare); }
.player__titlu-lectie { font-weight: 650; color: var(--text-tare); font-size: var(--fs-md); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__meta-sus { margin-left: auto; display: flex; align-items: center; gap: var(--sp-3); white-space: nowrap; }
.player__contor { font-size: var(--fs-sm); color: var(--text-slab); font-weight: 600; }
.player__progres-sus { flex: 1; max-width: 240px; }

.player__corp {
  flex: 1;
  max-width: 1240px; width: 100%;
  margin-inline: auto;
  padding: var(--sp-6);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--sp-6);
  align-items: stretch;
}
@media (max-width: 960px) {
  .player__corp { grid-template-columns: 1fr; }
}

/* --- Scena vizuală (stânga) --- */
.scena {
  position: relative;
  border-radius: var(--r-xl);
  min-height: 420px;
  overflow: hidden;
  display: flex;
  box-shadow: var(--um-md);
  border: 1px solid var(--bord);
}
.scena__strat {
  position: absolute; inset: 0;
  padding: var(--sp-8);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: var(--sp-4);
  overflow: auto;
}
.scena__strat--liber > * { position: absolute; }
.scena--lumina { color: var(--text-tare); }
.scena:not(.scena--lumina) { color: #fff; }

.bg-gradient-brand   { background: radial-gradient(600px 400px at 70% -10%, rgba(255,255,255,0.08), transparent 60%), linear-gradient(150deg, var(--brand-600), var(--brand-900)); }
.bg-gradient-pericol { background: radial-gradient(600px 400px at 70% -10%, rgba(255,255,255,0.08), transparent 60%), linear-gradient(150deg, #8f332b, #4a1712); }
.bg-gradient-noapte  { background: radial-gradient(600px 400px at 70% -10%, rgba(255,255,255,0.06), transparent 60%), linear-gradient(150deg, #27333c, #121a20); }
.bg-gradient-lumina  { background: linear-gradient(150deg, var(--gray-50), var(--gray-150)); }

/* Elemente de scenă */
.sc-el { max-width: 100%; opacity: 0; }
.sc-el.intra-gata { opacity: 1; }

.sc-el--text { font-size: var(--fs-lg); line-height: var(--lh-relaxat); text-align: center; max-width: 46ch; font-weight: 500; }
.sc-el--text.m-mic { font-size: var(--fs-md); }
.sc-el--text.m-mare { font-size: var(--fs-xl); }
.sc-el--text.m-titlu { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -0.01em; }
.sc-el--text.accent { color: #ffe08a; }

.sc-el--icon { width: 64px; height: 64px; border-radius: var(--r-lg); display: grid; place-items: center; background: rgba(255,255,255,0.12); }
.scena--lumina .sc-el--icon { background: var(--brand-50); color: var(--brand-600); }
.sc-el--icon.accent { background: rgba(255, 224, 138, 0.2); color: #ffe08a; }
.sc-el--icon svg { width: 34px; height: 34px; }

.sc-el--forma { display: grid; place-items: center; background: rgba(255,255,255,0.14); font-weight: 650; padding: var(--sp-3) var(--sp-5); }
.sc-el--forma.v-cerc { border-radius: 50%; width: 76px; height: 76px; }
.sc-el--forma.v-pastila { border-radius: var(--r-pill); }
.sc-el--forma.v-patrat { border-radius: var(--r-md); }
.sc-el--forma.accent { background: rgba(255,224,138,0.25); color: #ffe08a; }

/* Email mock */
.sc-email {
  width: min(100%, 440px);
  background: #fff; color: var(--text-tare);
  border-radius: var(--r-md);
  box-shadow: var(--um-lg);
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--bord);
}
.sc-email__cap { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--gray-100); background: var(--gray-50); }
.sc-email__rand { display: flex; gap: var(--sp-2); font-size: var(--fs-sm); margin-bottom: 2px; }
.sc-email__cheie { color: var(--text-slab); font-weight: 600; min-width: 68px; }
.sc-email__val { color: var(--text-tare); word-break: break-word; }
.sc-email__subiect { font-weight: 650; font-size: var(--fs-md); color: var(--text-tare); }
.sc-email__corp { padding: var(--sp-4); font-size: var(--fs-md); line-height: var(--lh-relaxat); }
.sc-email__link { display: inline-block; margin-top: var(--sp-2); font-family: var(--font-mono); font-size: var(--fs-sm); word-break: break-all; }
.sc-email__link.suspect { color: var(--pericol-600); background: var(--pericol-50); border: 1px dashed var(--pericol-500); padding: 4px 8px; border-radius: 6px; }
.sc-email__link:not(.suspect) { color: var(--brand-600); }
.sc-email__atasament {
  margin: var(--sp-3) var(--sp-4) var(--sp-4);
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-sm); font-family: var(--font-mono);
  padding: 6px 10px; border-radius: 6px;
  background: var(--gray-100); color: var(--text-normal);
}
.sc-email__atasament.periculos { background: var(--pericol-50); color: var(--pericol-600); border: 1px solid var(--pericol-100); }

/* Browser mock */
.sc-browser {
  width: min(100%, 440px);
  background: #fff; border-radius: var(--r-md);
  box-shadow: var(--um-lg); overflow: hidden; border: 1px solid var(--bord);
}
.sc-browser__bara { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); background: var(--gray-100); }
.sc-browser__puncte { display: flex; gap: 5px; }
.sc-browser__punct { width: 10px; height: 10px; border-radius: 50%; background: var(--gray-300); }
.sc-browser__url {
  flex: 1; display: flex; align-items: center; gap: 6px;
  background: #fff; border-radius: var(--r-pill);
  padding: 6px 12px; font-family: var(--font-mono); font-size: var(--fs-sm);
  color: var(--text-normal); border: 1px solid var(--bord); word-break: break-all;
}
.sc-browser__lacat--sigur { color: var(--succes-500); }
.sc-browser__lacat--nesigur { color: var(--pericol-500); }
.sc-browser__corp { padding: var(--sp-6); text-align: center; color: var(--text-slab); font-size: var(--fs-sm); }
.sc-browser__marcaj { background: #ffe08a; color: #5c3d00; border-radius: 3px; padding: 0 2px; font-weight: 700; }
.sc-browser__nesecurizat { display: inline-flex; align-items: center; gap: 4px; color: var(--pericol-600); font-size: var(--fs-xs); font-weight: 650; margin-top: 6px; }

/* Alerta de scena */
.sc-alerta {
  width: min(100%, 440px);
  display: flex; gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  text-align: left;
  border: 1px solid;
}
.sc-alerta__icon { flex: none; }
.sc-alerta__titlu { font-weight: 700; margin-bottom: 2px; }
.sc-alerta--pericol { background: #fff; color: var(--pericol-600); border-color: var(--pericol-100); }
.sc-alerta--warn { background: #fff; color: var(--warn-600); border-color: var(--warn-100); }
.sc-alerta--succes { background: #fff; color: var(--succes-600); border-color: var(--succes-100); }
.sc-alerta--info { background: #fff; color: var(--info-500); border-color: #cfe3fb; }

.sc-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-pill);
  font-weight: 650; font-size: var(--fs-sm);
  background: #fff; box-shadow: var(--um-sm);
}
.sc-badge--pericol { color: var(--pericol-600); }
.sc-badge--warn { color: var(--warn-600); }
.sc-badge--succes { color: var(--succes-600); }
.sc-badge--info { color: var(--info-500); }

.sc-el--imagine img { max-height: 320px; border-radius: var(--r-md); box-shadow: var(--um-md); }

/* Animații de intrare (declanșate prin clasa .intra-gata) */
.intra-fade        { transition: opacity var(--tr-lent); }
.intra-slide-stanga, .intra-slide-dreapta, .intra-slide-sus, .intra-slide-jos, .intra-zoom {
  transition: opacity var(--tr-lent), transform var(--tr-lent);
}
.intra-slide-stanga  { transform: translateX(-28px); }
.intra-slide-dreapta { transform: translateX(28px); }
.intra-slide-sus     { transform: translateY(28px); }
.intra-slide-jos     { transform: translateY(-28px); }
.intra-zoom          { transform: scale(0.9); }
.intra-gata.intra-slide-stanga, .intra-gata.intra-slide-dreapta,
.intra-gata.intra-slide-sus, .intra-gata.intra-slide-jos, .intra-gata.intra-zoom {
  transform: none;
}

/* --- Fundal viu: aură în mișcare + particule decorative (doar transform/opacity) --- */
.scena__strat { z-index: 1; }
.scena--lumina { --aura-1: rgba(31, 118, 130, 0.12); --aura-2: rgba(79, 70, 229, 0.08); --particula: rgba(31, 118, 130, 0.35); }
.bg-gradient-brand   { --aura-1: rgba(111, 181, 191, 0.30); --aura-2: rgba(79, 70, 229, 0.20); --particula: rgba(255, 255, 255, 0.55); }
.bg-gradient-pericol { --aura-1: rgba(255, 120, 100, 0.28); --aura-2: rgba(255, 224, 138, 0.14); --particula: rgba(255, 210, 190, 0.55); }
.bg-gradient-noapte  { --aura-1: rgba(111, 181, 191, 0.18); --aura-2: rgba(79, 70, 229, 0.20); --particula: rgba(210, 230, 255, 0.50); }
.bg-gradient-lumina  { --aura-1: rgba(31, 118, 130, 0.12); --aura-2: rgba(79, 70, 229, 0.08); --particula: rgba(31, 118, 130, 0.35); }

.scena__aura {
  position: absolute; inset: -30%;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 30% 30%, var(--aura-1, rgba(255,255,255,0.10)), transparent 38%),
    radial-gradient(circle at 72% 68%, var(--aura-2, rgba(255,255,255,0.06)), transparent 42%);
  animation: hri-aura var(--bucla-fundal) ease-in-out infinite alternate;
  will-change: transform;
}
.scena__particule { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.particula {
  position: absolute; display: block;
  opacity: 0;
  animation: hri-particula var(--p-dur, 14s) linear infinite;
  animation-delay: var(--p-dec, 0s);
  will-change: transform, opacity;
}
.particula--cerc { border-radius: 50%; background: var(--particula, rgba(255,255,255,0.5)); }
.particula--inel { border-radius: 50%; border: 1.5px solid var(--particula, rgba(255,255,255,0.5)); }
.particula--romb { border-radius: 2px; border: 1.5px solid var(--particula, rgba(255,255,255,0.5)); }

@keyframes hri-aura {
  from { transform: translate3d(-6%, -4%, 0) rotate(0deg) scale(1); }
  to   { transform: translate3d(6%, 5%, 0) rotate(28deg) scale(1.08); }
}
@keyframes hri-particula {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  15%  { opacity: var(--p-opac, 0.6); }
  85%  { opacity: var(--p-opac, 0.6); }
  100% { transform: translate3d(var(--p-dx, 0px), -140px, 0) rotate(200deg); opacity: 0; }
}

/* --- Bucle continue după intrare (clasa .bucla-activa se pune după tranziția de intrare) --- */
.scena__strat:not(.scena__strat--liber) > .sc-el { position: relative; }
.sc-el { --halo: var(--halo-alb); }
.scena--lumina .sc-el { --halo: rgba(31, 118, 130, 0.35); }
.sc-el.accent { --halo: var(--halo-accent); }
.sc-alerta--pericol, .sc-badge--pericol { --halo: var(--halo-pericol); }
.sc-alerta--warn, .sc-badge--warn       { --halo: var(--halo-warn); }
.sc-alerta--succes, .sc-badge--succes   { --halo: var(--halo-succes); }

.bucla-activa { will-change: transform; }
.bucla-activa.bucla-plutire    { animation: hri-plutire var(--bucla-plutire) ease-in-out var(--bucla-decalaj, 0s) infinite; }
.bucla-activa.bucla-puls       { animation: hri-puls var(--bucla-puls) ease-in-out var(--bucla-decalaj, 0s) infinite; }
.bucla-activa.bucla-tremur     { animation: hri-tremur var(--bucla-tremur) ease-in-out var(--bucla-decalaj, 0s) infinite; }
.bucla-activa.bucla-stralucire { animation: hri-stralucire var(--bucla-stralucire) ease-in-out var(--bucla-decalaj, 0s) infinite; }
.bucla-activa.bucla-respiratie { animation: hri-respiratie var(--bucla-respiratie) ease-in-out var(--bucla-decalaj, 0s) infinite; }

/* Halo moale (pată radială) — iconițe, forme, text accentuat */
.bucla-activa.cu-halo::after {
  content: ''; position: absolute; inset: -14px; z-index: -1;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, var(--halo), transparent);
  animation: hri-halo var(--bucla-stralucire) ease-in-out var(--bucla-decalaj, 0s) infinite;
}
/* Inel care se extinde — puls și tremur (alerte, insigne) */
.bucla-activa:not(.cu-halo).bucla-puls::after,
.bucla-activa:not(.cu-halo).bucla-stralucire::after,
.bucla-activa:not(.cu-halo).bucla-tremur::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: inherit; pointer-events: none; opacity: 0;
  border: 2px solid var(--halo);
}
.bucla-activa:not(.cu-halo).bucla-puls::after       { animation: hri-inel var(--bucla-puls) ease-out var(--bucla-decalaj, 0s) infinite; }
.bucla-activa:not(.cu-halo).bucla-stralucire::after { animation: hri-inel var(--bucla-stralucire) ease-out var(--bucla-decalaj, 0s) infinite; }
.bucla-activa:not(.cu-halo).bucla-tremur::after     { animation: hri-inel-tremur var(--bucla-tremur) ease-out var(--bucla-decalaj, 0s) infinite; }

/* Detalii vii în machete: link suspect care clipește + domeniu-sosie care pulsează roșu */
.sc-email__link.suspect { position: relative; z-index: 0; }
.bucla-activa .sc-email__link.suspect::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--pericol-100); opacity: 0;
  animation: hri-clipire 2.4s ease-in-out infinite;
}
.bucla-activa .sc-email__link.suspect::after {
  content: ''; position: absolute; left: 8px; right: 8px; bottom: 3px; height: 2px;
  background: var(--pericol-500); transform: scaleX(0); transform-origin: left center;
  animation: hri-subliniere 2.4s ease-in-out infinite;
}
.sc-browser__marcaj { position: relative; z-index: 0; display: inline-block; }
.bucla-activa .sc-browser__marcaj { animation: hri-puls 1.8s ease-in-out infinite; }
.bucla-activa .sc-browser__marcaj::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--pericol-500); opacity: 0;
  animation: hri-clipire-rosu 1.8s ease-in-out infinite;
}
.bucla-activa .sc-browser__marcaj::after {
  content: ''; position: absolute; inset: -3px; border-radius: 5px;
  border: 2px solid var(--pericol-500); opacity: 0;
  animation: hri-inel 1.8s ease-out infinite;
}
.bucla-activa .sc-browser__lacat--nesigur,
.bucla-activa .sc-email__atasament.periculos > span { display: inline-flex; animation: hri-puls 1.8s ease-in-out infinite; }

@keyframes hri-plutire {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%      { transform: translate3d(0, -8px, 0) rotate(-1.5deg); }
}
@keyframes hri-puls {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}
@keyframes hri-tremur {
  0%, 70%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  73% { transform: translate3d(-5px, 0, 0) rotate(-1deg); }
  76% { transform: translate3d(5px, 0, 0) rotate(1deg); }
  79% { transform: translate3d(-4px, 0, 0) rotate(-0.6deg); }
  82% { transform: translate3d(3px, 0, 0) rotate(0.4deg); }
  85% { transform: translate3d(-1px, 0, 0) rotate(0deg); }
}
@keyframes hri-stralucire {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.02); }
}
@keyframes hri-respiratie {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(0, -4px, 0) scale(1.012); }
}
@keyframes hri-halo {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50%      { opacity: 1; transform: scale(1.1); }
}
@keyframes hri-inel {
  0%   { opacity: 0.85; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.12); }
}
@keyframes hri-inel-tremur {
  0%, 70% { opacity: 0; transform: scale(1); }
  74%     { opacity: 0.95; transform: scale(1); }
  100%    { opacity: 0; transform: scale(1.1); }
}
@keyframes hri-clipire {
  0%, 55%, 100% { opacity: 0; }
  65%, 85%      { opacity: 1; }
}
@keyframes hri-clipire-rosu {
  0%, 100% { opacity: 0; }
  50%      { opacity: 0.4; }
}
@keyframes hri-subliniere {
  0%   { transform: scaleX(0); opacity: 1; }
  45%  { transform: scaleX(1); opacity: 1; }
  80%  { transform: scaleX(1); opacity: 0; }
  100% { transform: scaleX(0); opacity: 0; }
}

/* --- Naratoarea Ana (avatar SVG animat) --- */
.naratiune__identitate { display: flex; align-items: center; gap: var(--sp-4); min-width: 0; }
.ana { display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); flex: none; }
.ana__cadru {
  position: relative;
  width: 76px; height: 76px; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, var(--gray-0), var(--brand-100));
  box-shadow: inset 0 0 0 2px var(--brand-100), var(--um-sm);
  overflow: hidden;
}
.ana__cadru::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 3px var(--brand-400);
  opacity: 0; transition: opacity var(--tr-normal);
  pointer-events: none;
}
.ana--vorbeste .ana__cadru::after { opacity: 1; }
.ana__svg { display: block; width: 100%; height: 100%; }
.ana__f-haina  { fill: var(--brand-500); }
.ana__f-guler  { fill: var(--gray-0); }
.ana__f-umbra  { fill: var(--ana-piele-umbra); }
.ana__f-piele  { fill: var(--ana-piele); }
.ana__f-par    { fill: var(--ana-par); }
.ana__f-ochi   { fill: var(--ana-par); }
.ana__f-luciu  { fill: var(--gray-0); }
.ana__f-obraz  { fill: var(--ana-obraz); }
.ana__f-buze   { fill: var(--ana-buze); }
.ana__f-casca  { fill: var(--ana-casca); }
.ana__s-par, .ana__s-buze, .ana__s-umbra, .ana__s-casca { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ana__s-par    { stroke: var(--ana-par); stroke-width: 1.8; }
.ana__s-buze   { stroke: var(--ana-buze); stroke-width: 2.2; }
.ana__s-umbra  { stroke: var(--ana-piele-umbra); stroke-width: 1.4; }
.ana__s-casca  { stroke: var(--ana-casca); stroke-width: 3; }
.ana__s-casca--fir { stroke-width: 1.4; }
.ana__corp-anim { transform-box: view-box; transform-origin: 50% 100%; animation: hri-ana-respira 4.2s ease-in-out infinite; }
.ana__cap-anim  { transform-box: view-box; transform-origin: 50% 80%; }
.ana--vorbeste .ana__cap-anim { animation: hri-ana-incuviinta 2.4s ease-in-out infinite; }
.ana__ochi { transform-box: fill-box; transform-origin: center; animation: hri-ana-clipire 4.6s ease-in-out infinite; }
.ana__spranceana { transform-box: fill-box; transform-origin: center; transition: transform var(--tr-lent); }
.ana--ingrijorat .ana__spranceana--st { transform: translateY(-1px) rotate(-14deg); }
.ana--ingrijorat .ana__spranceana--dr { transform: translateY(-1px) rotate(14deg); }
.ana--fericit .ana__spranceana,
.ana--incurajator .ana__spranceana { transform: translateY(-2px); }

.ana__gura { opacity: 0; transition: opacity var(--tr-normal); }
.ana--neutru .ana__gura--neutru,
.ana--ingrijorat .ana__gura--ingrijorat,
.ana--fericit .ana__gura--fericit,
.ana--incurajator .ana__gura--incurajator { opacity: 1; }
.ana--vorbeste .ana__gura { opacity: 0; }
.ana__gura--vorbire { opacity: 0; transform-box: fill-box; transform-origin: center; }
.ana--vorbeste .ana__gura--vorbire { opacity: 1; animation: hri-ana-vorbire 0.9s ease-in-out infinite; }
.ana__obraji { opacity: 0.35; transition: opacity var(--tr-lent); }
.ana--fericit .ana__obraji { opacity: 0.7; }

.ana__eticheta { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--text-tare); line-height: 1; }
.ana__unde { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.ana__unda { width: 2px; height: 10px; border-radius: 1px; background: var(--brand-500); transform-origin: 50% 100%; transform: scaleY(0.3); opacity: 0.4; transition: opacity var(--tr-normal); }
.ana--vorbeste .ana__unda { opacity: 1; animation: hri-ana-unda 0.8s ease-in-out infinite; }
.ana--vorbeste .ana__unda:nth-child(2) { animation-delay: 0.15s; }
.ana--vorbeste .ana__unda:nth-child(3) { animation-delay: 0.3s; }

.rezultat-cap .ana { margin: 0 auto var(--sp-4); }
.rezultat-cap .ana__cadru { width: 96px; height: 96px; box-shadow: 0 0 0 3px rgba(255,255,255,0.35), var(--um-md); }
.rezultat-cap .ana__eticheta { color: var(--text-inversat); }
.rezultat-cap .ana__unda { background: var(--text-inversat); }
.rezultat-cap__ana { color: var(--text-inversat); font-style: italic; font-size: var(--fs-md); margin: 0 auto var(--sp-6); max-width: 46ch; opacity: 0.92; }

@keyframes hri-ana-respira {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(0, -1.5px, 0) scale(1.012); }
}
@keyframes hri-ana-incuviinta {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(-2deg); }
  60%      { transform: rotate(1.5deg); }
}
@keyframes hri-ana-clipire {
  0%, 92%, 100% { transform: scaleY(1); }
  95%           { transform: scaleY(0.1); }
}
@keyframes hri-ana-vorbire {
  0%   { transform: scaleY(0.25); }
  15%  { transform: scaleY(0.9); }
  30%  { transform: scaleY(0.45); }
  48%  { transform: scaleY(1); }
  62%  { transform: scaleY(0.3); }
  80%  { transform: scaleY(0.75); }
  100% { transform: scaleY(0.25); }
}
@keyframes hri-ana-unda {
  0%, 100% { transform: scaleY(0.3); }
  50%      { transform: scaleY(1); }
}

/* Mișcare redusă: fără bucle, fără particule, avatar static (gura închisă) */
@media (prefers-reduced-motion: reduce) {
  .scena__aura, .particula, .bucla-activa, .bucla-activa::before, .bucla-activa::after,
  .bucla-activa .sc-email__link.suspect::before, .bucla-activa .sc-email__link.suspect::after,
  .bucla-activa .sc-browser__marcaj, .bucla-activa .sc-browser__marcaj::before, .bucla-activa .sc-browser__marcaj::after,
  .bucla-activa .sc-browser__lacat--nesigur, .bucla-activa .sc-email__atasament.periculos > span,
  .ana__corp-anim, .ana__cap-anim, .ana__ochi, .ana__gura--vorbire, .ana__unda {
    animation: none !important;
  }
  .particula, .bucla-activa::before, .bucla-activa::after { display: none; }
  .ana--vorbeste .ana__gura--vorbire { opacity: 0; }
  .ana--vorbeste.ana--neutru .ana__gura--neutru,
  .ana--vorbeste.ana--ingrijorat .ana__gura--ingrijorat,
  .ana--vorbeste.ana--fericit .ana__gura--fericit,
  .ana--vorbeste.ana--incurajator .ana__gura--incurajator { opacity: 1; }
}

/* --- Panou narațiune (dreapta) --- */
.naratiune {
  display: flex; flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--bord);
  border-radius: var(--r-xl);
  box-shadow: var(--um-sm);
  overflow: hidden;
}
.naratiune__cap {
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--bord);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
}
.naratiune__eticheta { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-600); }
.naratiune__titlu-scena { font-size: var(--fs-xl); margin-top: 4px; }
.naratiune__text {
  padding: var(--sp-6);
  font-size: var(--fs-lg);
  line-height: 1.9;
  color: var(--text-normal);
  flex: 1;
  overflow-y: auto;
  max-height: 46vh;
}
.naratiune__text .cuvant { transition: background-color 120ms linear, color 120ms linear; border-radius: 4px; padding: 1px 1px; }
.naratiune__text .cuvant--activ { background: var(--brand-100); color: var(--brand-900); box-shadow: 0 0 0 2px var(--brand-100); }
.naratiune__text .cuvant--rostit { color: var(--text-tare); }

/* Controale audio */
.audio-bara {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--bord);
  background: var(--gray-50);
  display: flex; align-items: center; gap: var(--sp-3);
}
.audio-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-500); color: #fff; border: none;
  display: grid; place-items: center; cursor: pointer; flex: none;
  transition: background var(--tr-rapid), transform var(--tr-rapid);
  box-shadow: var(--um-sm);
}
.audio-btn:hover { background: var(--brand-600); }
.audio-btn:active { transform: scale(0.94); }
.audio-btn:disabled { background: var(--gray-300); cursor: wait; }
.audio-info { flex: 1; min-width: 0; }
.audio-info__titlu { font-weight: 600; color: var(--text-tare); font-size: var(--fs-md); }
.audio-info__sub { font-size: var(--fs-xs); color: var(--text-slab); }
.audio-timp { font-variant-numeric: tabular-nums; font-size: var(--fs-sm); color: var(--text-slab); font-family: var(--font-mono); }
.audio-progres { height: 4px; background: var(--gray-200); border-radius: var(--r-pill); overflow: hidden; margin-top: var(--sp-2); }
.audio-progres__bara { height: 100%; background: var(--brand-500); width: 0; transition: width 100ms linear; }

/* Controale navigare scene */
.player__controale {
  position: sticky; bottom: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--bord);
  padding: var(--sp-4) var(--sp-6);
}
.player__controale-inner {
  max-width: 1240px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
}
.player__pasi { display: flex; gap: 6px; flex: 1; justify-content: center; }
.player__pas { width: 28px; height: 5px; border-radius: var(--r-pill); background: var(--gray-200); transition: background var(--tr-normal); }
.player__pas--gata { background: var(--brand-400); }
.player__pas--activ { background: var(--brand-600); }
@media (max-width: 560px) {
  .player__controale { padding: var(--sp-3) var(--sp-4); }
  .player__controale-inner { gap: var(--sp-2); }
  .player__pasi { min-width: 0; gap: 4px; }
  .player__pas { width: auto; flex: 1 1 0; max-width: 20px; }
  .player__controale .btn { flex-shrink: 0; padding-inline: var(--sp-3); }
}

/* --- Test --- */
.test { max-width: 760px; margin-inline: auto; padding: var(--sp-6) 0; }
.test__intrebare {
  background: var(--bg-surface);
  border: 1px solid var(--bord);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  margin-bottom: var(--sp-5);
  box-shadow: var(--um-sm);
}
.test__nr { font-size: var(--fs-xs); font-weight: 700; color: var(--brand-600); text-transform: uppercase; letter-spacing: 0.04em; }
.test__text { font-size: var(--fs-lg); font-weight: 600; color: var(--text-tare); margin: var(--sp-2) 0 var(--sp-4); line-height: 1.4; }
.test__optiuni { display: flex; flex-direction: column; gap: var(--sp-3); }
.test__optiune.corect { border-color: var(--succes-500); background: var(--succes-50); }
.test__optiune.gresit { border-color: var(--pericol-500); background: var(--pericol-50); }
.test__optiune .marcaj { margin-left: auto; font-weight: 700; font-size: var(--fs-sm); }
.test__explicatie {
  margin-top: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--info-50); color: var(--gray-700);
  border-radius: var(--r-md); font-size: var(--fs-md);
  border-left: 3px solid var(--info-500); line-height: var(--lh-relaxat);
}

.rezultat-cap {
  text-align: center;
  padding: var(--sp-10) var(--sp-6) var(--sp-8);
  border-radius: var(--r-xl);
  margin-bottom: var(--sp-6);
  color: #fff;
}
.rezultat-cap--promovat { background: radial-gradient(500px 300px at 50% -20%, rgba(255,255,255,0.15), transparent), linear-gradient(150deg, var(--succes-500), #0e5235); }
.rezultat-cap--picat { background: linear-gradient(150deg, var(--gray-700), var(--gray-900)); }
.rezultat-cap__scor { font-size: var(--fs-4xl); font-weight: 800; line-height: 1; }
.rezultat-cap__eticheta { font-size: var(--fs-xl); color: #fff; margin: var(--sp-2) 0 var(--sp-1); }
.rezultat-cap__sub { color: rgba(255,255,255,0.85); }
.rezultat-cap__medalie {
  width: 72px; height: 72px; margin: 0 auto var(--sp-4);
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.18);
}
.rezultat-cap__medalie svg { width: 38px; height: 38px; }

.inel-scor {
  --p: 0;
  width: 120px; height: 120px; border-radius: 50%;
  margin: 0 auto var(--sp-4);
  display: grid; place-items: center;
  background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255,255,255,0.25) 0);
}
.inel-scor__interior {
  width: 92px; height: 92px; border-radius: 50%;
  background: transparent; display: grid; place-items: center;
}

@media (max-width: 600px) {
  .player__meta-sus .player__progres-sus { display: none; }
  .naratiune__text { max-height: none; font-size: var(--fs-md); }
  .naratiune__cap { padding: var(--sp-4); }
  .naratiune__identitate { gap: var(--sp-3); }
  .ana__cadru { width: 60px; height: 60px; }
  .naratiune__titlu-scena { font-size: var(--fs-lg); }
}

/* --------------------------------------------------------------------------
   24. Administrare (taburi, formulare, phishing)
   -------------------------------------------------------------------------- */
.taburi {
  display: flex; gap: var(--sp-1);
  border-bottom: 1px solid var(--bord);
  margin-bottom: var(--sp-8);
  overflow-x: auto;
}
.tab {
  padding: var(--sp-3) var(--sp-4);
  border: none; background: none; cursor: pointer;
  font-size: var(--fs-md); font-weight: 600; color: var(--text-slab);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--tr-rapid), border-color var(--tr-rapid);
}
.tab:hover { color: var(--text-tare); }
.tab svg { width: 17px; height: 17px; }
.tab--activ { color: var(--brand-600); border-bottom-color: var(--brand-500); }

.panel { display: none; }
.panel--activ { display: block; animation: hri-fade-in var(--tr-normal) both; }

.bara-actiuni { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); flex-wrap: wrap; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp-4); align-items: end; }

.cheie-val {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--gray-100);
}
.cheie-val:last-child { border-bottom: none; }
.cheie-val__info { flex: 1; min-width: 0; }
.cheie-val__nume { font-weight: 600; color: var(--text-tare); }
.cheie-val__desc { font-size: var(--fs-sm); color: var(--text-slab); }
.cheie-val input { max-width: 220px; }

.parola-temp {
  font-family: var(--font-mono); font-size: var(--fs-lg);
  background: var(--gray-100); color: var(--text-tare);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md);
  text-align: center; letter-spacing: 0.04em; word-break: break-all;
  border: 1px dashed var(--bord-tare);
}

/* Comutator activ/inactiv */
.comutator { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.comutator input { position: absolute; opacity: 0; width: 0; height: 0; }
.comutator__pista {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--gray-300); border-radius: var(--r-pill);
  transition: background var(--tr-normal);
}
.comutator__pista::before {
  content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform var(--tr-normal);
  box-shadow: var(--um-xs);
}
.comutator input:checked + .comutator__pista { background: var(--succes-500); }
.comutator input:checked + .comutator__pista::before { transform: translateX(18px); }
.comutator input:focus-visible + .comutator__pista { box-shadow: var(--um-focus); }

/* Carduri campanie phishing */
.campanie {
  background: var(--bg-surface); border: 1px solid var(--bord);
  border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--um-sm);
  margin-bottom: var(--sp-4);
}
.campanie__sus { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.campanie__titlu { font-size: var(--fs-lg); font-weight: 650; }
.campanie__meta { font-size: var(--fs-sm); color: var(--text-slab); }
.campanie__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); margin-bottom: var(--sp-4); }
.mini-stat { text-align: center; padding: var(--sp-3); background: var(--gray-50); border-radius: var(--r-md); }
.mini-stat__val { font-size: var(--fs-xl); font-weight: 720; color: var(--text-tare); }
.mini-stat__et { font-size: var(--fs-xs); color: var(--text-slab); }
.campanie__actiuni { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
@media (max-width: 520px) { .campanie__stats { grid-template-columns: repeat(2, 1fr); } }

.indicii { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-2); }

.riscometru {
  display: inline-flex; align-items: center; gap: 8px;
}
.riscometru__bara { width: 60px; height: 6px; border-radius: var(--r-pill); background: var(--gray-200); overflow: hidden; }
.riscometru__fill { height: 100%; border-radius: var(--r-pill); }


