/* CSS Updated: 2026-03-25 12:20:00 - Force CSS Reload */
:root {
  --necta-header-height: 72px;
  --necta-footer-reserved-height: clamp(52px, 7vw, 76px);
  --necta-page-scroll-offset: clamp(36px, 5vw, 56px);
  --necta-page-min-height: calc(100svh - var(--necta-footer-reserved-height) + var(--necta-page-scroll-offset));
  --necta-header-height: 72px;
  --necta-footer-reserved-height: clamp(52px, 7vw, 76px);
  --necta-page-scroll-offset: clamp(36px, 5vw, 56px);
  --necta-page-min-height: calc(100svh - var(--necta-footer-reserved-height) + var(--necta-page-scroll-offset));
  --necta-shell-max-width: 1080px;
  --necta-config-max-width: 1400px;
  --necta-shell-padding-top: calc(var(--necta-header-height) + 30px);
  --necta-shell-padding-top: calc(var(--necta-header-height) + 30px);
  --necta-shell-padding-x: 24px;
  --necta-shell-padding-bottom: 24px;
  --necta-main-card-padding-bottom: clamp(24px, 4vw, 40px);
  --necta-dashboard-screen-card-min-height: max(720px, calc(100svh - var(--necta-shell-padding-top) - var(--necta-shell-padding-bottom)));
  /* Outer app cards should follow their content; inner panels can opt into height when needed. */
  --necta-main-card-min-height: 0px;
  --necta-main-card-padding-bottom: clamp(24px, 4vw, 40px);
  --necta-dashboard-screen-card-min-height: max(720px, calc(100svh - var(--necta-shell-padding-top) - var(--necta-shell-padding-bottom)));
  /* Outer app cards should follow their content; inner panels can opt into height when needed. */
  --necta-main-card-min-height: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  height: 100%;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  display: flex;
  flex-direction: column;
  background-color: #f4eff7;
  display: flex;
  flex-direction: column;
  background-color: #f4eff7;
  background: url("../images/homebg-jRJ7CJg.png") no-repeat center center;
  background-size: cover;
  background-attachment: scroll;
}

body > footer {
  margin-top: auto;
  flex-shrink: 0;
  padding-top: clamp(10px, 1.8vw, 18px);
  background: linear-gradient(180deg, rgba(244, 239, 247, 0) 0%, rgba(244, 239, 247, 0.92) 22px, rgba(244, 239, 247, 0.98) 100%);
}

body > footer {
  margin-top: auto;
  flex-shrink: 0;
  padding-top: clamp(10px, 1.8vw, 18px);
  background: linear-gradient(180deg, rgba(244, 239, 247, 0) 0%, rgba(244, 239, 247, 0.92) 22px, rgba(244, 239, 247, 0.98) 100%);
}

/* Hide footer on moderator pages */
.signalement-page footer,
.verification-page footer {
  display: none;
}

html,
body,
button,
input,
select,
textarea,
option {
  font-family: "Times New Roman", Times, serif;
}

.home-page {
  --necta-header-height: 80px;
}

.home-page {
  --necta-header-height: 80px;
}

/* Authentication pages (templates/security/login.html.twig + templates/registration/register.html.twig) */
.home-page,
.auth-page {
  overflow-x: hidden;
}

.dashboard-page,
.configuration-page,
.documents-page {
  overflow-x: hidden;
}

.page-background-layer {
  position: fixed;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  pointer-events: none;
  z-index: 0;
}

.app-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1500;
  background: #fff;
  border-bottom: 1px solid rgba(79, 44, 31, 0.12);
  box-shadow: 0 12px 28px rgba(46, 26, 17, 0.1);
}

.home-page .app-header {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

.auth-page .app-header {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

.app-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1500;
  background: #fff;
  border-bottom: 1px solid rgba(79, 44, 31, 0.12);
  box-shadow: 0 12px 28px rgba(46, 26, 17, 0.1);
}

.home-page .app-header {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

.auth-page .app-header {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

.auth-page-background {
  background-image: url("../images/dashboard-gEcukiH.png");
}

.auth-shell {
  position: relative;
  z-index: 1;
  min-height: var(--necta-page-min-height);
  min-height: var(--necta-page-min-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--necta-shell-padding-top) var(--necta-shell-padding-x) var(--necta-shell-padding-bottom);
  padding: var(--necta-shell-padding-top) var(--necta-shell-padding-x) var(--necta-shell-padding-bottom);
  box-sizing: border-box;
  overflow: visible;
}

.auth-panel {
  width: min(1060px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(252, 247, 241, 0.97));
  border: 1px solid rgba(138, 109, 70, 0.34);
  border-radius: 16px;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.38), 0 6px 16px rgba(86, 55, 30, 0.22);
  overflow: hidden;
}

.auth-panel-left {
  padding: 42px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(160deg, rgba(243, 224, 251, 0.9), rgba(255, 255, 255, 0.75));
  border-right: 1px solid rgba(138, 109, 70, 0.25);
}

.auth-panel-right {
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-kicker {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a4f3a;
}

.auth-title {
  margin: 0 0 14px;
  color: #311a11;
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 800;
  line-height: 1.1;
}

.auth-subtitle {
  margin: 0 0 4px;
  color: #4c3a31;
  font-size: 1.04rem;
  line-height: 1.5;
}

.auth-highlights {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 440px;
}

.auth-highlights li {
  position: relative;
  padding-left: 22px;
  color: #3f2b24;
  line-height: 1.45;
}

.auth-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cb6ce6;
  box-shadow: 0 0 0 3px rgba(203, 108, 230, 0.22);
}

.auth-form-header {
  margin-bottom: 18px;
  text-align: center;
}

.auth-form-title {
  margin: 0 0 8px;
  color: #311a11;
  font-size: 1.6rem;
  font-weight: 800;
}

.auth-form-subtitle {
  margin: 0;
  color: #4c3a31;
}

.auth-alert {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.94rem;
}

.auth-alert a {
  color: inherit;
  text-decoration: underline;
  font-weight: 700;
}

.auth-alert-error {
  background: rgba(186, 64, 64, 0.16);
  border-color: rgba(153, 48, 48, 0.48);
  color: #6d2121;
}

.auth-alert-info {
  background: rgba(65, 119, 196, 0.16);
  border-color: rgba(49, 95, 160, 0.46);
  color: #1f3f6f;
}

.auth-toast-stack {
  position: fixed;
  top: calc(var(--necta-header-height) + 12px);
  top: calc(var(--necta-header-height) + 12px);
  right: 16px;
  z-index: 1300;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 26px));
}

.auth-toast {
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
  animation: auth-toast-in 0.24s ease-out;
}

.auth-toast-info {
  background: rgba(65, 119, 196, 0.95);
  border-color: rgba(49, 95, 160, 0.95);
  color: #fff;
}

.auth-page.auth-modal-open .auth-shell,
.auth-page.auth-modal-open header {
  filter: blur(2px);
}

.auth-confirm-dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: none;
}

.auth-confirm-dialog.auth-confirm-dialog-fallback[open] {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.auth-confirm-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.auth-confirm-box {
  width: min(92vw, 420px);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-confirm-title {
  margin: 0 0 8px;
  color: #1f3f6f;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.auth-confirm-message {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 600;
  color: #1f1f1f;
}

.auth-confirm-ok {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 auto !important;
  min-width: 100px;
  padding: 10px 16px;
  border: 1px solid rgba(89, 45, 121, 0.38);
  border-radius: 10px;
  background: #cb6ce6 !important;
  color: #000 !important;
  font-weight: 700;
  cursor: pointer;
}

.auth-confirm-ok:hover {
  background: #b14fd1 !important;
}

.match-toast {
  display: grid;
  gap: 8px;
}

.match-toast-title {
  font-size: 0.95rem;
}

.match-toast-message {
  font-weight: 600;
  line-height: 1.4;
}

.match-toast-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.match-toast-link:hover {
  background: rgba(255, 255, 255, 0.28);
}

.auth-toast.is-hiding {
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

@keyframes auth-toast-in {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  display: flex;
  flex-direction: column;
}

.auth-field label {
  margin-bottom: 6px;
  color: #3f2b24;
  font-weight: 700;
}

.auth-input,
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  border: 1px solid rgba(131, 96, 58, 0.34);
  border-radius: 10px;
  background: #fff;
  color: #2b1f19;
  padding: 9px 12px;
  font-size: 0.98rem;
}

.auth-input:focus,
.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
  outline: none;
  border-color: #9c56c0;
  box-shadow: 0 0 0 3px rgba(156, 86, 192, 0.2);
}

.auth-field-errors {
  margin-top: 4px;
  color: #8a1f1f;
  font-size: 0.84rem;
}

.auth-field-errors ul {
  margin: 0;
  padding-left: 18px;
}

.auth-field-errors:empty {
  display: none;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #3f2b24;
  font-weight: 600;
  margin-top: 2px;
}

.auth-check input {
  width: 16px;
  height: 16px;
  accent-color: #9c56c0;
}

.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  margin-top: 6px;
  min-height: 44px;
  border: 1px solid rgba(89, 45, 121, 0.4);
  border-radius: 11px;
  background: #cb6ce6;
  color: #000;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.auth-submit:hover {
  background: #b14fd1;
  text-decoration: none;
  transform: translateY(-1px);
}

.auth-help-card {
  display: grid;
  margin-top: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(131, 96, 58, 0.18);
  background: rgba(255, 255, 255, 0.74);
}

.auth-switch {
  margin: 10px 0 0;
  text-align: center;
  color: #3f2b24;
  font-weight: 700;
}

.auth-switch a {
  color: #4a2b73;
  font-weight: 800;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-panel-reset {
  width: min(1120px, 100%);
}

.auth-panel-left-reset {
  align-items: flex-start;
  text-align: left;
  background: linear-gradient(160deg, rgba(244, 228, 251, 0.92), rgba(255, 250, 245, 0.9));
}

.auth-panel-left-reset .auth-subtitle,
.auth-panel-left-reset .auth-highlights {
  max-width: none;
  width: 100%;
}

.auth-feature-grid {
  margin-top: 22px;
  display: grid;
  gap: 12px;
  width: 100%;
}

.auth-feature-card {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(131, 96, 58, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.auth-feature-title {
  display: block;
  margin-bottom: 4px;
  color: #311a11;
  font-weight: 800;
}

.auth-feature-text {
  margin: 0;
  color: #4c3a31;
  line-height: 1.5;
}

.auth-highlights-tight {
  margin-top: 18px;
}

.auth-inline-note {
  display: grid;
  gap: 5px;
  padding: 14px 15px;
  border-radius: 12px;
  border: 1px solid rgba(156, 86, 192, 0.24);
  background: rgba(203, 108, 230, 0.08);
  color: #4c3a31;
}

.auth-inline-note strong {
  color: #311a11;
}

.auth-inline-note-accent {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(131, 96, 58, 0.18);
}

.auth-inline-note-success {
  background: rgba(42, 168, 77, 0.11);
  border-color: rgba(42, 168, 77, 0.24);
}

.auth-password-rules {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  width: 100%;
}

.auth-password-rule {
  position: relative;
  padding: 10px 12px 10px 34px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(131, 96, 58, 0.18);
  color: #3f2b24;
  line-height: 1.45;
}

.auth-password-rule::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #cb6ce6;
  box-shadow: 0 0 0 3px rgba(203, 108, 230, 0.18);
}

.auth-action-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-link-stack {
  display: grid;
  gap: 12px;
  justify-items: center;
  width: 100%;
}

.auth-panel-reset .auth-form > .auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: min(100%, 340px);
  margin-inline: auto;
  text-align: center;
}

.auth-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4a2b73;
  font-weight: 800;
  text-decoration: none;
}

.auth-secondary-link:hover {
  text-decoration: underline;
}

