/* ===== ANIMATIONS ===== */
@keyframes jumpForward {
  0%   { transform: translate(-60px, 15px) rotate(-15deg); }
  50%  { transform: translate(0px, -45px)  rotate(0deg); }
  100% { transform: translate(60px, 15px)  rotate(15deg); }
}

@keyframes grassPan {
  0%   { background-position: 0 0; }
  100% { background-position: -40px 0; }
}

/* ===== FULLSCREEN ===== */
.loader-fullscreen {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0fdf4;
  font-family: system-ui, sans-serif;
}

.loader-card {
  text-align: center;
  background-color: #ffffff;
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  width: 320px;
}

.loader-scene {
  position: relative;
  height: 120px;
  border-bottom: 3px solid #86efac;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.loader-fence {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 4px;
  height: 35px;
  background-color: #b45309;
  transform: translateX(-50%);
  z-index: 1;
  box-shadow: 12px 0 0 #b45309, -12px 0 0 #b45309;
}

/* ===== SMALL ===== */
.loader-small-container {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.loader-small-card {
  text-align: center;
  width: 150px;
}

.loader-small-scene {
  position: relative;
  height: 60px;
  border-bottom: 2px solid #86efac;
  overflow: hidden;
  margin-bottom: 5px;
}

.loader-small-fence {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 3px;
  height: 18px;
  background-color: #b45309;
  transform: translateX(-50%);
  z-index: 1;
  box-shadow: 8px 0 0 #b45309, -8px 0 0 #b45309;
}

/* ===== SHEEP ===== */
.loader-sheep {
  font-size: 2.5rem;
  animation: jumpForward 1.2s infinite ease-in-out;
  position: absolute;
  left: 50%;
  margin-left: -20px;
  bottom: 30px;
  z-index: 3;
}

.loader-sheep--small {
  font-size: 1.5rem;
  bottom: 15px;
}

.loader-sheep-emoji {
  display: inline-block;
  transform: scaleX(-1);
}

/* ===== GRASS ===== */
.loader-grass {
  animation: grassPan 0.5s infinite linear;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background-image: linear-gradient(
    90deg,
    #4ade80 25%, transparent 25%,
    transparent 50%, #4ade80 50%,
    #4ade80 75%, transparent 75%,
    transparent 100%
  );
  background-size: 40px 100%;
}

/* ===== TEXTES ===== */
.loader-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin: 10px 0 0;
}

.loader-subtitle {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 5px 0 0;
}/* ===== LAYOUT ===== */
.layout {
  display: flex;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  background: #f8fafc;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 8px 0 30px rgba(15, 23, 42, 0.08);
  height: 100vh;
  position: sticky;
  top: 0;
  box-sizing: border-box;
}

.sidebar-brand {
  padding: 8px 8px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.sidebar-brand-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.sidebar-brand-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 4px;
}

.sidebar-footer {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 12px;
  flex-shrink: 0;
  margin-top: 20px;
}

/* ===== NAV ===== */
.nav-section {
  display: grid;
  gap: 8px;
}

.nav-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  padding: 0 10px;
  margin-bottom: 4px;
  font-weight: 700;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-link.active {
  background: rgba(37, 99, 235, 0.22);
  color: #ffffff;
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.nav-icon {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  font-size: 16px;
}

/* ===== PROFILE BOX ===== */
.profile-box {
  display: block;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  color: #fff;
}

.profile-box.active {
  background: rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.profile-name {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
}

.profile-role {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

/* ===== LOGOUT ===== */
.logout-button {
  width: 100%;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.18);
  color: #fecaca;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.logout-button:hover {
  background: rgba(127, 29, 29, 0.30);
}

.logout-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== MAIN ===== */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ===== HEADER ===== */
.app-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-chip {
  padding: 10px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 13px;
}

/* ===== CONTENT ===== */
.app-content {
  padding: 28px;
}

/* ===== MOBILE HAMBURGER ===== */
.hamburger {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 200;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(15,23,42,0.10);
}

.hamburger-bar {
  width: 20px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
  transition: all 0.2s;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.45);
  z-index: 149;
}

@media (max-width: 768px) {
  /* ✅ Hamburger visible */
  .hamburger { display: flex; }

  /* ✅ Layout devient colonne */
  .layout {
    grid-template-columns: 1fr !important;
  }

  /* ✅ Sidebar cachée par défaut */
  .sidebar {
    position: fixed !important;
    left: -280px !important;
    top: 0;
    height: 100vh;
    z-index: 150;
    transition: left 0.25s ease;
    width: 260px !important;
    box-shadow: none;
  }

  /* ✅ Sidebar ouverte */
  .sidebar--open {
    left: 0 !important;
    box-shadow: 4px 0 24px rgba(15,23,42,0.18) !important;
  }

  /* ✅ Overlay visible quand sidebar ouverte */
  .sidebar-overlay--open {
    display: block;
  }

  /* ✅ Main prend toute la largeur */
  .main {
    width: 100%;
    min-width: 0;
  }

  /* ✅ Header avec padding pour hamburger */
  .app-header {
    padding-left: 64px !important;
  }

  /* ✅ Contenu avec padding mobile */
  .app-content {
    padding: 16px !important;
  }
}
/* ===== PAGE ===== */
.home-page {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,0.10), transparent 24%),
    radial-gradient(circle at bottom right, rgba(16,185,129,0.08), transparent 24%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

/* ===== SHELL ===== */
.home-shell {
  width: 100%;
  max-width: 1180px;
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr; /* ✅ défini ici uniquement */
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.10);
}

@media (max-width: 980px) {
  .home-shell { grid-template-columns: 1fr; }
  .home-right { min-height: 360px; }
}

/* ===== LEFT ===== */
.home-left {
  padding: 56px;
  display: grid;
  align-content: center;
  gap: 28px;
}

@media (max-width: 768px) {
  .home-left  { padding: 28px; }
  .home-right { padding: 28px; }
}

.home-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef2ff;
  border: 1px solid #dbeafe;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
}

.home-heading { display: grid; gap: 16px; }

.home-title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.04em;
  max-width: 520px;
}

/* ✅ aria-hidden sur le span coloré + texte visible pour screen readers */
.home-title-accent {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 55%, #0f172a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-subtitle {
  margin: 0;
  max-width: 500px;
  color: #475569;
  font-size: 17px;
  line-height: 1.7;
}

/* ===== ACTIONS ===== */
.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.home-btn-primary {
  border: none;
  border-radius: 16px;
  padding: 15px 22px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.32);
}

.home-btn-secondary {
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 15px 22px;
  background: #fff;
  color: #0f172a;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-btn-secondary:hover {
  transform: translateY(-2px);
  border-color: #94a3b8;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.06);
}

