@import url("animations.css");
@import url("variables.css");
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

/* =========================================================
   BASE GLOBALE
   ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: radial-gradient(circle at top,
      #fdf6ec 0%,
      #f4e3cf 45%,
      #f0e1d2 100%);
  color: var(--text-primary, #3f2a20);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Fond flou avec orbes café (commun landing + dashboard) */

.background-animation {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.45;
  pointer-events: none;
}

.floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(45px);
  animation: float 10s ease-in-out infinite;
}

.orb-1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #f9e0b0 0%, #f4b981 40%, #d97757 100%);
  top: 18%;
  left: 8%;
  animation-delay: 0s;
}

.orb-2 {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, #fef3c7 0%, #facc6b 35%, #c05621 100%);
  top: 60%;
  right: 12%;
  animation-delay: 2s;
}

.orb-3 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, #fdf2f2 0%, #fecaca 40%, #b91c1c 100%);
  bottom: 10%;
  left: 55%;
  animation-delay: 4s;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
  }

  50% {
    transform: translateY(-15px) translateX(10px);
  }

  100% {
    transform: translateY(0) translateX(0);
  }
}

/* Conteneur générique */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.2rem 1.5rem 1.8rem;
  flex: 1;
}

/* Footer commun */

.footer {
  margin: 0 auto;
  padding: 0.75rem 1rem 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #8b5a3c;
  font-size: 0.9rem;
}

/* Liens sociaux de base */

.social-links {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent, #f97316), var(--accent-hover, #ea580c));
  border: 1px solid rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fffdf7;
  text-decoration: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
  font-size: 1.4rem;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.35);
}

.social-link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

/* =========================================================
   TOP BAR / HEADER COMMUN (landing + dashboard)
   ========================================================= */

.top-bar-apple {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.3rem 1.5rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.apple-logo-wordmark {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3f2a20;
}

/* Bouton accès privé / logout */

.access-btn {
  border: none;
  cursor: pointer;
  background: none;
}

.access-btn-apple {
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(127, 29, 9, 0.5);
  background: radial-gradient(circle at top, #fff7ec 0%, #fee2c5 60%, #f5c08d 100%);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 26px rgba(120, 72, 42, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7c2d12;
  gap: 0.35rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.access-btn-apple:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(120, 72, 42, 0.55);
}

/* =========================================================
   LANDING / COMING SOON (index)
   ========================================================= */

.landing-container {
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.apple-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3.2rem;
  align-items: center;
  width: 100%;
}

/* Colonne gauche */

.apple-hero-left {
  text-align: left;
}

.apple-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b45309;
  margin-bottom: 0.6rem;
}

.apple-hero-title {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 0.9rem;
  color: #3f2a20;
}

.apple-hero-title br {
  display: block;
}

.apple-hero-subtitle {
  font-size: 1.02rem;
  color: #6b4b3a;
  line-height: 1.8;
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.apple-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.1rem;
}

.apple-pill {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 162, 118, 0.95);
  background: rgba(255, 253, 248, 0.98);
  color: #92400e;
}

/* Newsletter bloc */

.apple-newsletter {
  margin-bottom: 1.7rem;
}

.newsletter-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #9a3412;
  margin-bottom: 0.4rem;
}

.newsletter-text {
  font-size: 0.9rem;
  color: #6b4b3a;
  margin-bottom: 1rem;
}

.newsletter-form {
  margin-bottom: 0.6rem;
}