.auth-secondary-link-card {
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid rgba(89, 45, 121, 0.22);
  background: linear-gradient(180deg, rgba(247, 238, 251, 0.92), rgba(255, 255, 255, 0.96));
  color: #311a11;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.auth-secondary-link-card:hover {
  text-decoration: none;
  border-color: rgba(89, 45, 121, 0.42);
  box-shadow: 0 10px 20px rgba(83, 47, 109, 0.12);
  transform: translateY(-1px);
}

.auth-secondary-link-title {
  font-weight: 800;
  color: #311a11;
}

.auth-reset-action-form {
  margin: 0;
  width: min(100%, 340px);
  justify-self: center;
  align-self: center;
}

.auth-reset-action-form-spaced {
  margin-top: 12px;
}

.auth-reset-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 18px;
  border: 1px solid rgba(89, 45, 121, 0.4);
  border-radius: 11px;
  background: #cb6ce6;
  color: #000;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.auth-reset-action-button:hover {
  background: #b14fd1;
  transform: translateY(-1px);
}

.auth-reset-action-button-secondary {
  background: linear-gradient(180deg, rgba(247, 238, 251, 0.96), rgba(255, 255, 255, 0.98));
  color: #311a11;
  border-color: rgba(89, 45, 121, 0.24);
  box-shadow: 0 8px 20px rgba(83, 47, 109, 0.12);
}

.auth-reset-action-button-secondary:hover {
  background: linear-gradient(180deg, rgba(238, 220, 248, 0.98), rgba(251, 245, 255, 0.98));
  border-color: rgba(89, 45, 121, 0.42);
  box-shadow: 0 10px 20px rgba(83, 47, 109, 0.16);
}

.auth-confirmation-copy {
  display: grid;
  gap: 10px;
  color: #3f2b24;
  line-height: 1.55;
}

.auth-confirmation-copy p {
  margin: 0;
}

/* Shared navbar (templates/partials/navbar.html.twig) */
.necta-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 8px clamp(14px, 2.8vw, 40px);
  box-sizing: border-box;
}

.home-page .necta-navbar {
  background: transparent;
  padding: 8px clamp(14px, 2.8vw, 40px);
}

.home-page .necta-navbar {
  background: transparent;
  padding: 8px clamp(14px, 2.8vw, 40px);
}

.necta-nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.necta-nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.necta-nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.necta-nav-logo {
  width: clamp(60px, 5.3vw, 76px);
  height: clamp(60px, 5.3vw, 76px);
  width: clamp(60px, 5.3vw, 76px);
  height: clamp(60px, 5.3vw, 76px);
  display: block;
  margin: 0;
  margin: 0;
  object-fit: contain;
}

.home-page .necta-nav-logo {
  width: clamp(68px, 6vw, 84px);
  height: clamp(68px, 6vw, 84px);
}

.home-page .necta-nav-logo {
  width: clamp(68px, 6vw, 84px);
  height: clamp(68px, 6vw, 84px);
}

.necta-app-name {
  font-size: 20px;
  font-weight: bold;
  color: #000;
}

.necta-auth-actions {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.necta-auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(177, 79, 209, 0.28);
  background: linear-gradient(180deg, rgba(246, 228, 252, 0.96), rgba(234, 200, 247, 0.92));
  color: #522267;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(156, 86, 192, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.necta-auth-link:hover,
.necta-auth-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(177, 79, 209, 0.42);
  box-shadow: 0 14px 28px rgba(177, 79, 209, 0.18);
  outline: none;
}

.necta-auth-link.is-active {
  background: linear-gradient(180deg, #cb6ce6, #b14fd1);
  border-color: rgba(120, 52, 148, 0.72);
  box-shadow: 0 16px 30px rgba(132, 61, 163, 0.26);
  color: #210d2b;
}

.necta-moderation-actions {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.necta-moderation-tab-btn {
  appearance: none;
  font: inherit;
  cursor: pointer;
}

.necta-moderator-menu {
  position: relative;
  flex: 0 0 auto;
}

.necta-moderator-menu-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(177, 79, 209, 0.34);
  background: linear-gradient(180deg, rgba(246, 228, 252, 0.96), rgba(234, 200, 247, 0.92));
  color: #522267;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(156, 86, 192, 0.12);
  cursor: default;
}

.necta-moderator-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(177, 79, 209, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 239, 255, 0.96));
  box-shadow: 0 18px 32px rgba(114, 60, 140, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 20;
}

.necta-moderator-menu:hover .necta-moderator-menu-dropdown,
.necta-moderator-menu:focus-within .necta-moderator-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.necta-moderator-menu-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #5a2044;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.necta-moderator-menu-link:hover,
.necta-moderator-menu-link:focus-visible {
  background: rgba(177, 79, 209, 0.12);
  color: #3d1039;
  outline: none;
}

.necta-auth-actions {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.necta-auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(177, 79, 209, 0.28);
  background: linear-gradient(180deg, rgba(246, 228, 252, 0.96), rgba(234, 200, 247, 0.92));
  color: #522267;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(156, 86, 192, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.necta-auth-link:hover,
.necta-auth-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(177, 79, 209, 0.42);
  box-shadow: 0 14px 28px rgba(177, 79, 209, 0.18);
  outline: none;
}

.necta-auth-link.is-active {
  background: linear-gradient(180deg, #cb6ce6, #b14fd1);
  border-color: rgba(120, 52, 148, 0.72);
  box-shadow: 0 16px 30px rgba(132, 61, 163, 0.26);
  color: #210d2b;
}

.necta-moderator-menu {
  position: relative;
  flex: 0 0 auto;
}

.necta-moderator-menu-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(177, 79, 209, 0.34);
  background: linear-gradient(180deg, rgba(246, 228, 252, 0.96), rgba(234, 200, 247, 0.92));
  color: #522267;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(156, 86, 192, 0.12);
  cursor: default;
}

.necta-moderator-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(177, 79, 209, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 239, 255, 0.96));
  box-shadow: 0 18px 32px rgba(114, 60, 140, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 20;
}

.necta-moderator-menu:hover .necta-moderator-menu-dropdown,
.necta-moderator-menu:focus-within .necta-moderator-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.necta-moderator-menu-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #5a2044;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.necta-moderator-menu-link:hover,
.necta-moderator-menu-link:focus-visible {
  background: rgba(177, 79, 209, 0.12);
  color: #3d1039;
  outline: none;
}

.necta-nav-right {
  flex: 1 1 auto;
  min-width: 0;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 15px;
}

.necta-nav-btn {
  padding: 12px 28px;
  background-color: #cb6ce6;
  color: #000;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.25s ease;
  box-shadow: 0 8px 18px rgba(108, 68, 134, 0.16);
  box-shadow: 0 8px 18px rgba(108, 68, 134, 0.16);
}

.necta-nav-btn:hover {
  background-color: #b14fd1;
}

.necta-profile-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.necta-profile-toggle {
  border: none;
  font: inherit;
  line-height: 1.2;
  cursor: pointer;
}

.necta-profile-trigger {
  min-width: 110px;
  max-width: 220px;
  text-align: center;
  padding: 12px 16px;
  font-weight: 800;
  justify-content: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.necta-profile-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  min-width: 230px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.18s ease 0.24s,
    transform 0.18s ease 0.24s,
    visibility 0s linear 0.42s;
}

.necta-profile-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
}

.necta-profile-menu:hover .necta-profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s, 0s, 0s;
}

.necta-profile-menu.is-open .necta-profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s, 0s, 0s;
}

.necta-profile-item {
  display: block;
  padding: 11px 14px;
  color: #1f1f1f;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.necta-profile-item:hover {
  background: #f6ebff;
}

.necta-profile-item:last-child {
  border-bottom: none;
}

/* Dashboard page (templates/dashboard/index.html.twig) */
.dashboard-page {
  overflow-x: hidden;
}

.dashboard-page-background {
  background-image: url("../images/dashboard-gEcukiH.png");
}

.dashboard-shell {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: var(--necta-shell-max-width);
  min-height: 0;
  min-height: 0;
  padding: var(--necta-shell-padding-top) var(--necta-shell-padding-x) var(--necta-shell-padding-bottom);
  box-sizing: border-box;
  overflow: visible;
}

.dashboard-flash {
  margin: 0 0 14px;
  padding: 11px 14px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
}

.dashboard-flash-success {
  background: rgba(41, 158, 83, 0.18);
  border-color: rgba(31, 126, 65, 0.45);
  color: #155a30;
}

.dashboard-flash-warning {
  background: rgba(224, 168, 0, 0.17);
  border-color: rgba(188, 141, 0, 0.46);
  color: #5f4700;
}

.dashboard-flash-error {
  background: rgba(186, 64, 64, 0.16);
  border-color: rgba(153, 48, 48, 0.48);
  color: #6d2121;
}

.dashboard-flash-info {
  background: rgba(65, 119, 196, 0.16);
  border-color: rgba(49, 95, 160, 0.46);
  color: #1f3f6f;
}

.dashboard-hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(251, 246, 240, 0.96));
  border: 1px solid rgba(138, 109, 70, 0.34);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(86, 55, 30, 0.2);
}

.dashboard-kicker {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a4f3a;
}

.dashboard-title {
  margin: 0 0 8px;
  color: #311a11;
}

.dashboard-subtitle {
  margin: 0;
  color: #4c3a31;
}

.dashboard-grid {
  margin-top: 20px;
  display: block;
  width: 100%;
}

.dashboard-main-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: var(--necta-main-card-min-height);
  gap: 18px;
  background: linear-gradient(135deg, #cb6ce6, #b14fd1) !important;
  border: 1px solid rgba(120, 52, 148, 0.72) !important;
  box-shadow: 0 16px 30px rgba(132, 61, 163, 0.26) !important;
}

.dashboard-screen-card {
  min-height: var(--necta-dashboard-screen-card-min-height);
}

.configuration-main-card,
.dashboard-card.profile-view-main-card,
.dashboard-card.profile-photo-main-card,
.dashboard-card.profile-edit-main-card {
  box-sizing: border-box;
  align-self: stretch;
  height: auto;
  overflow: visible;
}

.dashboard-screen-card {
  min-height: var(--necta-dashboard-screen-card-min-height);
}

.configuration-main-card,
.dashboard-card.profile-view-main-card,
.dashboard-card.profile-photo-main-card,
.dashboard-card.profile-edit-main-card {
  box-sizing: border-box;
  align-self: stretch;
  height: auto;
  overflow: visible;
}

.dashboard-main-hero-card {
  margin: 0;
}

.dashboard-main-grid {
  margin-top: 0;
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(131, 96, 58, 0.34);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.dashboard-card-title {
  margin: 0 0 10px;
  color: #4f2c1f;
  font-size: 1.1rem;
}

.dashboard-card-text {
  margin: 0 0 14px;
  color: #3f2b24;
}

.dashboard-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 8px 14px;
  border-radius: 9px;
  text-decoration: none;
  border: 1px solid rgba(89, 45, 121, 0.38);
  background: #cb6ce6;
  color: #000;
  font-weight: 700;
}

.dashboard-card-link:hover {
  background: #b14fd1;
}

.dashboard-card-link-muted {
  background: #e6d9eb;
  border-color: #c8b2d1;
  color: #4b3f56;
}

/* Documents page (templates/documents/documents.html.twig) */
.documents-page {
  overflow-x: hidden;
}

.documents-page-background {
  background-image: url("../images/upload-gmHz-k9.png");
}

.documents-shell {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: var(--necta-shell-max-width);
  padding: var(--necta-shell-padding-top) var(--necta-shell-padding-x) var(--necta-shell-padding-bottom);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 18px;
  overflow: visible;
}