/* ===== POINTS ===== */
.home-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.home-point {
  padding: 10px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

/* ===== RIGHT ===== */
.home-right {
  position: relative;
  padding: 32px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(239,246,255,0.75) 0%, rgba(255,255,255,0.92) 100%);
}

.home-visual-wrap {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

/* ===== GLOWS ===== */
.home-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
}

.home-glow--blue  { width: 320px; height: 320px; background: rgba(37,99,235,0.14); top: 30px; left: 40px; }
.home-glow--green { width: 220px; height: 220px; background: rgba(16,185,129,0.12); bottom: 40px; right: 20px; }

/* ===== ORBS ===== */
.home-orb-main {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 32px;
  background: linear-gradient(145deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
  box-shadow: 0 30px 60px rgba(37, 99, 235, 0.20);
  transform: rotate(-10deg);
}

.home-orb-glass {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.55);
  transform: translate(70px, 30px) rotate(10deg);
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.08);
}

/* ===== MINI CARDS ===== */
.home-mini-card {
  position: absolute;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 30px rgba(15, 23, 42, 0.08);
  min-width: 160px;
}

.home-mini-card--top    { top: 50px;    left: 10px; }
.home-mini-card--bottom { bottom: 36px; right: 6px; min-width: 170px; }

.home-mini-label { margin: 0; font-size: 12px; color: #64748b; font-weight: 700; }
.home-mini-value { margin: 6px 0 0; font-size: 20px; color: #0f172a; font-weight: 900; }/* ===== PAGE ===== */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(16,185,129,0.08), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

/* ===== WRAPPER ===== */
.auth-wrapper        { width: 100%; max-width: 470px; }
.auth-wrapper--wide  { width: 100%; max-width: 620px; }

/* ===== CARD ===== */
.auth-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
  display: grid;
  gap: 24px;
}

/* ===== TOP BAR ===== */
.auth-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.auth-back-link {
  text-decoration: none;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  transition: opacity 0.15s;
}

.auth-back-link:hover { opacity: 0.75; }

.auth-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.auth-badge--blue  { background: #eef2ff; border: 1px solid #dbeafe; color: #1d4ed8; }
.auth-badge--green { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }

/* ===== BRAND ===== */
.auth-brand { display: grid; gap: 12px; text-align: center; }

.auth-logo {
  width: 68px;
  height: 68px;
  margin: 0 auto;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 30px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.10);
}

.auth-title {
  margin: 0;
  font-size: 32px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.auth-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.7;
}

/* ===== FORM ===== */
.auth-form  { display: grid; gap: 16px; }
.auth-field { display: grid; gap: 8px; }

.auth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.auth-label {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.auth-forgot-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: opacity 0.15s;
}

.auth-forgot-link:hover { opacity: 0.75; }

.auth-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 15px;
  color: #0f172a;
  outline: none;
  box-sizing: border-box;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.auth-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.auth-input:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-select {
  width: 100%;
  padding: 13px 44px 13px 16px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 15px;
  color: #0f172a;
  outline: none;
  box-sizing: border-box;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%2364758b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.auth-select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

/* ===== PASSWORD WRAP ===== */
.auth-password-wrap { position: relative; }

.auth-password-wrap .auth-input { padding-right: 80px; }

.auth-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #2563eb;
  font-weight: 800;
  cursor: pointer;
  padding: 6px 8px;
  font-size: 12px;
}

/* ===== HELPER BOX ===== */
.auth-helper-box {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
}

.auth-helper-text {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

/* ===== FEEDBACK ===== */
.auth-success {
  padding: 12px 14px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 14px;
  font-weight: 600;
}

.auth-error {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  font-size: 14px;
  font-weight: 600;
}

/* ===== ROW (register) ===== */
.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 640px) {
  .auth-row { grid-template-columns: 1fr; }
}

/* ===== BUTTON ===== */
.auth-btn {
  margin-top: 4px;
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  background: #111827;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, transform 180ms ease;
}

.auth-btn:hover    { background: #1f2937; transform: translateY(-1px); }
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ===== DIVIDER ===== */
.auth-divider { height: 1px; background: #e2e8f0; }

/* ===== SWITCH ===== */
.auth-switch { text-align: center; font-size: 14px; color: #64748b; }

.auth-switch-link {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
  transition: opacity 0.15s;
}

.auth-switch-link:hover { opacity: 0.75; }

/* ===== FOOTER ===== */
.auth-footer {
  text-align: center;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

/* ===== RESET PAGE — meter + checklist (partagés avec ChangePassword) ===== */
.auth-meter-wrap { display: grid; gap: 8px; }

.auth-meter {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.auth-meter-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 180ms ease, background 180ms ease;
}

.auth-meter-fill--weak   { background: #ef4444; }
.auth-meter-fill--medium { background: #f59e0b; }
.auth-meter-fill--strong { background: #10b981; }

.auth-meter-label { font-size: 13px; color: #64748b; margin: 0; }

.auth-checklist {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.auth-check-item     { font-size: 13px; color: #64748b; font-weight: 500; }
.auth-check-item--ok { color: #047857; font-weight: 700; }.fp-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,0.12), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.fp-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
  display: grid;
  gap: 18px;
}

.fp-title    { margin: 0; font-size: 28px; font-weight: 800; color: #0f172a; }
.fp-subtitle { margin: 0; font-size: 15px; color: #64748b; line-height: 1.6; }

.fp-form { display: grid; gap: 12px; }

.fp-input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
  color: #0f172a;
}

.fp-input:focus { border-color: #3b82f6; }

.fp-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px;
  background: #111827;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.fp-btn:hover    { background: #1f2937; }
.fp-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.fp-success {
  padding: 12px 14px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 14px;
  font-weight: 600;
}

.fp-error {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  font-size: 14px;
  font-weight: 600;
}

.fp-footer { text-align: center; font-size: 14px; color: #64748b; }
.fp-link   { color: #2563eb; font-weight: 700; text-decoration: none; }
.fp-link:hover { text-decoration: underline; }/* ===== PAGE ===== */
.dash-page {
  display: grid;
  gap: 24px;
}

/* ===== HERO ===== */
.dash-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 28px;
  color: #fff;
  background: linear-gradient(135deg, #0f172a 0%, #111827 35%, #1d4ed8 100%);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
}

.dash-hero-glow {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.dash-hero-glow--one {
  top: -80px;
  right: -50px;
  width: 220px;
  height: 220px;
}

.dash-hero-glow--two {
  bottom: -90px;
  left: -30px;
  width: 180px;
  height: 180px;
}

.dash-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
}

.dash-hero-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.dash-hero-title {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.dash-hero-text {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  max-width: 720px;
  line-height: 1.6;
}

.dash-badge-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 600;
}

.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.dash-kpi-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dash-kpi-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
}

.dash-kpi-value {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.dash-kpi-meta {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== PULSE ===== */
.dash-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 8px;
}

.dash-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.14);
}

/* ===== SECTION GRID ===== */
.dash-section-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

/* ===== CARD ===== */
.dash-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 22px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.dash-card-title {
  margin: 0;
  font-size: 20px;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dash-card-text {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

/* ===== QUICK ACTIONS ===== */
.dash-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.dash-quick-card {
  border-radius: 22px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  display: grid;
  gap: 12px;
  min-height: 190px;
}

.dash-quick-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: #eff6ff;
}

.dash-quick-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #111827;
}

.dash-quick-text {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.dash-quick-actions {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: center;
}

.btn-primary:hover { background: #1f2937; }

.btn-soft {
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 11px 14px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: center;
}

.btn-soft:hover { background: #dbeafe; }

/* ===== RIGHT STACK ===== */
.dash-right-stack { display: grid; gap: 24px; }

/* ===== CHART ===== */
.dash-chart-wrap { margin-top: 18px; display: grid; gap: 14px; }
.dash-chart-row  { display: grid; gap: 8px; }

.dash-chart-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.dash-chart-label { color: #334155; font-weight: 700; }
.dash-chart-pct   { color: #64748b; font-weight: 700; }

.dash-chart-track {
  width: 100%;
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.dash-chart-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

.dash-chart-fill--blue  { background: #2563eb; }
.dash-chart-fill--green { background: #059669; }
.dash-chart-fill--amber { background: #d97706; }

/* ===== FLASH INFOS ===== */
.dash-flash-list { display: grid; gap: 12px; margin-top: 18px; }

.dash-flash-item {
  border-radius: 16px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.dash-flash-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  font-size: 18px;
}

.dash-flash-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.dash-flash-text {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .dash-section-grid {
    grid-template-columns: 1fr;
  }
}.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
}

.badge--pending {
  background-color: #fefce8;
  color: #854d0e;
  border-color: #fde68a;
}

.badge--approved {
  background-color: #f0fdf4;
  color: #166534;
  border-color: #86efac;
}

.badge--rejected {
  background-color: #fef2f2;
  color: #991b1b;
  border-color: #fca5a5;
}

.badge--scheduled {
  background-color: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

/* ===== Statuts moutons ===== */
.badge--available {
  background-color: #f0fdf4;
  color: #166534;
  border-color: #86efac;
}

.badge--assigned {
  background-color: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

.badge--sacrificed {
  background-color: #fdf4ff;
  color: #6b21a8;
  border-color: #e9d5ff;
}

.badge--missing {
  background-color: #fff7ed;
  color: #9a3412;
  border-color: #fdba74;
}

/* ===== Statuts paiement ===== */
.badge--unpaid {
  background-color: #fef2f2;
  color: #991b1b;
  border-color: #fca5a5;
}

.badge--partial {
  background-color: #fff7ed;
  color: #9a3412;
  border-color: #fdba74;
}

.badge--paid {
  background-color: #f0fdf4;
  color: #166534;
  border-color: #86efac;
}

.badge--overpaid {
  background-color: #fdf4ff;
  color: #6b21a8;
  border-color: #e9d5ff;
}

.badge--cancelled {
  background-color: #f9fafb;
  color: #6b7280;
  border-color: #d1d5db;
}

.badge--unknown {
  background-color: #f9fafb;
  color: #6b7280;
  border-color: #d1d5db;
}/* ===== CARD ===== */
.sheep-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

/* ===== HEADER ===== */
.sheep-header {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid #f1f5f9;
}

.sheep-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.sheep-subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  color: #64748b;
}

.sheep-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== TOOLBAR ===== */
.sheep-toolbar {
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.sheep-input {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s;
  flex: 1;
  min-width: 130px;
  box-sizing: border-box;
}

.sheep-input:focus { border-color: #3b82f6; background: #fff; }

/* ===== FORM ===== */
.sheep-form {
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
  display: grid;
  gap: 16px;
}

.sheep-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.sheep-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.sheep-textarea {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  background: #fff;
  color: #0f172a;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  box-sizing: border-box;
  width: 100%;
}

.sheep-form-full { grid-column: 1 / -1; }

.sheep-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn-primary {
  border: none;
  border-radius: 12px;
  padding: 11px 18px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-primary:hover    { background: #1f2937; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 11px 18px;
  background: #fff;
  color: #374151;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover { background: #f1f5f9; }

/* ===== TABLE ===== */
.sheep-table-wrap { overflow-x: auto; }

.sheep-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 1100px;
}

.sheep-th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.sheep-td {
  padding: 14px 16px;
  color: #374151;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  white-space: nowrap;
}

.sheep-row { cursor: pointer; transition: background 0.15s; }
.sheep-row:hover         { background: #f8fafc; }
.sheep-row:last-child td { border-bottom: none; }

/* ===== SHEEP CELL ===== */
.sheep-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sheep-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #eff6ff;
  font-size: 18px;
  flex-shrink: 0;
}

.sheep-number { font-weight: 800; color: #0f172a; font-size: 14px; }
.sheep-meta   { font-size: 11px; color: #94a3b8; margin-top: 2px; }

/* ===== ACTIONS ===== */
.sheep-actions { display: flex; gap: 8px; align-items: center; }

.sheep-btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: background 0.15s;
}

.sheep-btn-icon:disabled              { opacity: 0.5; cursor: not-allowed; }
.sheep-btn-icon--edit                 { background: #eff6ff; border-color: #bfdbfe; }
.sheep-btn-icon--edit:hover           { background: #dbeafe; }
.sheep-btn-icon--delete               { background: #fef2f2; border-color: #fca5a5; }
.sheep-btn-icon--delete:hover         { background: #fee2e2; }

/* ===== EMPTY / LOADING ===== */
.sheep-empty        { text-align: center; padding: 40px; color: #94a3b8; font-size: 14px; }
.sheep-loading-cell { text-align: center; padding: 32px; color: #64748b; font-size: 14px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sheep-form-grid { grid-template-columns: 1fr; }
  .sheep-toolbar   { flex-direction: column; }
}

.sheep-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.sheep-pagination-info {
  font-size: 14px;
  color: #475569;
}

.sheep-pagination-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .sheep-table-wrap  { display: none; }
  .sheep-mobile-list { display: grid; gap: 12px; padding: 16px; }
}

@media (min-width: 769px) {
  .sheep-mobile-list { display: none; }
}

.sheep-mobile-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 10px;
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.sheep-mobile-card:hover { box-shadow: 0 4px 16px rgba(37,99,235,0.08); }

.sheep-mobile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.sheep-mobile-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sheep-mobile-avatar    { font-size: 22px; }
.sheep-mobile-card-name { font-size: 16px; font-weight: 700; color: #0f172a; }

.sheep-mobile-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #64748b;
}

.sheep-mobile-card-value { font-weight: 600; color: #374151; }

.sheep-mobile-card-actions { display: flex; gap: 8px; padding-top: 4px; }

.sheep-mobile-loading,
.sheep-mobile-empty {
  text-align: center;
  padding: 24px;
  color: #94a3b8;
  font-size: 14px;
}
/* ===== OVERLAY ===== */
.smodal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

/* ===== MODAL ===== */
.smodal {
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

/* ===== HEADER ===== */
.smodal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.smodal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

/* ===== BODY ===== */
.smodal-body {
  overflow-y: auto;
  padding: 24px;
  flex: 1;
  display: grid;
  gap: 24px;
  align-content: start;
}

/* ===== PHOTO ===== */
.smodal-photo {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

/* ===== DETAILS GRID ===== */
.smodal-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.smodal-detail-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
}

.smodal-detail-card--full { grid-column: 1 / -1; }

.smodal-detail-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 5px;
}

.smodal-detail-value {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
}

/* ===== SECTION TITRE ===== */
.smodal-section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

/* ===== PAYMENT FORM ===== */
.smodal-payment-form {
  display: grid;
  gap: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  background: #f8fafc;
}

.smodal-payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.smodal-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.smodal-input {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.smodal-input:focus { border-color: #3b82f6; }

.smodal-payment-hint {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  line-height: 1.5;
}

.smodal-payment-submit {
  display: flex;
  justify-content: flex-end;
}

/* ===== ERROR ===== */
.smodal-error {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
}

/* ===== PAYMENT HISTORY ===== */
.smodal-payment-list { display: grid; gap: 10px; }

.smodal-payment-item {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  display: grid;
  gap: 6px;
}

.smodal-payment-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.smodal-payment-item-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 14px;
}

.smodal-payment-item-text {
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

/* ===== EMPTY ===== */
.smodal-empty {
  text-align: center;
  padding: 24px;
  color: #94a3b8;
  font-size: 14px;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
}

/* ===== FOOTER ===== */
.smodal-footer {
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn-primary {
  border: none;
  border-radius: 12px;
  padding: 11px 18px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-primary:hover    { background: #1f2937; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 11px 18px;
  background: #fff;
  color: #374151;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover { background: #f1f5f9; }

.btn-danger {
  border: 1px solid #fca5a5;
  border-radius: 12px;
  padding: 11px 18px;
  background: #fef2f2;
  color: #dc2626;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-danger:hover    { background: #fee2e2; }
.btn-danger:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-danger--sm {
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 6px 12px;
  background: #fef2f2;
  color: #dc2626;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-danger--sm:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .smodal-payment-grid { grid-template-columns: 1fr; }
}.sheep-page      { min-height: 100vh; background: #f8fafc; padding: 24px; }
.sheep-container { max-width: 1450px; margin: 0 auto; display: grid; gap: 20px; }
.sheep-error {
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 12px;
  color: #dc2626;
  font-size: 14px;
  font-weight: 600;
}/* ===== PAGE ===== */
.org-page      { min-height: 100vh; background: #f8fafc; padding: 24px; }
.org-container { max-width: 1400px; margin: 0 auto; display: grid; gap: 20px; }

/* ===== CARD ===== */
.org-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

/* ===== HEADER ===== */
.org-header {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid #f1f5f9;
}

.org-title    { margin: 0; font-size: 22px; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; }
.org-subtitle { margin: 4px 0 0; font-size: 14px; color: #64748b; line-height: 1.5; }

/* ===== TOOLBAR ===== */
.org-toolbar {
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.org-input {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s;
  min-width: 140px;
  flex: 1;
  box-sizing: border-box;
}

.org-input:focus { border-color: #3b82f6; background: #fff; }

/* ===== FORM ===== */
.org-form {
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
  display: grid;
  gap: 16px;
  background: #f8fafc;
}

.org-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.org-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.org-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: #0f172a;
  cursor: pointer;
}

.org-form-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== TABLE — desktop ===== */
.org-table-wrap { overflow-x: auto; }

.org-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 700px;
}

.org-th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.org-td {
  padding: 14px 16px;
  color: #374151;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.org-row             { cursor: pointer; transition: background 0.15s; }
.org-row:hover       { background: #f8fafc; }
.org-row:last-child td { border-bottom: none; }

.org-empty        { text-align: center; padding: 40px; color: #94a3b8; font-size: 14px; }
.org-loading-cell { text-align: center; padding: 32px; color: #64748b; font-size: 14px; }

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* ===== ACTIONS ===== */
.org-actions { display: flex; gap: 8px; align-items: center; }

.org-btn-icon {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s, border-color 0.15s;
}

.org-btn-icon:hover         { background: #f1f5f9; }
.org-btn-icon--delete:hover { background: #fef2f2; border-color: #fca5a5; }
.org-btn-icon:disabled      { opacity: 0.5; cursor: not-allowed; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .org-table-wrap  { display: none; }
  .org-mobile-list { display: grid; gap: 12px; padding: 16px; }
  .org-form-grid   { grid-template-columns: 1fr; }
}

@media (min-width: 769px) {
  .org-mobile-list { display: none; }
}

.org-mobile-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 10px;
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.org-mobile-card:hover { box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08); }

.org-mobile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.org-mobile-card-name    { font-size: 15px; font-weight: 700; color: #0f172a; }
.org-mobile-card-row     { display: flex; justify-content: space-between; font-size: 13px; color: #64748b; }
.org-mobile-card-value   { font-weight: 600; color: #374151; }
.org-mobile-card-actions { display: flex; gap: 8px; padding-top: 4px; }
.org-mobile-loading,
.org-mobile-empty        { text-align: center; padding: 24px; color: #94a3b8; font-size: 14px; }

/* ===== PAGINATION ===== */
.org-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 12px;
}

.org-pagination-info    { font-size: 13px; color: #64748b; }
.org-pagination-actions { display: flex; gap: 8px; }/* ===== OVERLAY ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

/* ===== MODAL ===== */
.modal {
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

/* ===== HEADER ===== */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

/* ===== BODY ===== */
.modal-body {
  overflow-y: auto;
  padding: 24px;
  flex: 1;
}

/* ===== DETAILS GRID ===== */
.modal-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.modal-detail-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 16px;
}

.modal-detail-card--full {
  grid-column: 1 / -1;
}

.modal-detail-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 6px;
}

.modal-detail-value {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
}

.modal-detail-value--muted {
  color: #94a3b8;
  font-weight: 400;
}

/* ===== MEMBER LIST ===== */
.modal-member-list {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.modal-member-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
}

.modal-member-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.modal-member-sub {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

/* ===== FOOTER ===== */
.modal-footer {
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn-primary {
  border: none;
  border-radius: 12px;
  padding: 11px 18px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover    { background: #1f2937; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 11px 18px;
  background: #fff;
  color: #374151;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover { background: #f1f5f9; }

/* ✅ Bouton danger visuellement distinct */
.btn-danger {
  border: 1px solid #fca5a5;
  border-radius: 12px;
  padding: 11px 18px;
  background: #fef2f2;
  color: #dc2626;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-danger:hover    { background: #fee2e2; }
.btn-danger:disabled { opacity: 0.6; cursor: not-allowed; }/* ===== PAGE ===== */
.profiles-page      { min-height: 100vh; background: #f8fafc; padding: 24px; }
.profiles-container { max-width: 1600px; margin: 0 auto; display: grid; gap: 20px; }

/* ===== CARD ===== */
.profiles-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

/* ===== HEADER ===== */
.profiles-header {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid #f1f5f9;
}

.profiles-title    { margin: 0; font-size: 22px; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; }
.profiles-subtitle { margin: 4px 0 0; font-size: 14px; color: #64748b; }

/* ===== ERROR ===== */
.profiles-error {
  margin: 16px 24px 0;
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 12px;
  color: #dc2626;
  font-size: 14px;
  font-weight: 600;
}

/* ===== TOOLBAR ===== */
.profiles-toolbar {
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.profiles-input {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s;
  flex: 1;
  min-width: 140px;
  box-sizing: border-box;
}

.profiles-input:focus { border-color: #3b82f6; background: #fff; }

/* ===== FORM ===== */
.profiles-form {
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
  display: grid;
  gap: 16px;
  background: #f8fafc;
}

.profiles-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.profiles-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.profiles-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  grid-column: 1 / -1;
}

.profiles-form-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== TABLE — desktop ===== */
.profiles-table-wrap { overflow-x: auto; }

.profiles-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 900px;
}

.profiles-th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.profiles-td {
  padding: 14px 16px;
  color: #374151;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  white-space: nowrap;
}

.profiles-row             { cursor: pointer; transition: background 0.15s; }
.profiles-row:hover       { background: #f8fafc; }
.profiles-row:last-child td { border-bottom: none; }

.profiles-empty        { text-align: center; padding: 40px; color: #94a3b8; font-size: 14px; }
.profiles-loading-cell { text-align: center; padding: 32px; color: #64748b; font-size: 14px; }

/* ===== ACTIONS ===== */
.profiles-actions { display: flex; gap: 6px; align-items: center; }

.profiles-btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: background 0.15s, border-color 0.15s;
}

.profiles-btn-icon:disabled          { opacity: 0.5; cursor: not-allowed; }
.profiles-btn-icon--sheep            { background: #f0fdf4; border-color: #86efac; }
.profiles-btn-icon--sheep:hover      { background: #dcfce7; }
.profiles-btn-icon--edit             { background: #eff6ff; border-color: #bfdbfe; }
.profiles-btn-icon--edit:hover       { background: #dbeafe; }
.profiles-btn-icon--approve          { background: #f0fdf4; border-color: #86efac; color: #166534; font-weight: 700; }
.profiles-btn-icon--approve:hover    { background: #dcfce7; }
.profiles-btn-icon--delete           { background: #fef2f2; border-color: #fca5a5; }
.profiles-btn-icon--delete:hover     { background: #fee2e2; }

/* ===== ROLE BADGE ===== */
.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
}

.role-badge--admin        { background: #fdf4ff; color: #6b21a8; border-color: #e9d5ff; }
.role-badge--organization { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.role-badge--fidel        { background: #f0fdf4; color: #166534; border-color: #86efac; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .profiles-table-wrap  { display: none; }
  .profiles-mobile-list { display: grid; gap: 12px; padding: 16px; }
  .profiles-form-grid   { grid-template-columns: 1fr; }
}

@media (min-width: 769px) {
  .profiles-mobile-list { display: none; }
}

.profiles-mobile-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 10px;
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.profiles-mobile-card:hover { box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08); }

.profiles-mobile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.profiles-mobile-card-name    { font-size: 15px; font-weight: 700; color: #0f172a; }
.profiles-mobile-card-row     { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #64748b; }
.profiles-mobile-card-value   { font-weight: 600; color: #374151; }
.profiles-mobile-card-actions { display: flex; gap: 8px; padding-top: 4px; }
.profiles-mobile-loading,
.profiles-mobile-empty        { text-align: center; padding: 24px; color: #94a3b8; font-size: 14px; }

/* ===== PAGINATION ===== */
.profiles-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 12px;
}

.profiles-pagination-info    { font-size: 13px; color: #64748b; }
.profiles-pagination-actions { display: flex; gap: 8px; }/* ===== OVERLAY ===== */
.pmodal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

/* ===== MODAL BASE ===== */
.pmodal {
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.pmodal--wide { max-width: 960px; }

/* ===== HEADER ===== */
.pmodal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.pmodal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.pmodal-subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  color: #475569;
  font-weight: 600;
}

/* ===== BODY ===== */
.pmodal-body {
  overflow-y: auto;
  padding: 24px;
  flex: 1;
  display: grid;
  gap: 16px;
  align-content: start;
}

/* ===== DETAILS GRID ===== */
.pmodal-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.pmodal-detail-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
}

.pmodal-detail-card--full { grid-column: 1 / -1; }

.pmodal-detail-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 5px;
}

.pmodal-detail-value {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
}

/* ===== SHEEP TAGS ===== */
.pmodal-sheep-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.pmodal-sheep-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  font-size: 12px;
  font-weight: 600;
}

/* ===== FOOTER ===== */
.pmodal-footer {
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn-primary {
  border: none;
  border-radius: 12px;
  padding: 11px 18px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-primary:hover    { background: #1f2937; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 11px 18px;
  background: #fff;
  color: #374151;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover { background: #f1f5f9; }

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: background 0.15s;
}

.btn-icon--sheep   { background: #f0fdf4; border-color: #86efac; }
.btn-icon--edit    { background: #eff6ff; border-color: #bfdbfe; }
.btn-icon--approve { background: #f0fdf4; border-color: #86efac; color: #166534; font-weight: 700; }

/* ===== ASSIGN MODAL ===== */
.pmodal-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 10px;
}

.pmodal-input {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.pmodal-input:focus { border-color: #3b82f6; background: #fff; }

.pmodal-count {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.pmodal-sheep-list {
  display: grid;
  gap: 10px;
}

.pmodal-sheep-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fafc;
  transition: background 0.15s;
}

.pmodal-sheep-row:hover { background: #f1f5f9; }

.pmodal-sheep-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.pmodal-sheep-sub {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.pmodal-empty {
  text-align: center;
  padding: 32px;
  color: #94a3b8;
  font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .pmodal-filters { grid-template-columns: 1fr; }
}.appt-page      { display: grid; gap: 24px; }

.appt-hero {
  border-radius: 24px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #2563eb 100%);
  color: #fff;
  display: grid;
  gap: 20px;
}

.appt-hero-top  { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.appt-hero-title { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.appt-hero-sub  { margin: 8px 0 0; color: rgba(255,255,255,0.75); font-size: 14px; line-height: 1.6; }

.appt-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.appt-btn-white {
  padding: 10px 18px; border-radius: 12px; border: none;
  background: #fff; color: #0f172a; font-weight: 700; font-size: 14px;
  cursor: pointer; transition: opacity 0.15s;
}
.appt-btn-white:hover    { opacity: 0.88; }
.appt-btn-white:disabled { opacity: 0.5; cursor: not-allowed; }

.appt-btn-outline {
  padding: 10px 18px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1); color: #fff;
  font-weight: 700; font-size: 14px; cursor: pointer; transition: background 0.15s;
}
.appt-btn-outline:hover    { background: rgba(255,255,255,0.18); }
.appt-btn-outline:disabled { opacity: 0.5; cursor: not-allowed; }

/* SETTINGS */
.appt-settings-card {
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 20px; padding: 24px; display: grid; gap: 20px;
  box-shadow: 0 4px 16px rgba(15,23,42,0.05);
}

.appt-settings-title { margin: 0; font-size: 18px; font-weight: 800; color: #0f172a; }

.appt-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.appt-settings-field { display: grid; gap: 6px; }

.appt-settings-label { font-size: 13px; font-weight: 700; color: #374151; }

.appt-settings-input {
  padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 10px;
  font-size: 14px; background: #f8fafc; color: #0f172a; outline: none;
  transition: border-color 0.15s;
}

.appt-settings-input:focus { border-color: #3b82f6; background: #fff; }

/* TABS */
.appt-tabs { display: flex; gap: 8px; flex-wrap: wrap; }

.appt-tab {
  padding: 9px 18px; border-radius: 10px; font-size: 14px; font-weight: 700;
  cursor: pointer; border: 1px solid #e2e8f0; background: #f8fafc; color: #64748b;
  transition: all 0.15s;
}

.appt-tab--active { background: #0f172a; color: #fff; border-color: #0f172a; }

/* GRID CRENEAUX */
.appt-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

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

/* CARD */
.appt-card {
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(15,23,42,0.05);
}

.appt-card-header {
  padding: 16px 20px; border-bottom: 1px solid #f1f5f9;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}

.appt-card-title  { margin: 0; font-size: 16px; font-weight: 800; color: #0f172a; }
.appt-card-body   { padding: 16px 20px; display: grid; gap: 10px; max-height: 480px; overflow-y: auto; }

/* CRENEAUX */
.appt-slot {
  border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; background: #fff; transition: border-color 0.15s;
}

.appt-slot:hover { border-color: #bfdbfe; }

.appt-slot-time  { font-size: 13px; font-weight: 700; color: #1d4ed8; }
.appt-slot-name  { font-size: 14px; font-weight: 600; color: #0f172a; }
.appt-slot-email { font-size: 12px; color: #64748b; }

.appt-slot-badge {
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; white-space: nowrap;
}

/* FEEDBACK */
.appt-success {
  padding: 12px 16px; border-radius: 12px;
  background: #ecfdf5; border: 1px solid #a7f3d0;
  color: #047857; font-size: 14px; font-weight: 600;
}

.appt-error {
  padding: 12px 16px; border-radius: 12px;
  background: #fef2f2; border: 1px solid #fca5a5;
  color: #dc2626; font-size: 14px; font-weight: 600;
}

.appt-empty {
  padding: 24px; text-align: center; color: #94a3b8; font-size: 14px;
  border: 1px dashed #e2e8f0; border-radius: 12px;
}

/* STATS HERO */
.appt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }

.appt-stat {
  padding: 14px; border-radius: 16px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
}

.appt-stat-label { font-size: 12px; color: rgba(255,255,255,0.7); margin-bottom: 6px; }
.appt-stat-value { font-size: 24px; font-weight: 800; }

/* ===== MODAL ===== */
.appt-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.appt-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.appt-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.appt-modal-title { margin: 0; font-size: 17px; font-weight: 800; color: #0f172a; }

.appt-modal-body {
  padding: 20px 24px;
  display: grid;
  gap: 16px;
}

.appt-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
}

.appt-modal-fidel {
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.appt-modal-fidel-name  { font-weight: 700; color: #0f172a; font-size: 15px; }
.appt-modal-fidel-email { font-size: 13px; color: #64748b; margin-top: 2px; }/* ===== DASHBOARD ===== */
.org-dash-page {
  display: grid;
  gap: 24px;
}

.org-dash-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 28px;
  color: #fff;
  background: linear-gradient(135deg, #0f172a 0%, #111827 35%, #2563eb 100%);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
}

.org-dash-glow {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.org-dash-glow--one { top: -80px;  right: -50px; width: 220px; height: 220px; }
.org-dash-glow--two { bottom: -90px; left: -30px; width: 180px; height: 180px; }

.org-dash-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
}

.org-dash-hero-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.org-dash-hero-title {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.org-dash-hero-text {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.6;
}

.org-dash-badge-wrap { display: flex; gap: 10px; flex-wrap: wrap; }

.org-dash-badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 600;
}

.org-dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.org-dash-kpi-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.org-dash-kpi-label { font-size: 13px; color: rgba(255,255,255,0.75); margin-bottom: 8px; }
.org-dash-kpi-value { font-size: 28px; font-weight: 800; line-height: 1; }
.org-dash-kpi-meta  { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,0.7); }

/* ===== SECTION GRID ===== */
.org-dash-section-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

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

/* ===== CARD ===== */
.org-card {
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.org-card-title { margin: 0; font-size: 20px; font-weight: 800; color: #0f172a; }
.org-card-text  { margin: 6px 0 0; color: #64748b; font-size: 14px; line-height: 1.6; }

/* ===== QUICK ACTIONS ===== */
.org-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.org-quick-card {
  border-radius: 22px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  display: grid;
  gap: 12px;
  min-height: 180px;
}

.org-quick-icon  { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: #eff6ff; }
.org-quick-title { margin: 0; font-size: 17px; font-weight: 800; color: #111827; }
.org-quick-text  { margin: 4px 0 0; color: #6b7280; font-size: 13px; line-height: 1.6; }
.org-quick-footer { margin-top: auto; }

/* ===== FLASH INFOS ===== */
.org-right-stack { display: grid; gap: 24px; }
.org-flash-list  { display: grid; gap: 12px; margin-top: 18px; }

.org-flash-item {
  border-radius: 16px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.org-flash-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  font-size: 16px;
}

.org-flash-title { margin: 0; font-size: 14px; font-weight: 700; color: #0f172a; }
.org-flash-text  { margin: 4px 0 0; font-size: 13px; color: #64748b; line-height: 1.5; }

/* ===== PROFILES PAGE ===== */
.org-profiles-page      { min-height: 100vh; background: #f8fafc; padding: 24px; }
.org-profiles-container { max-width: 1600px; margin: 0 auto; display: grid; gap: 20px; }

.org-profiles-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.org-profiles-header {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid #f1f5f9;
}

.org-profiles-title    { margin: 0; font-size: 22px; font-weight: 800; color: #0f172a; }
.org-profiles-subtitle { margin: 4px 0 0; color: #64748b; font-size: 14px; }

/* ===== STATS ===== */
.org-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid #f1f5f9;
}

.org-stat-card { border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px; background: #f8fafc; }
.org-stat-label { font-size: 12px; color: #64748b; margin-bottom: 6px; }
.org-stat-value { font-size: 26px; font-weight: 800; color: #0f172a; line-height: 1; }
.org-stat-meta  { margin-top: 6px; font-size: 12px; color: #94a3b8; }

/* ===== FEEDBACK ===== */
.org-error {
  margin: 0 24px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  font-size: 14px;
  font-weight: 600;
}

.org-success {
  margin: 0 24px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 600;
}

/* ===== TOOLBAR ===== */
.org-toolbar {
  padding: 16px 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid #f1f5f9;
}

.org-input {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.org-input:focus { border-color: #3b82f6; background: #fff; }

/* ===== FORM ===== */
.org-form {
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
  display: grid;
  gap: 16px;
}

.org-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.org-form-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.org-form-actions { display: flex; gap: 12px; }

/* ===== TABLE ===== */
.org-table-wrap { overflow-x: auto; }

.org-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 800px;
}

.org-th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.org-td {
  padding: 14px 16px;
  color: #374151;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  white-space: nowrap;
}

.org-td:last-child { border-bottom: none; }

.org-table-empty    { text-align: center; padding: 40px; color: #94a3b8; font-size: 14px; }
.org-table-loading  { text-align: center; padding: 24px; color: #64748b; font-size: 14px; }

/* ===== ACTIONS ===== */
.org-row-actions { display: flex; gap: 8px; align-items: center; }

.org-btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: background 0.15s;
}

.org-btn-icon--edit   { background: #eff6ff; border-color: #bfdbfe; }
.org-btn-icon--edit:hover   { background: #dbeafe; }
.org-btn-icon--delete { background: #fef2f2; border-color: #fca5a5; }
.org-btn-icon--delete:hover { background: #fee2e2; }
.org-btn-icon:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== BUTTONS ===== */
.btn-primary {
  border: none;
  border-radius: 12px;
  padding: 11px 18px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-primary:hover    { background: #1f2937; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 11px 18px;
  background: #fff;
  color: #374151;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover { background: #f1f5f9; }

/* ===== CONTACT ===== */
.org-contact-page { display: grid; gap: 24px; }

.org-contact-hero {
  border-radius: 24px;
  padding: 28px;
  background: linear-gradient(135deg, #1e293b, #2563eb);
  color: #fff;
}

.org-contact-hero-title   { margin: 0; font-size: 28px; font-weight: 800; }
.org-contact-hero-subtitle { margin: 10px 0 0; opacity: 0.9; font-size: 15px; line-height: 1.6; max-width: 640px; }

.org-contact-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  display: grid;
  gap: 16px;
}

.org-contact-section-title { margin: 0; font-size: 20px; font-weight: 700; color: #0f172a; }
.org-contact-section-text  { margin: 0; color: #64748b; font-size: 14px; }

.org-contact-list { display: grid; gap: 12px; }

.org-contact-item {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  background: #f8fafc;
}

.org-contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eff6ff;
  font-size: 18px;
  flex-shrink: 0;
}

.org-contact-label { font-size: 12px; color: #64748b; margin-bottom: 2px; }
.org-contact-value { font-weight: 700; color: #0f172a; font-size: 15px; }
.org-contact-footer { font-size: 13px; color: #64748b; }/* ===== PAGE ===== */
.fidel-page {
  background: #f8fafc;
  min-height: 100%;
  padding: 0;
}

.fidel-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
  padding: 24px;
}

/* ===== HERO CARD ===== */
.fidel-hero-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  padding: 24px;
  display: grid;
  gap: 10px;
}

.fidel-hero-title {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  color: #0f172a;
}

.fidel-hero-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
}

/* ===== GRID ===== */
.fidel-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.fidel-col-6  { grid-column: span 6; }
.fidel-col-12 { grid-column: span 12; }

@media (max-width: 768px) {
  .fidel-col-6  { grid-column: span 12; }
}

/* ===== CARD ===== */
.fidel-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.fidel-card-header {
  padding: 20px;
  border-bottom: 1px solid #e2e8f0;
  display: grid;
  gap: 6px;
}

.fidel-card-title    { margin: 0; font-size: 20px; font-weight: 800; color: #0f172a; }
.fidel-card-subtitle { margin: 0; color: #64748b; font-size: 14px; }

.fidel-card-body {
  padding: 20px;
  display: grid;
  gap: 16px;
}

/* ===== EMPTY STATE ===== */
.fidel-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 20px;
  background: #f8fafc;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

/* ===== SHEEP LIST ===== */
.fidel-sheep-list { display: grid; gap: 12px; }

.fidel-sheep-row {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  display: grid;
  gap: 14px;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.fidel-sheep-row:hover {
  border-color: #bfdbfe;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.fidel-sheep-row-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.fidel-sheep-row-left {
  display: flex;
  gap: 14px;
  align-items: center;
}

.fidel-sheep-photo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.fidel-sheep-fallback {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  display: grid;
  place-items: center;
  font-size: 26px;
  flex-shrink: 0;
}

.fidel-sheep-name  { margin: 0; font-size: 17px; font-weight: 800; color: #0f172a; }
.fidel-sheep-sub   { margin: 0; color: #64748b; font-size: 13px; }
.fidel-sheep-badges { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== SUMMARY GRID ===== */
.fidel-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 640px) {
  .fidel-summary-grid { grid-template-columns: repeat(2, 1fr); }
}

.fidel-summary-box {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
}

.fidel-summary-label { font-size: 12px; color: #64748b; margin-bottom: 4px; }
.fidel-summary-value { font-size: 15px; font-weight: 800; color: #0f172a; }

/* ===== PAYMENT BAR ===== */
.fidel-bar-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.fidel-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: #2563eb;
  transition: width 0.4s ease;
}

/* ===== BADGE ===== */
.fidel-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid;
}

/* ===== MODAL ===== */
.fidel-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.fidel-modal {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.fidel-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.fidel-modal-title { margin: 0; font-size: 18px; font-weight: 800; color: #0f172a; }

.fidel-modal-body {
  overflow-y: auto;
  padding: 24px;
  flex: 1;
  display: grid;
  gap: 20px;
  align-content: start;
}

.fidel-modal-photo {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

.fidel-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.fidel-detail-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
}

.fidel-detail-card--full { grid-column: 1 / -1; }

.fidel-detail-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 5px;
}

.fidel-detail-value { font-size: 14px; font-weight: 600; color: #0f172a; word-break: break-word; }

.fidel-payments-list  { display: grid; gap: 10px; }

.fidel-payment-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  display: grid;
  gap: 4px;
}

.fidel-payment-title { font-weight: 700; color: #0f172a; font-size: 14px; }
.fidel-payment-text  { font-size: 13px; color: #64748b; }

.fidel-modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.fidel-section-title { margin: 0 0 12px; font-size: 16px; font-weight: 800; color: #0f172a; }

/* ===== PROFILE ===== */
.fidel-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 640px) {
  .fidel-info-grid { grid-template-columns: 1fr; }
}

.fidel-info-box {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  background: #f8fafc;
}

.fidel-info-label { font-size: 12px; color: #64748b; margin-bottom: 4px; }
.fidel-info-value { font-size: 15px; font-weight: 700; color: #0f172a; word-break: break-word; }

/* ===== CONTACT ===== */
.contact-page {
  display: flex;
  justify-content: center;
  padding: 40px 24px;
}

.contact-card {
  width: 100%;
  max-width: 700px;
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
  display: grid;
  gap: 24px;
}

.contact-title    { margin: 0; font-size: 28px; font-weight: 800; color: #0f172a; }
.contact-subtitle { margin: 0; color: #64748b; font-size: 15px; line-height: 1.6; }

.contact-grid { display: grid; gap: 14px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: #eff6ff;
  flex-shrink: 0;
}

.contact-label { font-size: 12px; color: #64748b; margin-bottom: 2px; }
.contact-value { font-size: 15px; font-weight: 700; color: #0f172a; }

.contact-footer {
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

/* ===== BUTTONS ===== */
.btn-secondary {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 18px;
  background: #fff;
  color: #374151;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-secondary:hover { background: #f1f5f9; }

.fidel-profile-form {
  display: flex;
  flex-direction: column;
}

.fidel-input {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #d7dce5;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  outline: none;
}

.fidel-input:focus {
  border-color: #7c8db5;
}

.fidel-input:disabled {
  background: #f5f7fb;
  cursor: not-allowed;
}

.fidel-primary-button {
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
}

.fidel-primary-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.success-message {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #ecfdf3;
  color: #067647;
}

.error-message {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fef3f2;
  color: #b42318;
}

.fidel-profile-form {
  display: flex;
  flex-direction: column;
}

.fidel-input {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #d7dce5;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  outline: none;
}

.fidel-input:focus {
  border-color: #7c8db5;
}

.fidel-input:disabled {
  background: #f5f7fb;
  cursor: not-allowed;
}

.fidel-primary-button {
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
}

.fidel-primary-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.success-message {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #ecfdf3;
  color: #067647;
}

.error-message {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fef3f2;
  color: #b42318;
}


.fidel-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  color: #0f172a;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.fidel-input:focus   { border-color: #3b82f6; }
.fidel-input:disabled { opacity: 0.6; cursor: not-allowed; background: #f8fafc; }@keyframes walk {
  0%   { transform: translateX(-80px); }
  100% { transform: translateX(80px); }
}
@keyframes blink {
  0%, 90%, 100% { opacity: 1; }
  95%           { opacity: 0; }
}
@keyframes step-a { 0%, 100% { transform: rotate(0deg); }  50% { transform: rotate(12deg); } }
@keyframes step-b { 0%, 100% { transform: rotate(0deg); }  50% { transform: rotate(-12deg); } }
@keyframes dot-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40%           { transform: translateY(-6px); }
}

.pa-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 2rem;
  text-align: center;
  background: #f8fafc;
}

.pa-sheep-scene {
  position: relative;
  width: 220px;
  height: 120px;
}

.pa-sheep-walk { animation: walk 3s ease-in-out infinite alternate; }
.pa-eye        { animation: blink 3.5s ease-in-out infinite; }

.pa-leg-a { transform-origin: 50% 0; animation: step-a 0.7s ease-in-out infinite; }
.pa-leg-b { transform-origin: 50% 0; animation: step-b 0.7s ease-in-out infinite; }

.pa-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pa-heading-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef2ff;
  border: 1px solid #bfdbfe;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}

.pa-title    { font-size: 22px; font-weight: 800; color: #0f172a; margin: 0; }
.pa-subtitle { font-size: 15px; color: #64748b; line-height: 1.7; margin: 0; max-width: 400px; }

.pa-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.2rem 1.5rem;
  max-width: 400px;
  width: 100%;
  display: grid;
  gap: 12px;
  text-align: left;
}

.pa-card-title { font-size: 13px; font-weight: 700; color: #0f172a; }

.pa-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.pa-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eef2ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.pa-dots { display: flex; align-items: center; gap: 5px; }

.pa-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #60a5fa;
}

.pa-dot:nth-child(1) { animation: dot-bounce 1.2s ease-in-out infinite; }
.pa-dot:nth-child(2) { animation: dot-bounce 1.2s ease-in-out 0.2s infinite; }
.pa-dot:nth-child(3) { animation: dot-bounce 1.2s ease-in-out 0.4s infinite; }

.pa-dots-label { font-size: 12px; color: #94a3b8; margin-left: 6px; }

.pa-btn-logout {
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  transition: background 0.15s;
}

.pa-btn-logout:hover { background: #f1f5f9; }@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes blink {
  0%, 90%, 100% { opacity: 1; }
  95%           { opacity: 0; }
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.6; }
}

.nf-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 2rem;
  text-align: center;
  background: #f8fafc;
}

.nf-sheep    { animation: float 3s ease-in-out infinite; }
.nf-eye      { animation: blink 4s ease-in-out infinite; }
.nf-dot      { animation: pulse-dot 2s ease-in-out infinite; }

.nf-code {
  font-size: 52px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -2px;
  line-height: 1;
}

.nf-title    { font-size: 20px; font-weight: 800; color: #0f172a; }
.nf-subtitle { font-size: 14px; color: #64748b; line-height: 1.6; max-width: 380px; }

.nf-actions  { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.nf-btn-back {
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  transition: background 0.15s;
}

.nf-btn-back:hover { background: #f1f5f9; }

.nf-btn-home {
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: #0f172a;
  border: none;
  color: #fff;
  transition: background 0.15s;
}

.nf-btn-home:hover { background: #1e293b; }

.nf-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #94a3b8;
}

.nf-footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E24B4A;
  display: inline-block;
}body {
  margin: 0;
  font-family: Arial, sans-serif;
}

input,
select,
button {
  padding: 10px;
  font-size: 16px;
}

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