.newsletter-input-wrapper {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  background: radial-gradient(circle at top, #fff7ec 0%, #ffe1c4 55%, #fad1a3 100%);
  border-radius: 999px;
  padding: 0.25rem 0.3rem;
  border: 1px solid rgba(214, 162, 118, 0.9);
  box-shadow: 0 14px 34px rgba(120, 72, 42, 0.35);
}

.newsletter-input {
  border: none;
  outline: none;
  background: transparent;
  padding: 0.6rem 0.9rem;
  flex: 1;
  font-size: 0.9rem;
  color: #3f2a20;
}

.newsletter-input::placeholder {
  color: #b08462;
  opacity: 0.8;
}

.apple-newsletter-btn {
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff7ec;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 18px 40px rgba(194, 65, 12, 0.7);
}

.apple-newsletter-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.newsletter-small {
  font-size: 0.8rem;
  color: #8b5a3c;
}

/* Lien Instagram type chip */

.apple-social {
  display: flex;
  justify-content: center;
  margin-top: 1.2rem;
}

.apple-social-link {
  width: auto;
  height: auto;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(214, 162, 118, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #7c2d12;
  font-size: 0.82rem;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(120, 72, 42, 0.28);
}

.apple-social-link i {
  font-size: 1.15rem;
}

/* Colonne droite landing : carte "device" */

.apple-hero-right {
  display: flex;
  justify-content: center;
}

.apple-device-card {
  width: 100%;
  max-width: 380px;
  border-radius: 32px;
  background: radial-gradient(circle at top,
      #fff7ec 0%,
      #fbe0c2 42%,
      #f3c49c 100%);
  box-shadow: 0 30px 80px rgba(120, 72, 42, 0.45);
  overflow: hidden;
  border: 1px solid rgba(214, 162, 118, 0.95);
  backdrop-filter: blur(22px);
  position: relative;
}

.apple-device-card::after {
  content: "🥯 + ☕";
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  font-size: 1.1rem;
}

.apple-device-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid rgba(214, 162, 118, 0.7);
  background: radial-gradient(circle at top, #fff7ec 0%, #fbd4a5 80%);
}

.apple-device-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.apple-device-dot.dot-1 {
  background: #f97316;
}

.apple-device-dot.dot-2 {
  background: #facc6b;
}

.apple-device-dot.dot-3 {
  background: #22c55e;
}

.apple-device-title {
  margin-left: 0.45rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #8b5a3c;
}

.apple-device-body {
  padding: 1.45rem 1.4rem 1.3rem;
  position: relative;
}

.apple-device-body::before {
  content: "🥯";
  position: absolute;
  inset: 0;
  margin: auto;
  top: 0.1rem;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #fff7ec 0%, #fbbf77 45%, #c05621 100%);
  box-shadow: 0 22px 50px rgba(127, 29, 9, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  opacity: 0.18;
  pointer-events: none;
}

.apple-device-caption {
  font-size: 0.9rem;
  color: #6b4b3a;
  margin-bottom: 1.1rem;
}

/* Countdown (si utilisé) */

.apple-countdown-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  z-index: 1;
}

.apple-countdown-item {
  text-align: center;
  padding: 0.7rem 0.4rem;
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(214, 162, 118, 0.8);
  box-shadow: 0 10px 26px rgba(120, 72, 42, 0.25);
}

.apple-countdown-number {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #9a3412;
}

.apple-countdown-label {
  font-size: 0.75rem;
  color: #8b5a3c;
}

.apple-device-foot {
  border-top: 1px solid rgba(214, 162, 118, 0.8);
  padding-top: 0.9rem;
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.apple-device-foot-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #6b4b3a;
}

.foot-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #c05621;
}

/* =========================================================
   MODALS (mot de passe / newsletter)
   ========================================================= */

/* Modal type password (utilisé aussi pour login dashboard version card) */

.password-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

.password-modal.is-open {
  display: block;
}

.password-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 7, 0.65);
  backdrop-filter: blur(4px);
}

.password-modal-dialog {
  position: relative;
  max-width: 420px;
  margin: 10vh auto 0;
  background: #fff7ec;
  border-radius: 24px;
  padding: 1.8rem 1.6rem 1.6rem;
  box-shadow: 0 30px 80px rgba(120, 72, 42, 0.6);
  border: 1px solid rgba(214, 162, 118, 0.9);
}

.password-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.9rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b4b3a;
}

.password-modal-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #3f2a20;
  margin-bottom: 0.5rem;
}

.password-modal-text {
  font-size: 0.95rem;
  color: #6b4b3a;
  margin-bottom: 1.3rem;
  line-height: 1.5;
}

.password-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.password-input {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(209, 175, 139, 0.9);
  background: rgba(255, 253, 248, 0.96);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.password-input:focus {
  border-color: var(--accent, #f97316);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12);
}

.password-btn {
  border: none;
  cursor: pointer;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent, #f97316), var(--accent-hover, #ea580c));
  color: #fff7ec;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.password-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
}

.password-message {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: #b91c1c;
}

/* Modal newsletter (success / step 2) */

.newsletter-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.newsletter-modal.is-open {
  display: block;
}

.newsletter-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 7, 0.55);
  backdrop-filter: blur(4px);
}