.documents-card {
  width: 100%;
  margin: 0 auto;
  background: linear-gradient(145deg, rgba(104, 50, 140, 0.94), rgba(185, 147, 214, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 24px 44px rgba(65, 31, 88, 0.26);
}

.documents-card-centered {
  min-height: max(620px, var(--necta-dashboard-screen-card-min-height));
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.documents-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.documents-hero-copy,
.documents-hero-status-card,
.documents-panel {
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(249, 241, 232, 0.96));
  border: 1px solid rgba(138, 109, 70, 0.18);
  border-radius: 24px;
  box-shadow: 0 16px 32px rgba(78, 44, 97, 0.1);
}

.documents-hero-copy {
  padding: 26px 28px;
}

.documents-hero-status-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.documents-kicker {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b5cf6;
}

.documents-title {
  margin: 0 0 12px;
  color: #341c44;
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.documents-subtitle {
  margin: 0;
  color: #5d4769;
  line-height: 1.65;
  max-width: 62ch;
}

.documents-status-eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #7a4f3a;
}

.documents-hero-status-text {
  margin: 0;
  color: #5a4a57;
  line-height: 1.55;
}

.documents-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
  gap: 24px;
  flex: 1;
}

.documents-main-column {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.documents-panel {
  padding: 24px;
}

.documents-panel-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.documents-panel-title {
  margin: 0;
  color: #341c44;
  font-size: 1.25rem;
}

.documents-panel-subtitle {
  margin: 0;
  color: #694f63;
  line-height: 1.55;
}

.documents-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.documents-step {
  position: relative;
  min-height: 88px;
  padding: 16px 16px 16px 42px;
  border-radius: 18px;
  background: rgba(224, 206, 239, 0.52);
  color: #4b3559;
  font-weight: 700;
  border: 1px solid rgba(147, 101, 180, 0.18);
  display: flex;
  align-items: center;
  line-height: 1.45;
}

.documents-step::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #c8b2d1;
}

.documents-step-active {
  border-color: rgba(126, 58, 242, 0.28);
  background: rgba(233, 213, 255, 0.72);
  color: #5b21b6;
}

.documents-step-active::before {
  background: #7c3aed;
}

.documents-step-done {
  background: rgba(225, 248, 231, 0.78);
  border-color: rgba(34, 197, 94, 0.2);
  color: #166534;
}

.documents-step-done::before {
  background: #16a34a;
}

.documents-form {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.documents-upload-panel {
  border: 1px dashed rgba(123, 63, 164, 0.34);
  border-radius: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.82);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.documents-upload-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(203, 108, 230, 0.42), rgba(177, 79, 209, 0.28));
  border: 1px solid rgba(89, 45, 121, 0.22);
  flex: 0 0 auto;
}

.documents-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
}

.documents-field label {
  color: #3f2b24;
  font-weight: 800;
}

.documents-file-input,
.documents-form input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  border: 1px solid rgba(131, 96, 58, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #2b1f19;
  padding: 9px 12px;
  font-size: 0.95rem;
}

.documents-file-input::file-selector-button {
  margin-right: 12px;
  border: 1px solid rgba(89, 45, 121, 0.28);
  border-radius: 10px;
  background: linear-gradient(180deg, #a855f7, #7c3aed);
  color: #fff7ff;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
}

.documents-file-input:hover::file-selector-button {
  background: linear-gradient(180deg, #9333ea, #6d28d9);
}

.documents-file-input:focus,
.documents-form input[type="file"]:focus {
  outline: none;
  border-color: #9c56c0;
  box-shadow: 0 0 0 3px rgba(156, 86, 192, 0.2);
}

.documents-help {
  color: #635565;
  font-size: 0.86rem;
}

.documents-actions {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.documents-actions-single {
  margin-top: 8px;
  justify-content: flex-start;
  width: 100%;
}

.documents-actions-bottom {
  margin-top: 20px;
  align-items: center;
}

.documents-actions-bottom .documents-link-btn {
  width: auto;
}

.documents-submit {
  min-width: 210px;
}

.documents-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(89, 45, 121, 0.24);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(244, 234, 255, 0.98), rgba(231, 210, 248, 0.94));
  color: #4a1d63;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.documents-link-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(237, 223, 251, 0.98), rgba(220, 194, 244, 0.96));
  border-color: rgba(89, 45, 121, 0.32);
  box-shadow: 0 14px 26px rgba(101, 52, 144, 0.14);
}

.documents-inline-alert {
  margin: 0;
}

.documents-confirm-dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: none;
}

.documents-confirm-dialog.documents-confirm-dialog-fallback[open] {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.documents-confirm-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.documents-page.documents-modal-open .documents-shell,
.documents-page.documents-modal-open header {
  filter: blur(2px);
}

.documents-confirm-box {
  width: min(92vw, 420px);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.documents-confirm-title {
  margin: 0 0 8px;
  color: #1f9d55 !important;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.documents-confirm-message {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 600;
  color: #1f1f1f;
}

.documents-confirm-ok {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 auto !important;
  min-width: 100px;
  padding: 10px 16px;
  border: 1px solid rgba(89, 45, 121, 0.38);
  border-radius: 10px;
  background: #cb6ce6 !important;
  color: #000 !important;
  font-weight: 700;
  cursor: pointer;
}

.documents-confirm-ok:hover {
  background: #b14fd1 !important;
}

.documents-meta {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.documents-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 700;
  width: fit-content;
}

.documents-status-upload {
  background: rgba(224, 168, 0, 0.17);
  border-color: rgba(188, 141, 0, 0.46);
  color: #5f4700;
}

.documents-status-pending {
  background: rgba(65, 119, 196, 0.16);
  border-color: rgba(49, 95, 160, 0.46);
  color: #1f3f6f;
}

.documents-status-refused {
  background: rgba(220, 38, 38, 0.14);
  border-color: rgba(185, 28, 28, 0.42);
  color: #991b1b;
}

.documents-status-approved {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(21, 128, 61, 0.36);
  color: #166534;
}

.documents-side-text {
  margin: 0;
  color: #3f2b24;
  line-height: 1.6;
}

.documents-side-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.documents-side-list li {
  position: relative;
  padding: 14px 14px 14px 42px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(138, 109, 70, 0.16);
  color: #3f2b24;
  font-weight: 600;
}

.documents-side-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #8b5cf6;
  box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.14);
}

/* Home page (templates/home_page/index.html.twig) */
.home-hero {
  position: relative;
  height: 100svh;
  background-image: url("../images/homebg-jRJ7CJg.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  box-sizing: border-box;
  padding: clamp(96px, 14vh, 130px) 24px 36px;
  overflow: hidden;
}

.home-hero h1 {
  font-size: clamp(4.1rem, 16vw, 9.4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: clamp(4px, 1.1vw, 10px);
  align-self: flex-start;
  text-align: left;
  margin: -40px 0 14px 0;
  margin-left: clamp(0px, 5vw, 115px);
}
.access_denied {
    color: #000000;
    font-size: large;
    font-weight: 800;
    line-height: 0.95;
}
.home-cta-btn {
  align-self: flex-start;
  margin-top: -2px;
  margin-left: clamp(0px, 5vw, 115px);
  padding: 14px 35px;
  background-color: #cb6ce6;
  color: #000;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.25s ease, transform 0.2s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.home-cta-btn:hover {
  background-color: #b14fd1;
  transform: translateY(-2px);
}

/* Waiting page (templates/documents/waitingPage.html.twig) */
.waiting-wrapper {
  margin: 1em auto;
  max-width: 800px;
  width: 95%;
  font: 18px/1.5 sans-serif;
}

/* Animation page (templates/animation/animation.html.twig) */
.animation-screen {
  margin: 0;
  min-height: 100svh;
  background: #000;
  overflow: hidden;
}

.animation-page {
  margin: 0;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  overflow: hidden;
}

.animation-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.animation-logo {
  width: 120px;
  opacity: 0;
  transform: scale(0.2);
  transform-origin: center;
  will-change: transform, opacity;
}

.animation-logo.is-zooming {
  animation: strongZoom var(--logo-zoom-duration, 3000ms) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes strongZoom {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }

  40% {
    opacity: 1;
  }

  100% {
    transform: scale(3.5);
    opacity: 1;
  }
}

/* Configuration page (templates/configuration/configuration.html.twig) */
.configuration-page {
  overflow-x: hidden;
}

.configuration-page .dashboard-shell,
.profile-edit-page .dashboard-shell,
.profile-photo-page .dashboard-shell,
.profile-view-page .dashboard-shell,
.signalement-page .dashboard-shell {
  width: 100%;
  max-width: none;
  padding-left: clamp(12px, 1.5vw, 24px);
  padding-right: clamp(12px, 1.5vw, 24px);
  min-height: calc(100vh - var(--necta-header-height) - var(--necta-footer-reserved-height));
}

.configuration-page .dashboard-shell,
.profile-edit-page .dashboard-shell,
.profile-photo-page .dashboard-shell,
.profile-view-page .dashboard-shell,
.signalement-page .dashboard-shell {
  width: 100%;
  max-width: none;
  padding-left: clamp(12px, 1.5vw, 24px);
  padding-right: clamp(12px, 1.5vw, 24px);
}

.configuration-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.configuration-main-card {
  width: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(135deg, #cb6ce6, #b14fd1) !important;
  border: 1px solid rgba(120, 52, 148, 0.72) !important;
  box-shadow: 0 16px 30px rgba(132, 61, 163, 0.26) !important;
}

.configuration-hero-card {
  margin: 0;
}

.configuration-page-background {
  background-image: url("../images/dashboard-gEcukiH.png");
}

.configuration-title {
  margin: 0;
}

.configuration-flash {
  margin: 0 0 14px;
  text-align: center;
  align-self: center;
  width: min(100%, 720px);
}

.configuration-confirm-dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: none;
}

.configuration-confirm-dialog.configuration-confirm-dialog-fallback[open] {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.configuration-confirm-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.configuration-page.configuration-modal-open .configuration-shell,
.configuration-page.configuration-modal-open header {
  filter: blur(2px);
}

.configuration-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.configuration-confirm-box {
  width: min(92vw, 420px);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.configuration-confirm-title {
  margin: 0 0 8px;
  color: #1f9d55 !important;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.configuration-confirm-message {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 600;
  color: #1f1f1f;
}

.configuration-confirm-ok {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 auto !important;
  min-width: 100px;
  padding: 10px 16px;
  border: 1px solid rgba(89, 45, 121, 0.38);
  border-radius: 10px;
  background: #cb6ce6 !important;
  color: #000 !important;
  font-weight: 700;
  cursor: pointer;
}

.configuration-confirm-ok:hover {
  background: #b14fd1 !important;
}

.configuration-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.configuration-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(252, 247, 241, 0.96));
  border: 1px solid rgba(138, 109, 70, 0.34);
  border-radius: 14px;
  padding: 22px 20px;
  min-height: 0;
  height: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(86, 55, 30, 0.2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.configuration-card:hover {
  border-color: #d9b25f;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.42), 0 8px 18px rgba(217, 178, 95, 0.35);
}

.configuration-card-title {
  margin: 0 0 16px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #4f2c1f;
}

.configuration-card .mb-3 {
  margin: 0 0 20px !important;
  text-align: center;
}

.configuration-card .mb-3 + .mb-3 {
  margin-top: 0;
}

.configuration-card-spaced .mb-3 {
  margin-bottom: 24px !important;
}

.configuration-card .mb-3:last-child {
  margin-bottom: 0 !important;
}

.configuration-card label {
  display: block;
  text-align: center;
  font-weight: 600;
  color: #3f2b24;
  margin-bottom: 6px;
}

.configuration-card input[type="number"],
.configuration-card select {
  width: 100%;
  box-sizing: border-box;
  min-height: 36px;
  margin-top: 4px;
  text-align: center;
  border: 1px solid rgba(131, 96, 58, 0.34);
  border-radius: 8px;
  background-color: #fff;
}

.configuration-card .form-check {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.configuration-card .form-check label {
  margin-bottom: 0;
  font-weight: 500;
}

.configuration-card .form-check:last-child {
  margin-bottom: 0;
}

.configuration-card .inline-genre > div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.configuration-card .inline-genre .form-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
}

.configuration-card .inline-genre .form-check-input {
  margin-top: 0;
}

.configuration-card .inline-genre .form-check-label {
  margin: 0;
  line-height: 1;
}

.configuration-actions {
  width: 100%;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  clear: both;
}

.configuration-actions .configuration-action-button {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  min-height: 52px;
  padding: 11px 24px;
  border-radius: 10px;
  color: #000;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  margin-top: 45px;
  box-shadow: none;
  box-sizing: border-box;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.configuration-actions .configuration-action-button:focus-visible {
  outline: 2px solid rgba(49, 26, 17, 0.55);
  outline-offset: 3px;
}

.configuration-actions .configuration-cancel {
  border: 1px solid rgba(184, 143, 26, 0.45);
  background-color: #f4c542;
}

.configuration-actions .configuration-cancel:hover {
  background-color: #ddb131;
}

.configuration-actions .configuration-submit {
  border: 1px solid rgba(89, 45, 121, 0.4);
  background-color: #9c56c0;
}

.configuration-actions .configuration-submit:hover {
  background-color: #7e3aa3;
}

.notifications-card .notification-switch-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notifications-card .notification-switch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
}

.notifications-card .notification-switch-item > label:first-child {
  margin: 0;
  font-weight: 600;
}

.notification-switch {
  position: relative;
  width: 58px;
  height: 30px;
  display: inline-block;
  flex-shrink: 0;
}

.notification-switch-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.notification-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cf4a4a;
  border: 1px solid rgba(0, 0, 0, 0.18);
  transition: background-color 0.2s ease;
}

.notification-switch-track::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.notification-switch-track::after {
  content: "OFF";
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}

.notification-switch-input:checked + .notification-switch-track {
  background: #2aa84d;
}

.notification-switch-input:checked + .notification-switch-track::before {
  transform: translateX(28px);
}

.notification-switch-input:checked + .notification-switch-track::after {
  content: "ON";
  right: 27px;
}

@media (max-width: 1100px) {
  :root {
    --necta-header-height: 68px;
    --necta-footer-reserved-height: 50px;
    --necta-page-scroll-offset: 40px;
    --necta-shell-padding-top: calc(var(--necta-header-height) + 26px);
    --necta-header-height: 68px;
    --necta-footer-reserved-height: 50px;
    --necta-page-scroll-offset: 40px;
    --necta-shell-padding-top: calc(var(--necta-header-height) + 26px);
    --necta-shell-padding-x: 16px;
    --necta-shell-padding-bottom: 20px;
    --necta-dashboard-screen-card-min-height: max(640px, calc(100svh - var(--necta-shell-padding-top) - var(--necta-shell-padding-bottom)));
  }

  .home-page {
    --necta-header-height: 74px;
    --necta-dashboard-screen-card-min-height: max(640px, calc(100svh - var(--necta-shell-padding-top) - var(--necta-shell-padding-bottom)));
  }

  .home-page {
    --necta-header-height: 74px;
  }

  .auth-shell {
    padding: var(--necta-shell-padding-top) var(--necta-shell-padding-x) var(--necta-shell-padding-bottom);
    padding: var(--necta-shell-padding-top) var(--necta-shell-padding-x) var(--necta-shell-padding-bottom);
  }

  .auth-panel {
    grid-template-columns: 1fr;
  }

  .auth-panel-left {
    border-right: none;
    border-bottom: 1px solid rgba(138, 109, 70, 0.25);
    padding: 30px 22px;
  }

  .auth-panel-right {
    padding: 24px 20px;
  }

  .documents-shell {
    align-items: stretch;
  }

  .documents-hero,
  .documents-workspace {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    margin-top: 20px;
    display: block;
    width: 100%;
  }

  .configuration-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .configuration-card {
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .notifications-card .notification-switch-item {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  :root {
    --necta-header-height: 62px;
    --necta-footer-reserved-height: 46px;
    --necta-page-scroll-offset: 32px;
    --necta-shell-padding-top: calc(var(--necta-header-height) + 20px);
    --necta-header-height: 62px;
    --necta-footer-reserved-height: 46px;
    --necta-page-scroll-offset: 32px;
    --necta-shell-padding-top: calc(var(--necta-header-height) + 20px);
    --necta-shell-padding-x: 12px;
    --necta-shell-padding-bottom: 16px;
    --necta-dashboard-screen-card-min-height: max(540px, calc(100svh - var(--necta-shell-padding-top) - var(--necta-shell-padding-bottom)));
  }

  .home-page {
    --necta-header-height: 68px;
    --necta-dashboard-screen-card-min-height: max(540px, calc(100svh - var(--necta-shell-padding-top) - var(--necta-shell-padding-bottom)));
  }

  .home-page {
    --necta-header-height: 68px;
  }

  .auth-shell {
    padding: var(--necta-shell-padding-top) var(--necta-shell-padding-x) var(--necta-shell-padding-bottom);
    padding: var(--necta-shell-padding-top) var(--necta-shell-padding-x) var(--necta-shell-padding-bottom);
  }

  .auth-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  .auth-form-title {
    font-size: 1.35rem;
  }

  .auth-panel-right {
    padding: 20px 16px;
  }

  .auth-secondary-link-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .documents-card {
    padding: 20px 16px;
    border-radius: 24px;
  }

  .documents-hero-copy,
  .documents-hero-status-card,
  .documents-panel {
    padding: 20px 18px;
  }

  .documents-steps {
    grid-template-columns: 1fr;
  }

  .documents-upload-panel {
    flex-direction: column;
  }

  .documents-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .documents-actions .auth-submit,
  .documents-link-btn {
    width: 100%;
  }

  .documents-actions-bottom .documents-link-btn {
    width: auto;
    min-width: min(100%, 260px);
  }

  .home-hero {
    padding: 86px 16px 26px;
  }

  .home-hero h1 {
    margin-left: clamp(0px, 1.5vw, 8px);
    margin-top: -18px;
  }

  .home-cta-btn {
    margin-top: -2px;
    margin-left: clamp(0px, 1.5vw, 8px);
  }

  .necta-navbar {
    padding: 6px 12px;
    gap: 10px;
  }

  .home-page .necta-navbar {
    padding: 8px 12px;
    padding: 6px 12px;
    gap: 10px;
  }

  .home-page .necta-navbar {
    padding: 8px 12px;
  }

  .necta-nav-logo {
    width: 60px;
    height: 60px;
    margin: 0;
  }

  .home-page .necta-nav-logo {
    width: 68px;
    height: 68px;
    width: 60px;
    height: 60px;
    margin: 0;
  }

  .home-page .necta-nav-logo {
    width: 68px;
    height: 68px;
  }

  .necta-nav-right {
    gap: 8px;
  }

  .necta-auth-actions {
    gap: 6px;
  }

  .necta-auth-link {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .necta-moderator-menu-trigger {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.82rem;
  }

  .necta-auth-actions {
    gap: 6px;
  }

  .necta-auth-link {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .necta-moderator-menu-trigger {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.82rem;
  }

  .necta-nav-btn {
    padding: 10px 14px;
    font-size: 14px;
  }

  .necta-profile-trigger {
    min-width: 84px;
    max-width: 132px;
  }
}

/* Profile + moderation pages (editer/profil/photo/verification) */
.profile-edit-page,
.profile-photo-page,
.profile-view-page,
.verification-page {
  overflow-x: hidden;
}

.profile-edit-page .dashboard-page-background {
  background-image: url("../images/edit-sxeA-5m.png");
}

.profile-photo-page .dashboard-page-background {
  background-image: url("../images/upload_pic-xKQT3wd.png");
}

.verification-page .dashboard-shell {
  width: 100%;
  max-width: none;
  padding-left: clamp(12px, 1.5vw, 24px);
  padding-right: clamp(12px, 1.5vw, 24px);
  min-height: calc(100vh - var(--necta-header-height) - var(--necta-footer-reserved-height));
}

.verification-dashboard-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  width: 100%;
  max-width: none;
  padding-left: clamp(12px, 1.5vw, 24px);
  padding-right: clamp(12px, 1.5vw, 24px);
}

.verification-dashboard-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.verification-dashboard-card {
  width: 100%;
  width: 100%;
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: var(--necta-main-card-min-height);
  flex: 0 0 auto;
  min-height: var(--necta-main-card-min-height);
  gap: 18px;
  box-sizing: border-box;
  box-sizing: border-box;
  background: linear-gradient(135deg, #cb6ce6, #b14fd1) !important;
  border: 1px solid rgba(120, 52, 148, 0.72) !important;
  box-shadow: 0 16px 30px rgba(132, 61, 163, 0.26) !important;
}

.verification-moderation-layout {
  display: grid;
  grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 100%;
}

.verification-sidebar {
  margin: 0;
  position: static;
  align-self: stretch;
  height: auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 18px;
  background: linear-gradient(180deg, rgba(255, 249, 255, 0.96), rgba(248, 230, 255, 0.92));
  animation: verification-sidebar-in 0.4s ease;
}

.verification-sidebar-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.verification-sidebar-copy .dashboard-card-title,
.verification-sidebar-copy .dashboard-card-text {
  margin: 0;
}

.verification-sidebar-nav {
  display: grid;
  gap: 12px;
}

.verification-sidebar-btn {
  appearance: none;
  border: 1px solid rgba(131, 96, 58, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  color: #321d15;
  padding: 16px 16px 15px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.verification-sidebar-btn:hover,
.verification-sidebar-btn:focus-visible {
  border-color: rgba(177, 79, 209, 0.4);
  box-shadow: 0 14px 28px rgba(177, 79, 209, 0.14);
  transform: translateX(4px);
  outline: none;
}

.verification-sidebar-btn.is-active {
  border-color: rgba(177, 79, 209, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 221, 252, 0.95));
  box-shadow: 0 18px 30px rgba(177, 79, 209, 0.18);
}

.verification-sidebar-btn-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.verification-sidebar-label {
  color: #341c13;
  font-size: 0.98rem;
  font-weight: 800;
}

.verification-sidebar-note {
  color: #6c5245;
  font-size: 0.85rem;
  line-height: 1.4;
}

.verification-sidebar-badge {
  flex: 0 0 auto;
  min-width: 42px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(177, 79, 209, 0.14);
  color: #5c246f;
  font-size: 0.95rem;
  font-weight: 800;
}

.verification-content-area {
  width: 100%;
  min-width: 0;
  min-height: 0;
}

.verification-content-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  animation: verification-panel-in 0.32s ease;
}

.verification-content-panel[hidden] {
  display: none;
}

.verification-moderation-layout {
  display: grid;
  grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 100%;
}

.verification-sidebar {
  margin: 0;
  position: static;
  align-self: stretch;
  height: auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 18px;
  background: linear-gradient(180deg, rgba(255, 249, 255, 0.96), rgba(248, 230, 255, 0.92));
  animation: verification-sidebar-in 0.4s ease;
}

.verification-sidebar-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.verification-sidebar-copy .dashboard-card-title,
.verification-sidebar-copy .dashboard-card-text {
  margin: 0;
}

.verification-sidebar-nav {
  display: grid;
  gap: 12px;
}

.verification-sidebar-btn {
  appearance: none;
  border: 1px solid rgba(131, 96, 58, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  color: #321d15;
  padding: 16px 16px 15px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.verification-sidebar-btn:hover,
.verification-sidebar-btn:focus-visible {
  border-color: rgba(177, 79, 209, 0.4);
  box-shadow: 0 14px 28px rgba(177, 79, 209, 0.14);
  transform: translateX(4px);
  outline: none;
}

.verification-sidebar-btn.is-active {
  border-color: rgba(177, 79, 209, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 221, 252, 0.95));
  box-shadow: 0 18px 30px rgba(177, 79, 209, 0.18);
}

.verification-sidebar-btn-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.verification-sidebar-label {
  color: #341c13;
  font-size: 0.98rem;
  font-weight: 800;
}

.verification-sidebar-note {
  color: #6c5245;
  font-size: 0.85rem;
  line-height: 1.4;
}

.verification-sidebar-badge {
  flex: 0 0 auto;
  min-width: 42px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(177, 79, 209, 0.14);
  color: #5c246f;
  font-size: 0.95rem;
  font-weight: 800;
}

.verification-content-area {
  width: 100%;
  min-width: 0;
  min-height: 0;
}

.verification-content-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  animation: verification-panel-in 0.32s ease;
}

.verification-content-panel[hidden] {
  display: none;
}

.verification-dashboard-hero {
  margin: 0;
}

.verification-summary-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.verification-summary-grid-signalements {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.verification-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.verification-section-signalements {
  margin-top: 6px;
}

.verification-signalements-hero {
  margin: 0;
}

.verification-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.verification-section-text {
  margin: 6px 0 0;
}

.verification-summary-grid-signalements {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.verification-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.verification-section-signalements {
  margin-top: 6px;
}

.verification-signalements-hero {
  margin: 0;
}

.verification-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.verification-section-text {
  margin: 6px 0 0;
}

.verification-summary-card {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(131, 96, 58, 0.22);
  background: rgba(255, 255, 255, 0.82);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.verification-summary-label {
  color: #6f4e40;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.verification-summary-value {
  color: #311a11;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
}

.verification-summary-value-small {
  font-size: 1.08rem;
  line-height: 1.3;
}

.verification-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.95fr);
  gap: 20px;
  align-items: start;
}

.verification-review-list {
  display: grid;
  gap: 16px;
}

.verification-user-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.verification-user-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.verification-user-kicker {
  margin: 0 0 6px;
  color: #7a4f3a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verification-user-title {
  margin-bottom: 6px;
}

.verification-user-email {
  margin: 0;
}

.verification-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(188, 141, 0, 0.36);
  background: rgba(224, 168, 0, 0.16);
  color: #6a5005;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: capitalize;
  white-space: nowrap;
}

.verification-user-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.verification-meta-item {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(131, 96, 58, 0.18);
  background: rgba(250, 247, 253, 0.9);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.verification-meta-label,
.verification-block-label {
  color: #775042;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.verification-documents-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.verification-documents-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.verification-doc-trigger {
  min-width: 220px;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(131, 96, 58, 0.24);
  background: rgba(255, 255, 255, 0.92);
  color: #2f1d16;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.verification-doc-trigger:hover,
.verification-doc-trigger.is-active {
  border-color: rgba(177, 79, 209, 0.46);
  box-shadow: 0 10px 20px rgba(177, 79, 209, 0.14);
  transform: translateY(-1px);
}

.verification-doc-name {
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

.verification-doc-meta {
  color: #6e5448;
  font-size: 0.82rem;
}

.verification-no-document {
  margin: 0;
}

.verification-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.verification-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 132px;
  padding: 0 18px;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.verification-action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.verification-action-btn-approve {
  background: #22c55e;
  border-color: #16a34a;
  color: #052e14;
}

.verification-action-btn-refuse {
  background: #ef4444;
  border-color: #dc2626;
  color: #fff4f4;
}

.verification-action-btn-neutral {
  background: #f4c542;
  border-color: #d6a91f;
  color: #4b3400;
}

.verification-action-btn-neutral {
  background: #f4c542;
  border-color: #d6a91f;
  color: #4b3400;
}

.verification-preview-card {
  position: sticky;
  top: 110px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.verification-preview-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.verification-preview-text {
  margin: 0;
}

.verification-preview-stage {
  position: relative;
  width: 100%;
  min-height: 540px;
  border-radius: 22px;
  border: 1px solid rgba(131, 96, 58, 0.22);
  background: linear-gradient(180deg, rgba(253, 252, 255, 0.95), rgba(246, 239, 252, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
  overflow: hidden;
}

.verification-preview-empty {
  position: absolute;
  inset: 0;
  padding: 24px;
  color: #62483d;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verification-preview-image,
.verification-preview-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #fff;
}

.verification-preview-image {
  object-fit: contain;
}

.verification-preview-open {
  align-self: flex-start;
}

.verification-empty-state {
  margin: 0;
}

.verification-signalement-list {
  margin-top: 2px;
}

.verification-signalement-card {
  background: rgba(255, 255, 255, 0.94);
}

.verification-signalement-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.verification-signalement-decision {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
}

.verification-signalement-decision.is-pending {
  color: #8a5a06;
}

.verification-signalement-decision.is-processed {
  color: #226338;
}

.verification-signalement-description {
  margin: 0;
  line-height: 1.55;
}

.verification-signalement-reason-text {
  white-space: pre-line;
}

.verification-signalement-form {
  width: 100%;
  display: grid;
  gap: 12px;
}

.verification-signalement-reason-field {
  width: 100%;
}

.verification-signalement-reason-input {
  min-height: 120px;
}

.verification-signalement-help {
  margin: 8px 0 0;
  color: #6e5448;
  font-size: 0.84rem;
  line-height: 1.5;
}

.verification-signalement-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.verification-signalement-treated-note {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 11px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(22, 163, 74, 0.22);
  color: #14532d;
  font-weight: 700;
}

@keyframes verification-sidebar-in {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes verification-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.verification-signalement-list {
  margin-top: 2px;
}

.verification-signalement-card {
  background: rgba(255, 255, 255, 0.94);
}

.verification-signalement-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.verification-signalement-decision {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
}

.verification-signalement-decision.is-pending {
  color: #8a5a06;
}

.verification-signalement-decision.is-processed {
  color: #226338;
}

.verification-signalement-description {
  margin: 0;
  line-height: 1.55;
}

.verification-signalement-reason-text {
  white-space: pre-line;
}

.verification-signalement-form {
  width: 100%;
  display: grid;
  gap: 12px;
}

.verification-signalement-reason-field {
  width: 100%;
}

.verification-signalement-reason-input {
  min-height: 120px;
}

.verification-signalement-help {
  margin: 8px 0 0;
  color: #6e5448;
  font-size: 0.84rem;
  line-height: 1.5;
}

.verification-signalement-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.verification-signalement-treated-note {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 11px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(22, 163, 74, 0.22);
  color: #14532d;
  font-weight: 700;
}

@keyframes verification-sidebar-in {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes verification-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 8px 16px 16px;
  padding: 8px 16px 16px;
  color: #4c3a31;
  font-size: 0.86rem;
  font-weight: 600;
}

.site-footer p {
  margin: 0;
}

.profile-shell {
  width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  flex: 0 0 auto;
  gap: 22px;
  min-height: calc(100vh - var(--necta-header-height) - var(--necta-footer-reserved-height));
}

.dashboard-card.profile-view-main-card,
.dashboard-card.profile-photo-main-card,
.dashboard-card.profile-edit-main-card {
  width: 100%;
  width: 100%;
  padding: 18px;
  padding-bottom: var(--necta-main-card-padding-bottom);
  padding-bottom: var(--necta-main-card-padding-bottom);
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: var(--necta-main-card-min-height);
  flex: 0 0 auto;
  min-height: var(--necta-main-card-min-height);
  gap: 22px;
  background: linear-gradient(135deg, #cb6ce6, #b14fd1) !important;
  border: 1px solid rgba(120, 52, 148, 0.72) !important;
  box-shadow: 0 16px 30px rgba(132, 61, 163, 0.26) !important;
}

.profile-edit-card,
.profile-photo-card,
.profile-view-carousel-card,
.profile-view-details-card,
.verification-decision-card {
  margin: 0;
}

.profile-view-hero-card {
  margin: 0;
}

.profile-view-action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
}

.profile-view-edit-btn,
.profile-view-photos-btn,
.profile-view-likes-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  min-height: 44px;
}

.profile-view-edit-btn {
  background: linear-gradient(135deg, #27ae60, #229954);
  color: white;
}

.profile-view-photos-btn {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
}

.profile-view-likes-btn {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
}

.profile-view-edit-btn:hover,
.profile-view-photos-btn:hover,
.profile-view-likes-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.profile-view-edit-btn:hover {
  box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

.profile-view-photos-btn:hover {
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.profile-view-likes-btn:hover {
  box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
}

@media (max-width: 640px) {
  .profile-view-action-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .profile-view-edit-btn,
  .profile-view-photos-btn,
  .profile-view-likes-btn {
    min-height: 40px;
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

/* Profile Statistics Styles */
.profile-view-stats-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(120, 52, 148, 0.2);
}

.profile-view-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.profile-view-stat-item {
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(120, 52, 148, 0.15);
}

.profile-view-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #b14fd1;
  margin-bottom: 4px;
}

.profile-view-stat-label {
  font-size: 0.85rem;
  color: #6c5245;
  font-weight: 600;
}

.profile-photo-hero-card {
  margin: 0;
}

.profile-edit-hero-card {
  margin: 0;
}

.profile-view-hero-layout {
  display: flex;
  align-items: flex-start;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 18px;
}

.profile-view-hero-content {
  min-width: 0;
  flex: 1 1 320px;
}

.profile-view-hero-aside {
  margin-left: auto;
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 14px;
  flex-shrink: 0;
  flex: 1 1 320px;
}

.profile-view-hero-aside {
  margin-left: auto;
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 14px;
  flex-shrink: 0;
}

.profile-view-hero-avatar {
  width: 104px;
  height: 104px;
  width: 104px;
  height: 104px;
  border-radius: 999px;
  border: 2px solid rgba(59, 130, 246, 0.5);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.92));
  box-shadow: 0 10px 22px rgba(30, 64, 175, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-view-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-view-hero-avatar span {
  color: #1d4ed8;
  font-size: 1.45rem;
  font-size: 1.45rem;
  font-weight: 800;
}

.profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-edit-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.profile-edit-field label {
  color: #3f2b24;
  font-weight: 700;
}

.profile-edit-textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  height: 44px;
  border: 1px solid rgba(131, 96, 58, 0.34);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #fdfcff);
  color: #2b1f19;
  padding: 12px 13px;
  font-size: 0.97rem;
  line-height: 1.45;
  resize: none;
  overflow-y: hidden;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.03), 0 4px 10px rgba(0, 0, 0, 0.04);
}

.profile-edit-textarea:focus {
  outline: none;
  border-color: #9c56c0;
  box-shadow: 0 0 0 3px rgba(156, 86, 192, 0.2), 0 4px 10px rgba(0, 0, 0, 0.04);
}

.profile-edit-interests-field {
  margin-top: 2px;
}

.profile-edit-interests-help {
  margin: 0;
  color: #5b4a41;
  font-size: 0.9rem;
}

.profile-edit-interests-container {
  margin-top: 3px;
  padding: 10px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(243, 249, 255, 0.95), rgba(236, 245, 255, 0.85));
}

.profile-edit-interests {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 9px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.profile-edit-interest-option {
  position: relative;
}

.profile-edit-interests label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
  min-height: 44px;
  padding: 8px 11px;
  border: 1.5px solid #3b82f6;
  border-radius: 10px;
  background: #f8fbff;
  color: #1f3a66;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(30, 64, 175, 0.1);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.profile-edit-interests label::before {
  display: none;
}

.profile-edit-interests input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-edit-interests input[type="checkbox"]:focus-visible + label {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 3px 8px rgba(30, 64, 175, 0.1);
  border-color: #2563eb;
}

.profile-edit-interests input[type="checkbox"]:checked + label {
  border-color: #16a34a;
  background: linear-gradient(180deg, #eefdf2, #e2f8e9);
  color: #166534;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(22, 163, 74, 0.16);
}

.profile-edit-interest-option:hover label {
  border-color: #2563eb;
  box-shadow: 0 7px 14px rgba(30, 64, 175, 0.14);
}

.profile-edit-actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center; /* Center the buttons */
  gap: 12px;
  flex-wrap: wrap;
}

.profile-edit-submit {
  min-width: 300px;
}

.profile-edit-actions .profile-edit-cancel {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  font: inherit !important;
  margin-top: 6px !important;
  min-height: 44px !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  border-radius: 11px !important;
  background: linear-gradient(180deg, #fbbf24, #f59e0b) !important;
  color: #78350f !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3) !important;
  transition: all 0.2s ease !important;
  min-width: 150px !important;
  padding: 0 24px !important;
}

.profile-edit-actions .profile-edit-cancel:hover {
  background: linear-gradient(180deg, #f59e0b, #d97706) !important;
  border-color: rgba(217, 119, 6, 0.5) !important;
  text-decoration: none !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4) !important;
}

.profile-edit-actions .profile-edit-cancel:focus {
  outline: none !important;
  border-color: rgba(245, 158, 11, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3), 0 10px 25px rgba(245, 158, 11, 0.3) !important;
}

.profile-edit-actions .profile-edit-cancel:active {
  transform: translateY(0) !important;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3) !important;
}

.profile-photo-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-photo-upload-panel {
  margin-top: 0;
}

.profile-photo-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-photo-submit {
  min-width: 180px;
}

.profile-photo-done {
  min-width: 170px;
  border: 1px solid rgba(89, 45, 121, 0.38);
  background: rgba(203, 108, 230, 0.16);
}

.profile-photo-gallery-card {
  margin: 0;
}

.profile-photo-featured-card {
  margin: 0;
}

.profile-photo-featured-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-photo-featured-avatar {
  width: 72px;
  height: 72px;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 2px solid rgba(59, 130, 246, 0.5);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.92));
  box-shadow: 0 8px 18px rgba(30, 64, 175, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-photo-featured-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-featured-avatar span {
  color: #1d4ed8;
  font-size: 1.25rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.profile-photo-featured-text {
  margin: 0;
}

.profile-photo-grid {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
  gap: 12px;
  justify-content: start;
  justify-content: start;
}

.profile-photo-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(131, 96, 58, 0.22);
  background: rgba(255, 255, 255, 0.88);
  display: flex;
  flex-direction: column;
}

.profile-photo-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.profile-photo-item-actions {
  margin: 0;
  padding: 10px;
  background: rgba(250, 247, 253, 0.95);
  border-top: 1px solid rgba(131, 96, 58, 0.18);
  display: flex;
  justify-content: center;
}

.profile-photo-item-actions form {
  margin: 0;
}

.profile-photo-delete-btn {
  margin-top: 0;
  min-height: 44px;
  padding: 0 16px;
}

.profile-photo-delete-btn:hover {
  transform: translateY(-1px);
}

.profile-view-page .profile-view-photo-scroll-box {
  margin-top: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}

.profile-view-page .profile-view-photo-scroll-box::-webkit-scrollbar {
  height: 8px;
}

.profile-view-page .profile-view-photo-scroll-box::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(122, 79, 58, 0.45);
}

.profile-view-page .profile-view-photo-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
}

.profile-view-page .profile-view-photo-track > .profile-photo-item {
  flex: 0 0 clamp(160px, 16vw, 220px);
  max-width: clamp(160px, 16vw, 220px);
  flex: 0 0 clamp(160px, 16vw, 220px);
  max-width: clamp(160px, 16vw, 220px);
  scroll-snap-align: start;
}

.profile-view-empty {
  color: #5b4a41;
  font-weight: 600;
}

.profile-view-subtitle {
  margin: 0 0 10px;
  color: #4f2c1f;
  font-size: 1rem;
}

.profile-view-details-header {
  margin-bottom: 0;
}

.profile-view-details-header .dashboard-card-title {
  margin: 0;
}

.profile-view-details-card {
  position: relative;
  padding: 24px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-view-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 26px;
  align-items: start;
}

.profile-view-details-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-view-side-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  justify-self: end;
}

.profile-view-reference-card,
.profile-view-actions-card {
  border-radius: 18px;
  border: 1px solid rgba(120, 52, 148, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 242, 255, 0.96));
  box-shadow: 0 14px 28px rgba(120, 52, 148, 0.1);
}

.profile-view-carousel-card,
.profile-view-reference-card {
  padding: 24px;
  border-radius: 20px;
}

.profile-view-card-kicker {
  margin: 0 0 8px;
  color: #7a2f96;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-view-reference-head .dashboard-card-title,
.profile-view-actions-card .dashboard-card-title {
  margin-bottom: 10px;
}

.profile-view-details-header-split,
.profile-view-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
}

.profile-view-details-title-group {
  min-width: 0;
  flex: 1 1 420px;
}

.profile-view-details-intro {
  margin: 6px 0 0;
  max-width: 60ch;
}

.profile-view-inline-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.profile-view-description {
  margin: 0;
  max-width: 68ch;
  line-height: 1.7;
}

.profile-view-interest-block {
  padding-top: 18px;
  border-top: 1px solid rgba(120, 52, 148, 0.12);
}

.profile-view-section-heading .dashboard-card-title {
  margin: 0;
}

.profile-view-section-note {
  margin: 0;
  max-width: 34ch;
}

.profile-view-reference-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-view-reference-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-view-reference-head .dashboard-card-title {
  margin: 0;
}

.profile-view-reference-intro,
.profile-view-actions-copy {
  margin-bottom: 0;
}

.profile-view-relation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}

.profile-view-relation-item {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(120, 52, 148, 0.12);
  background: rgba(255, 255, 255, 0.84);
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.profile-view-relation-value {
  color: #7a2f96;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
}

.profile-view-relation-value-text {
  font-size: 1rem;
  line-height: 1.35;
}

.profile-view-relation-label {
  margin-top: 4px;
  color: #6c5245;
  font-size: 0.82rem;
  font-weight: 600;
}

.profile-view-reference-tags {
  margin-top: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(120, 52, 148, 0.12);
}

.profile-view-reference-tags .profile-view-subtitle {
  margin-top: 0;
}

.profile-view-tags-compact {
  margin-top: 10px;
}

.profile-view-action-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 14px;
}

.profile-view-match-form,
.profile-view-message-form {
  margin: 0;
  flex-shrink: 0;
  width: 100%;
}

.profile-view-inline-actions .profile-view-match-form,
.profile-view-inline-actions .profile-view-message-form {
  width: auto;
  flex: 0 0 auto;
}

.profile-view-match-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 132px;
  padding: 0 22px;
  border-radius: 11px;
  border: 1.5px solid rgba(147, 51, 234, 0.28);
  background: linear-gradient(180deg, #faf5ff, #eddcff);
  color: #7a2f96;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(122, 47, 150, 0.14);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.profile-view-match-btn:hover {
  background: linear-gradient(180deg, #f3e8ff, #e9d5ff);
  transform: translateY(-1px);
}

.profile-view-match-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.22), 0 10px 22px rgba(122, 47, 150, 0.16);
}

.profile-view-match-btn.is-active {
  border-color: rgba(126, 34, 206, 0.46);
  background: linear-gradient(180deg, #c084fc, #9333ea);
  color: #fff;
  box-shadow: 0 10px 22px rgba(122, 47, 150, 0.24);
}

.profile-view-match-btn.is-active:hover {
  background: linear-gradient(180deg, #a855f7, #7e22ce);
}

.profile-view-message-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 132px;
  padding: 0 22px;
  border-radius: 11px;
  border: 1.5px solid #15803d;
  background: #16a34a;
  color: #f0fdf4;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.22);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.profile-view-message-btn:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.profile-view-message-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.24), 0 10px 22px rgba(21, 128, 61, 0.2);
}

.profile-view-tags {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-view-tags li {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #331a43;
  border: 1px solid rgba(89, 45, 121, 0.28);
  background: rgba(203, 108, 230, 0.12);
}

.verification-grid {
  margin-top: 0;
}

.verification-doc-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.verification-doc-list a {
  color: #4a2b73;
  font-weight: 700;
}

.verification-doc-list a:hover {
  text-decoration: underline;
}

.verification-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.verification-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.verification-field label {
  color: #3f2b24;
  font-weight: 700;
}

.verification-choice #user_verification_decision {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.verification-choice #user_verification_decision label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(131, 96, 58, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
}

.verification-actions {
  margin-top: 2px;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .verification-moderation-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .verification-sidebar {
    position: static;
    height: auto;
    min-height: auto;
  }

  .verification-sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .verification-moderation-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .verification-sidebar {
    position: static;
    height: auto;
    min-height: auto;
  }

  .verification-sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .verification-summary-grid,
  .verification-user-meta {
    grid-template-columns: 1fr;
  }

  .verification-summary-grid-signalements,
  .verification-signalement-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .verification-summary-grid-signalements,
  .verification-signalement-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .verification-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .verification-preview-card {
    position: static;
  }

  .profile-edit-grid {
    grid-template-columns: 1fr;
  }

  .profile-edit-interests {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .verification-page .dashboard-shell {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .verification-sidebar-nav {
    grid-template-columns: 1fr;
  }

  .verification-sidebar-btn {
    transform: none;
    padding-left: 12px;
    padding-right: 12px;
  }

  .verification-sidebar-nav {
    grid-template-columns: 1fr;
  }

  .verification-sidebar-btn {
    transform: none;
  }

  .verification-summary-value {
    font-size: 1.35rem;
  }

  .verification-summary-grid-signalements,
  .verification-signalement-meta {
    grid-template-columns: 1fr;
  }

  .verification-summary-grid-signalements,
  .verification-signalement-meta {
    grid-template-columns: 1fr;
  }

  .verification-user-header,
  .verification-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .verification-doc-trigger,
  .verification-action-btn,
  .verification-signalement-treated-note,
  .verification-signalement-treated-note,
  .verification-preview-open {
    width: 100%;
  }

  .verification-preview-stage,
  .verification-preview-image,
  .verification-preview-frame {
    min-height: 360px;
    height: 360px;
  }

  .profile-edit-actions,
  .profile-photo-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-edit-actions .auth-submit,
  .profile-edit-actions .auth-cancel,
  .profile-edit-actions .documents-link-btn,
  .profile-photo-submit,
  .profile-photo-done {
    width: 100%;
    min-width: auto;
  }

  .profile-photo-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .profile-edit-interests {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-view-page .profile-view-photo-track {
    gap: 10px;
  }

  .profile-view-page .profile-view-photo-track > .profile-photo-item {
    flex-basis: clamp(150px, 38vw, 190px);
    max-width: clamp(150px, 38vw, 190px);
    flex-basis: clamp(150px, 38vw, 190px);
    max-width: clamp(150px, 38vw, 190px);
  }

  .profile-view-hero-layout {
    align-items: flex-start;
  }

  .profile-view-hero-avatar {
    width: 88px;
    height: 88px;
    width: 88px;
    height: 88px;
  }

  .profile-photo-featured-row {
    align-items: flex-start;
  }

  .profile-view-details-header {
    margin-bottom: 14px;
  }

  .profile-view-details-card,
  .profile-view-carousel-card,
  .profile-view-reference-card {
    padding: 18px;
  }

  .profile-view-details-header-split,
  .profile-view-section-heading {
    align-items: stretch;
    gap: 14px;
  }

  .profile-view-content-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .profile-view-side-panel {
    width: 100%;
    justify-self: stretch;
  }

  .profile-view-action-group {
    width: 100%;
    max-width: none;
  }

  .profile-view-inline-actions {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  .profile-view-inline-actions .profile-view-match-form,
  .profile-view-inline-actions .profile-view-message-form {
    flex: 0 0 auto;
  }

  .profile-view-match-btn,
  .profile-view-message-btn {
    width: auto;
  }

  .profile-view-relation-grid {
    grid-template-columns: 1fr;
  }

  .verification-actions {
    justify-content: stretch;
  }

  .verification-actions .auth-submit {
    width: 100%;
  }

  .auth-toast-stack {
    top: 72px;
    right: 10px;
    width: calc(100vw - 20px);
  }
}

/* Global layout safety */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}


/*Chat style*/
.chat-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;

    width: 95%;
    margin: 15px 35px 15px 35px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.15);
    z-index: 10;
}


/* Chat container */
.chat-wrapper {
    width: 80%;
    height: 90%;
    background: rgba(255, 255, 255, 0.8); /* slight glass effect */
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* Header */
.chat-header {
    border-bottom: 1px solid rgba(255,255,255);
    background: rgb(255, 255, 255);
    padding: 20px;
    margin-top: 3px;
    border-radius: 10px;
    color: white;
}

/* Messages area */

.chat-wrapper .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

/* Message bubbles */

.chat-wrapper .chat-message {
    padding: 15px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    margin-top: 20px;
    max-width: 40%;
    word-wrap: break-word;
}

.chat-wrapper .my-message {
    background: #4e73df;
    color: #000000;
    margin-left: auto;
}

.chat-wrapper .other-message {
    background: rgba(255, 255, 255);
    color: #000000;
}

/* Input bar */
.chat-wrapper .chat-input-area {
    display: flex;
    width: 95%;
    gap: 10px;
}

.chat-wrapper .chat-input-area input {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    outline: none;
}

.chat-wrapper .chat-input-area button {
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: #4e73df;
    color: white;
    font-weight: bold;
    transition: 0.2s ease;
}
.chat-header {
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 15px;
    margin-bottom: 15px;
    color: white;
}

.chat-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Circular avatar */
.chat-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

/*Match pop up*/
.match-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.match-popup-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    width: 360px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.match-chat-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 22px;
    background: #ff4d6d;
    color: white;
    border-radius: 8px;
    text-decoration: none;
}

.match-close {
    margin-top: 12px;
    border: none;
    background: none;
    cursor: pointer;
}
/* ===== Profils recommandés ===== */
.recommandes-page .dashboard-shell {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recommandes-layout-card {
    background: linear-gradient(135deg, #cb6ce6, #b14fd1) !important;
    border: 1px solid rgba(120, 52, 148, 0.72) !important;
    box-shadow: 0 16px 30px rgba(132, 61, 163, 0.26) !important;
    min-height: calc(100vh - var(--necta-header-height) - var(--necta-footer-reserved-height));
}

.recommandes-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recommandes-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(249, 242, 234, 0.94));
    border: 1px solid rgba(131, 96, 58, 0.34);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    padding: 24px;
    margin-top: 20px;
}

.recommandes-card-spaced {
    margin-bottom: 0;
}

.recommandes-card-title {
    margin: 0 0 20px 0;
    color: #4f2c1f;
    font-size: 1.1rem;
    font-weight: 700;
}

.recommandes-hero-card {
    width: 100% !important;
    max-width: none !important;
    margin-bottom: 18px;
}

.recommandes-card-header .dashboard-card-title {
    margin-bottom: 8px;
}

.recommandes-card-header .dashboard-card-text {
    margin-bottom: 0;
}

.recommandes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.recommandes-profile-card {
    min-height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 241, 232, 0.96));
    border-radius: 20px;
    border: 1px solid rgba(138, 109, 70, 0.22);
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.15), 0 8px 18px rgba(86, 55, 30, 0.08);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.recommandes-profile-card:hover {
    border-color: rgba(166, 123, 60, 0.45);
    box-shadow: 0 22px 34px rgba(0, 0, 0, 0.2), 0 12px 24px rgba(166, 123, 60, 0.12);
    transform: translateY(-4px);
}

.recommandes-profile-link {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 100%;
    padding: 34px 22px 22px;
    text-decoration: none;
    color: inherit;
}

.recommandes-profile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-top: 4px;
}

.recommandes-profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 999px;
    border: 1px solid rgba(138, 109, 70, 0.28);
    background: linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(244, 230, 212, 0.95));
    box-shadow: 0 10px 20px rgba(86, 55, 30, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.recommandes-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommandes-profile-avatar span {
    font-size: 1.45rem;
    font-weight: 800;
    color: #7a4f3a;
}

.recommandes-profile-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    text-align: left;
    width: 100%;
    flex: 1;
}

.recommandes-profile-heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recommandes-profile-pseudo {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
    color: #311a11;
}

.recommandes-profile-meta {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 0.9rem;
    color: #5b473d;
}

.recommandes-profile-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: auto 0 0;
}

.recommandes-profile-tags li {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #6a3a1e;
    border: 1px solid rgba(138, 109, 70, 0.26);
    background: rgba(247, 234, 214, 0.82);
}

.recommandes-profile-ville {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.recommandes-profile-distance {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(138, 109, 70, 0.22);
    background: rgba(247, 238, 227, 0.96);
    gap: 6px;
    font-size: 0.82rem;
    color: #7a4f3a;
    font-weight: 700;
    white-space: nowrap;
}

.recommandes-profile-description {
    margin: 0;
    font-size: 0.92rem;
    color: #3f2b24;
    line-height: 1.55;
}

.recommandes-profile-description-muted {
    color: #7b6a61;
    font-style: italic;
}

.recommandes-profile-cta {
    display: inline-flex;
    align-items: center;
    width: 100%;
    padding-top: 14px;
    border-top: 1px solid rgba(138, 109, 70, 0.18);
    color: #7a4f3a;
    font-size: 0.92rem;
    font-weight: 700;
}

@media (max-width: 640px) {
    .recommandes-card {
        padding: 18px;
    }

    .recommandes-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
    }

    .recommandes-profile-link {
        padding: 30px 18px 18px;
    }

    .recommandes-profile-avatar {
        width: 76px;
        height: 76px;
    }


    .verification-container{
max-width:1100px;
margin:40px auto;
}

.verification-table{
background:#ffffff;
border-radius:6px;
overflow:hidden;
box-shadow:0 3px 8px rgba(0,0,0,0.08);
}

.verification-table th{
padding:8px;
font-size:14px;
}

.verification-table td{
padding:8px;
font-size:13px;
vertical-align:middle;
}

.verification-table tbody tr:hover{
background:#f7f9fc;
}

.document-link{
display:block;
padding:3px 6px;
margin-bottom:3px;
border-radius:4px;
font-size:12px;
text-decoration:none;
background:#eef4ff;
color:#2c5cff;
width:fit-content;
}

.document-link:hover{
background:#2c5cff;
color:white;
}


.btn-valider{
display:block;
background:#2ecc71;
border:none;
padding:6px 10px;
font-size:12px;
border-radius:4px;
color:white;
margin-bottom:6px;
text-align:center;
text-decoration:none;
}

.btn-valider:hover{
background:#27ae60;
color:white;
}

.btn-refuser{
display:block;
background:#e74c3c;
border:none;
padding:6px 10px;
font-size:12px;
border-radius:4px;
color:white;
text-align:center;
text-decoration:none;
}

.btn-refuser:hover{
background:#c0392b;
color:white;
}
}
/*Signaler profil*/
.profile-menu-container {
    position: relative;
    align-self: flex-start;
    flex-shrink: 0;
}

.profile-menu-btn {
    appearance: none;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(131, 96, 58, 0.24);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 24px rgba(68, 42, 26, 0.12);
    color: #4f2c1f;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.profile-menu-btn:hover,
.profile-menu-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(177, 79, 209, 0.35);
    box-shadow: 0 16px 28px rgba(68, 42, 26, 0.18);
    outline: none;
}

.profile-menu-btn-dots {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.profile-menu-btn-dots span {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: currentColor;
}

.profile-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 230px;
    padding: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 246, 255, 0.96));
    border: 1px solid rgba(131, 96, 58, 0.2);
    border-radius: 18px;
    box-shadow: 0 22px 40px rgba(34, 21, 14, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.profile-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.profile-menu-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 12px 14px;
    background: none;
    border: none;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    color: #341c13;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.profile-menu-item:hover {
    background: rgba(244, 221, 252, 0.68);
    transform: translateY(-1px);
}

.profile-menu-item-label {
    font-size: 0.94rem;
    font-weight: 800;
}

.profile-menu-item-note {
    color: #6c5245;
    font-size: 0.79rem;
    line-height: 1.35;
}

.profile-menu-item-danger {
    color: #8b1f45;
}

.profile-menu-item-danger:hover {
    background: rgba(255, 232, 240, 0.82);
}

.signalement-page {
}

.signalement-shell {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    gap: 18px;
}

.signalement-main-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: var(--necta-main-card-min-height);
  gap: 18px;
  padding: 18px;
  padding-bottom: var(--necta-main-card-padding-bottom);
  box-sizing: border-box;
  overflow: visible;
  background: linear-gradient(135deg, #cb6ce6, #b14fd1) !important;
  border: 1px solid rgba(120, 52, 148, 0.72) !important;
  box-shadow: 0 16px 30px rgba(132, 61, 163, 0.26) !important;
}

.signalement-hero-card {
    margin: 0;
}

.signalement-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.signalement-grid {
    display: grid;
    grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.signalement-panel {
    margin: 0;
}

.signalement-panel-label {
    margin: 0 0 8px;
    color: #7a4f3a;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.signalement-panel-title {
    margin-bottom: 8px;
}

.signalement-panel-text {
    margin-bottom: 0;
}

.signalement-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.signalement-field label {
    color: #3f2b24;
    font-weight: 700;
}

.signalement-field textarea,
.signalement-field input[type="text"] {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(131, 96, 58, 0.3);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, #fdfcff);
    color: #2b1f19;
    font: inherit;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.03), 0 4px 10px rgba(0, 0, 0, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.signalement-field textarea {
    min-height: 144px;
    resize: vertical;
}

.signalement-field textarea:focus,
.signalement-field input[type="text"]:focus {
    outline: none;
    border-color: #9c56c0;
    box-shadow: 0 0 0 3px rgba(156, 86, 192, 0.18), 0 4px 10px rgba(0, 0, 0, 0.04);
}

.signalement-choice-field .form-check {
    position: relative;
    margin: 0 0 10px;
}

.signalement-choice-field .form-check:last-child {
    margin-bottom: 0;
}

.signalement-choice-field .form-check label {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid rgba(131, 96, 58, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.signalement-choice-field .form-check input[type="radio"] {
    margin: 0;
    accent-color: #b14fd1;
    transform: scale(1.1);
}

.signalement-choice-field .form-check label:hover {
    transform: translateY(-1px);
    border-color: rgba(177, 79, 209, 0.32);
    box-shadow: 0 12px 22px rgba(177, 79, 209, 0.1);
}

.signalement-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.signalement-submit,
.signalement-cancel {
    min-height: 46px;
    padding: 0 18px;
}

.signalement-back-link {
    background: #f4c542;
    border-color: rgba(184, 143, 26, 0.45);
    color: #3f3200;
    transition: none;
}

.signalement-back-link:hover,
.signalement-back-link:focus-visible {
    background: #f4c542;
    border-color: rgba(184, 143, 26, 0.45);
    color: #3f3200;
    transform: none;
    box-shadow: none;
    outline: none;
}

.signalement-submit {
    min-width: 210px;
}

.signalement-message-quote {
    margin: 0;
    padding: 16px 18px;
    border-left: 4px solid #cb6ce6;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 249, 255, 0.96), rgba(246, 233, 252, 0.92));
    color: #4d2561;
    font-style: italic;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .signalement-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .profile-menu-dropdown {
        min-width: min(240px, calc(100vw - 56px));
    }

    .signalement-actions {
        justify-content: stretch;
    }

    .signalement-submit,
    .signalement-cancel {
        width: 100%;
    }
}
.necta-auth-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
/* ===== NOTIFICATIONS ===== */

.necta-auth-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Panneau latéral */
.panneau-notifications {
    position: fixed;
    top: 0;
    right: -380px;
    width: 360px;
    max-width: 90vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    z-index: 1200;
    overflow-y: auto;
}

.panneau-notifications.open {
    right: 0;
}

/* Contenu */
.contenu-notifications {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.entete-notifications {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 2;
}

#fermer-notifications {
    border: none;
    background: transparent;
    font-size: 1.4rem;
    cursor: pointer;
}

/* Liste */
.liste-notifications {
    padding: 1rem;
}

.liste-notifications .notification-item {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: #f9fafb;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    margin-bottom: 0.75rem;
    transition: background-color 0.2s ease;
}

.liste-notifications .notification-item:hover {
    background-color: #f3f4f6;
}

.notification-contenu {
    margin: 0 0 0.35rem 0;
}

.notification-date {
    color: #6b7280;
    font-size: 0.8rem;
}

/* Toast */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #111827;
    color: #ffffff;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
    z-index: 1300;
    opacity: 0;
    transform: translateY(-10px);
    transition: 0.25s;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Notifications Button */
.bouton-notifications {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.bouton-notifications:hover {
    background-color: #b14fd1; /* Match navbar button hover */
    text-decoration: none;
}

/* Wiggle animation only when there are unread notifications */
.bouton-notifications.has-unread .notifications-bell-icon {
    animation: bellWiggle 2s ease-in-out infinite;
}

@keyframes bellWiggle {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-15deg); }
    20% { transform: rotate(10deg); }
    30% { transform: rotate(-10deg); }
    40% { transform: rotate(6deg); }
    50% { transform: rotate(-4deg); }
    60% { transform: rotate(2deg); }
    70% { transform: rotate(-1deg); }
    80% { transform: rotate(0.5deg); }
    90% { transform: rotate(-0.5deg); }
}

.bouton-notifications.is-active {
    background-color: #9333ea; /* Deep purple only when panel is open */
    color: #000; /* Keep text color consistent */
    box-shadow: 0 8px 18px rgba(147, 51, 234, 0.3); /* Enhanced shadow for deep purple */
}

/* Empty notifications state */
.notification-empty {
    text-align: center;
    padding: 40px 20px;
    color: #8b5a8c;
}

.notification-empty-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.notification-empty-icon {
    font-size: 48px;
    opacity: 0.6;
    position: relative;
    z-index: 2;
}

.notification-empty-icon-ring {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 3px solid rgba(177, 79, 209, 0.2);
    border-radius: 50%;
    animation: ringPulse 3s ease-in-out infinite;
}

.notification-empty-content {
    max-width: 280px;
    margin: 0 auto;
}

.notification-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #4d2561;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.notification-empty-text {
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 8px 0;
    color: #8b5a8c;
}

.notification-empty-subtitle {
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    color: #9768ab;
    font-style: italic;
}

@keyframes ringPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

/* Notifications Panel */
.panneau-notifications {
    position: fixed;
    top: 95px; /* Start lower, moved down from 85px */
    right: -100%;
    width: 100%;
    max-width: 380px; /* Slightly narrower */
    height: calc(85vh - 95px); /* Adjusted height calculation */
    max-height: 700px; /* Keep increased maximum height */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 239, 255, 0.96));
    border-left: 1px solid rgba(177, 79, 209, 0.2);
    box-shadow: -8px 0 32px rgba(129, 59, 159, 0.18);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden; /* Hide overflow on main container */
    will-change: transform;
    backdrop-filter: blur(8px);
    border-radius: 18px 0 0 18px;
    display: flex;
    flex-direction: column;
}

.panneau-notifications.open {
    right: 0;
}

/* Notifications content container - scrollable */
.panneau-notifications-contenu {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Custom scrollbar styling */
.panneau-notifications-contenu::-webkit-scrollbar {
    width: 6px;
}

.panneau-notifications-contenu::-webkit-scrollbar-track {
    background: rgba(177, 79, 209, 0.1);
    border-radius: 3px;
}

.panneau-notifications-contenu::-webkit-scrollbar-thumb {
    background: rgba(177, 79, 209, 0.3);
    border-radius: 3px;
}

.panneau-notifications-contenu::-webkit-scrollbar-thumb:hover {
    background: rgba(177, 79, 209, 0.5);
}

/* Notifications Header */
.notifications-header {
    background: linear-gradient(135deg, #cb6ce6, #b14fd1);
    color: white;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.notifications-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.notifications-stats {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
}

.notifications-stat {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.notifications-stat.unread {
    background: rgba(220, 38, 38, 0.8);
    color: white;
}

.notifications-stat.read {
    background: rgba(255, 255, 255, 0.22);
    color: white;
}

/* Notification Items */
.notification-item {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(177, 79, 209, 0.1);
    transition: all 0.2s ease;
    position: relative;
}

.notification-item:hover {
    background: rgba(244, 221, 252, 0.4);
}

.notification-item.unread {
    background: linear-gradient(90deg, rgba(219, 234, 254, 0.8), rgba(244, 221, 252, 0.6));
    border-left: 3px solid #8b5cf6;
}

.notification-item.unread:hover {
    background: linear-gradient(90deg, rgba(219, 234, 254, 0.9), rgba(244, 221, 252, 0.7));
}

.notification-content {
    flex: 1;
    margin-right: 12px;
}

.notification-message {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 4px;
    color: #374151;
}

.notification-meta {
    font-size: 0.8rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.notification-btn.mark-read {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #374151;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.notification-btn.mark-read:hover {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    transform: translateY(-1px);
}

.notification-btn.mark-unread {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.notification-btn.mark-unread:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-1px);
}

.notification-btn.delete {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.notification-btn.delete:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-1px);
}

@media (min-width: 768px) {
    .panneau-notifications {
        width: 380px;
    }
    
    .notification-content {
        margin-right: 16px;
    }
    
    .notification-actions {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .panneau-notifications {
        top: 75px; /* Adjusted for mobile, moved down from 70px */
        right: -100%;
        width: 100%;
        max-width: 100%;
        height: calc(75vh - 75px); /* Adjusted height calculation */
        max-height: 600px; /* Keep increased max height */
        border-radius: 18px 18px 0 0; /* Rounded corners on top only */
    }
    
    .panneau-notifications.open {
        right: 0;
        bottom: 0; /* Stick to bottom on mobile */
        top: auto;
        height: 75vh; /* Keep mobile height */
        max-height: none;
    }
    
    .bouton-notifications {
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* Amis Button */
.bouton-amis {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background-color: #cb6ce6; /* Light purple like other navbar buttons */
    color: #522267;
    border-radius: 50px; /* Match navbar button pill shape */
    text-decoration: none;
    font-weight: 700; /* Match navbar button font weight */
    cursor: pointer;
    transition: background-color 0.25s ease; /* Match navbar button transition */
    box-shadow: 0 8px 18px rgba(108, 68, 134, 0.16); /* Match navbar button shadow */
}

.bouton-amis:hover {
    background-color: #b14fd1; /* Match navbar button hover */
    text-decoration: none;
}

.bouton-amis.is-active {
    background-color: #9333ea; /* Deep purple only when panel is open */
    color: #210d2b; /* Match active navbar pill text */
    box-shadow: 0 8px 18px rgba(147, 51, 234, 0.3); /* Enhanced shadow for deep purple */
}

/* Friends Panel - Slide from left */
.panneau-amis {
    position: fixed;
    top: 95px; /* Same as notifications panel */
    left: -100%;
    width: 100%;
    max-width: 380px;
    height: calc(85vh - 95px);
    max-height: 700px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 239, 255, 0.96));
    border-right: 1px solid rgba(177, 79, 209, 0.2);
    box-shadow: 8px 0 32px rgba(129, 59, 159, 0.18);
    z-index: 1000;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    will-change: transform;
    backdrop-filter: blur(8px);
    border-radius: 0 18px 18px 0;
    display: flex;
    flex-direction: column;
}

.panneau-amis.open {
    left: 0;
}

.panneau-amis-contenu {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.panneau-amis-header {
    background: linear-gradient(135deg, #cb6ce6, #b14fd1);
    color: white;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panneau-amis-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.panneau-amis-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.panneau-amis-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.panneau-amis-body {
    flex: 1;
    padding: 16px;
}

.panneau-amis-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.panneau-amis-friend {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(177, 79, 209, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.panneau-amis-friend:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(177, 79, 209, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(129, 59, 159, 0.15);
}

.panneau-amis-friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #cb6ce6, #b14fd1);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.panneau-amis-friend-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panneau-amis-friend-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.panneau-amis-friend-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.panneau-amis-friend-meta {
    font-size: 0.8rem;
    color: #666;
}

.panneau-amis-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Independent Minichat - Bottom of page */
.minichat-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 400px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 239, 255, 0.96));
    border: 1px solid rgba(177, 79, 209, 0.2);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(129, 59, 159, 0.25);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(150%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.minichat-box.open {
    transform: translateY(0);
}

.minichat-header {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    padding: 12px 16px;
    border-radius: 18px 18px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.minichat-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.minichat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}

.minichat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.minichat-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.minichat-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.minichat-expand {
    background: rgba(255, 255, 255, 0.18);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.minichat-expand:hover {
    background: rgba(255, 255, 255, 0.28);
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
}

.minichat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.minichat-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.minichat-body {
    flex: 1;
    min-height: 0;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
}

.minichat-message {
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 80%;
    width: fit-content;
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.minichat-message.sent {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    color: white;
    align-self: flex-end;
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.18);
}

.minichat-message.received {
    background: rgba(244, 230, 252, 0.95);
    color: #522267;
    align-self: flex-start;
    border: 1px solid rgba(177, 79, 209, 0.16);
}

.minichat-message-text {
    white-space: pre-wrap;
    line-height: 1.45;
}

.minichat-attachment-link {
    display: block;
    text-decoration: none;
}

.minichat-attachment-file {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.minichat-message-image {
    display: block;
    max-width: 190px;
    max-height: 190px;
    width: auto;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(82, 34, 103, 0.14);
}

.minichat-input-area {
    padding: 12px 16px;
    border-top: 1px solid rgba(177, 79, 209, 0.15);
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.82);
}

.minichat-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(177, 79, 209, 0.28);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    outline: none;
    color: #522267;
}

.minichat-input:focus {
    border-color: #9333ea;
    background: white;
    box-shadow: 0 0 0 3px rgba(177, 79, 209, 0.14);
}

.minichat-send {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.minichat-send:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 22px rgba(124, 58, 237, 0.28);
}

/* Custom scrollbar for friends panel */
.panneau-amis-contenu::-webkit-scrollbar {
    width: 6px;
}

.panneau-amis-contenu::-webkit-scrollbar-track {
    background: rgba(177, 79, 209, 0.1);
    border-radius: 3px;
}

.panneau-amis-contenu::-webkit-scrollbar-thumb {
    background: rgba(177, 79, 209, 0.3);
    border-radius: 3px;
}

.panneau-amis-contenu::-webkit-scrollbar-thumb:hover {
    background: rgba(177, 79, 209, 0.5);
}

.profils-recommandes-page {
  --necta-shell-max-width: 1400px;
}

.profils-recommandes-page .necta-shell {
  max-width: var(--necta-shell-max-width);
}

.profile-view-page {
  --necta-shell-max-width: 1400px;
}

.profile-view-page .necta-shell {
  max-width: var(--necta-shell-max-width);
}

.configuration-page {
  --necta-shell-max-width: 1400px;
}

.configuration-page .necta-shell {
  max-width: var(--necta-shell-max-width);
}
.minichat-body::-webkit-scrollbar {
    width: 4px;
}

.minichat-body::-webkit-scrollbar-track {
    background: rgba(177, 79, 209, 0.08);
    border-radius: 2px;
}

.minichat-body::-webkit-scrollbar-thumb {
    background: rgba(147, 51, 234, 0.28);
    border-radius: 2px;
}

.minichat-body::-webkit-scrollbar-thumb:hover {
    background: rgba(147, 51, 234, 0.42);
}

/* Responsive navbar to keep elements on one line */
@media (max-width: 1200px) {
  .necta-auth-link {
    min-height: 44px;
    padding: 0 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 980px) {
  .necta-auth-link {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.85rem;
  }
  
  .necta-navbar {
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .necta-navbar {
    padding: 6px 12px;
    gap: 6px;
  }

  .necta-auth-link {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.82rem;
  }
}

@media (max-width: 640px) {
  .necta-navbar {
    padding: 4px 8px;
    gap: 4px;
  }

  .necta-auth-link {
    min-height: 32px;
    padding: 0 8px;
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .necta-navbar {
    padding: 2px 6px;
    gap: 2px;
  }

  .necta-auth-link {
    min-height: 28px;
    padding: 0 6px;
    font-size: 0.74rem;
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .panneau-amis {
        top: 75px;
        left: -100%;
        width: 100%;
        max-width: 100%;
        height: calc(75vh - 75px);
        max-height: none;
        border-radius: 0;
    }
    
    .panneau-amis.open {
        left: 0;
    }
    
    .minichat-box {
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        height: 50vh;
    }
}
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
    z-index: 2000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    max-width: 300px;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}
/* test */