.newsletter-modal-dialog {
  position: relative;
  width: 92%;
  max-width: 420px;
  margin: 10vh auto 0;
  background: #fffdf8;
  border-radius: 24px;
  padding: 2rem 1.7rem 1.6rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(214, 162, 118, 0.8);
  animation: fadeInUp 0.35s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.newsletter-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #6b4b3a;
  transition: 0.2s ease;
}

.newsletter-modal-close:hover {
  transform: scale(1.18);
}

.newsletter-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3f2a20;
  margin-bottom: 0.5rem;
  text-align: center;
}

.newsletter-modal-text {
  text-align: center;
  font-size: 1rem;
  color: #6b4b3a;
  margin-bottom: 1.4rem;
  line-height: 1.6;
}

.newsletter-modal-form .newsletter-input {
  width: 100%;
  margin-bottom: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
}

.newsletter-open-btn {
  background: linear-gradient(135deg, #d97757, #b45309);
  color: #fff7ec;
  border: none;
  padding: 1rem 1.7rem;
  border-radius: 18px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(127, 29, 9, 0.45);
  transition: .25s ease;
}

.newsletter-open-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 45px rgba(127, 29, 9, 0.6);
}

.newsletter-open-btn:active {
  transform: scale(.97);
}

/* Newsletter 2-step helpers */

#step2 {
  opacity: 0;
  transform: translateY(10px);
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
}

#step2.visible {
  opacity: 1;
  transform: translateY(0);
}

#emailNextBtn,
#finalSubmitBtn {
  width: 100%;
  margin-top: 8px;
}

/* Messages de feedback */

.newsletter-message {
  margin-top: 10px;
  font-size: 0.9rem;
  text-align: left;
}

.newsletter-message--success {
  background: #ecfdf5;
  color: #15803d;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}

.newsletter-message--error {
  color: #dc2626;
  font-weight: 600;
}

/* Input error / loader / success */

@keyframes shake {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-6px);
  }

  50% {
    transform: translateX(6px);
  }

  75% {
    transform: translateX(-4px);
  }

  100% {
    transform: translateX(0);
  }
}

.input-error {
  animation: shake 0.3s ease;
  border-color: #ef4444 !important;
}

.btn-loading {
  pointer-events: none;
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.btn-success {
  background: #22c55e !important;
  border-color: #16a34a !important;
  color: white !important;
}

.btn-success::after {
  content: "✓";
  font-weight: 700;
  font-size: 20px;
  color: white;
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.placeholder-fade {
  transition: opacity .3s ease;
}

/* =========================================================
   PREVIEW BAGEL (preview.html si utilisé)
   ========================================================= */

.preview-hero-media-bagel {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bagel-layers {
  position: relative;
  width: 260px;
  height: 260px;
}

.bagel-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bagel-layer img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.bagel-layer-plate {
  transform: translateY(40px);
  z-index: 1;
}

.bagel-layer-bottom {
  transform: translateY(10px);
  z-index: 2;
}

.bagel-layer-filling {
  transform: translateY(-10px);
  z-index: 3;
}

.bagel-layer-top {
  transform: translateY(-30px);
  z-index: 4;
}

.bagel-nutrition {
  position: absolute;
  right: -110px;
  top: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.bagel-nutrition-card {
  width: 110px;
  padding: 0.7rem 0.6rem;
  border-radius: 18px;
  background: #fffdf8;
  border: 1px solid rgba(214, 162, 118, 0.7);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  font-size: 0.78rem;
  text-align: center;
  color: #6b4b3a;
}

.bagel-nutrition-card .label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  font-size: 0.7rem;
  color: #b45309;
}

.bagel-nutrition-card small {
  display: block;
  opacity: 0.7;
  margin-top: 2px;
  margin-bottom: 4px;
}

.bagel-nutrition-card strong {
  display: block;
  font-size: 1.1rem;
  color: #9a3412;
}

.preview-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: #fef7e2;
  border: 1px solid rgba(214, 162, 118, 0.8);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #92400e;
}

.preview-hero-title span {
  display: inline-block;
}

/* =========================================================
   DASHBOARD (dashboard.maymiru.be)
   ========================================================= */

.dashboard-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.8rem 1.5rem 1.6rem;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 1.6rem;
  min-height: 80vh;
}

.dashboard-sidebar {
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(214, 162, 118, 0.9);
  box-shadow: 0 18px 45px rgba(120, 72, 42, 0.35);
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sidebar-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #b45309;
  margin-bottom: 0.4rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  color: #6b4b3a;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.sidebar-link span.emoji {
  font-size: 1.1rem;
}

.sidebar-link:hover {
  background: rgba(255, 250, 245, 0.9);
}

.sidebar-link.active {
  background: radial-gradient(circle at top, #fff7ec 0%, #ffe1c4 55%, #fad1a3 100%);
  border-color: rgba(214, 162, 118, 0.95);
  color: #7c2d12;
  font-weight: 600;
}

.sidebar-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sidebar-footer {
  margin-top: auto;
  font-size: 0.8rem;
  color: #8b5a3c;
  border-top: 1px solid rgba(214, 162, 118, 0.5);
  padding-top: 0.7rem;
}

.dashboard-content {
  border-radius: 26px;
  background: radial-gradient(circle at top, #fff7ec 0%, #fbe0c2 42%, #f3c49c 100%);
  border: 1px solid rgba(214, 162, 118, 0.95);
  box-shadow: 0 30px 80px rgba(120, 72, 42, 0.45);
  padding: 1.3rem 1.4rem 1.4rem;
}

/* Header section */

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.dash-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3f2a20;
}

.dash-subtitle {
  font-size: 0.9rem;
  color: #6b4b3a;
}

.dash-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #fff7ec;
  border: 1px solid rgba(214, 162, 118, 0.9);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #92400e;
  gap: 0.35rem;
}

/* Cards overview */

.dash-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.dash-card {
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(214, 162, 118, 0.8);
  padding: 0.85rem 0.9rem;
  box-shadow: 0 10px 24px rgba(120, 72, 42, 0.25);
  font-size: 0.85rem;
  color: #6b4b3a;
}

.dash-card-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: #b45309;
  margin-bottom: 0.2rem;
}

.dash-card-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #3f2a20;
}

.dash-card-foot {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Blocs principaux */

.dash-main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.2rem;
}

.dash-panel {
  border-radius: 20px;
  background: #fffdf8;
  border: 1px solid rgba(214, 162, 118, 0.85);
  padding: 0.9rem 1rem;
  box-shadow: 0 14px 32px rgba(120, 72, 42, 0.28);
  font-size: 0.9rem;
  color: #6b4b3a;
}

.dash-panel-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #3f2a20;
  margin-bottom: 0.4rem;
}

.dash-panel-subtitle {
  font-size: 0.8rem;
  color: #8b5a3c;
  margin-bottom: 0.6rem;
}

/* Table dashboard */

.table-lite {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.table-lite th,
.table-lite td {
  padding: 4px 6px;
  text-align: left;
}

.table-lite thead {
  color: #92400e;
  border-bottom: 1px solid rgba(214, 162, 118, 0.9);
}

.table-lite tbody tr:nth-child(odd) {
  background: rgba(255, 250, 245, 0.9);
}

/* Badges */

.badge-pill {
  display: inline-flex;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.8);
  color: #374151;
  background: #f9fafb;
}

.badge-pill.green {
  border-color: #22c55e;
  color: #166534;
  background: #ecfdf5;
}

.badge-pill.red {
  border-color: #ef4444;
  color: #991b1b;
  background: #fef2f2;
}

.badge-pill.orange {
  border-color: #f97316;
  color: #9a3412;
  background: #fff7ed;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {
  .bagel-nutrition {
    position: static;
    margin-top: 1.2rem;
    flex-direction: row;
    justify-content: center;
  }

  .bagel-nutrition-card {
    width: auto;
    min-width: 95px;
  }

  .preview-hero-media-bagel {
    margin-top: 1.2rem;
  }
}

@media (max-width: 900px) {
  .container {
    padding: 1.8rem 1.25rem 1.4rem;
  }

  .apple-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
  }

  .apple-hero-left {
    text-align: center;
  }

  .apple-hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .apple-pill-row {
    justify-content: center;
  }

  .newsletter-input-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .apple-social-link {
    justify-content: center;
  }

  .apple-hero-right {
    order: -1;
  }

  .apple-device-card {
    max-width: 320px;
  }

  .dashboard-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-sidebar {
    order: -1;
  }
}

@media (max-width: 800px) {
  .dash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-main {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 690px) {
  .landing-container {
    padding: 1.8rem 1.25rem 1.4rem;
  }

  .apple-hero-title {
    font-size: 2.2rem;
  }

  .password-modal-dialog {
    margin-inline: 1.2rem;
  }
}
.dash-badge.online {
  background: #ecfdf5;
  border-color: #22c55e;
  color: #166534;
}

.dash-badge.offline {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}
