:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #f8fafc;

  --text: #222;
  --text-soft: #6b7280;

  --line: #d5dce5;

  --primary: #0b2850;
  --primary-dark: #163b70;

  --accent: #eef2f7;
  --success: #1fa971;

  --shadow: 0 18px 40px rgba(11, 40, 80, 0.08);

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
  color: var(--text);
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2 {
  margin: 12px 0 16px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.section-heading p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 1.05rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.section-tag-light {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223, 229, 243, 0.75);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.7rem;
  color: #0b2850;
}

.brand-mark {
  position: relative;
  width: 32px;
  height: 24px;
  display: inline-block;
}

.brand-mark span {
  position: absolute;
  background: linear-gradient(135deg, #0b2850 0%, #163b70 100%);
  border-radius: 999px;
}

.brand-mark span:nth-child(1) {
  width: 11px;
  height: 11px;
  top: 0;
  left: 4px;
}

.brand-mark span:nth-child(2) {
  width: 11px;
  height: 11px;
  top: 0;
  right: 4px;
}

.brand-mark span:nth-child(3) {
  width: 24px;
  height: 12px;
  bottom: 0;
  left: 4px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.desktop-nav a {
  color: var(--text-soft);
  font-weight: 600;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--primary-dark);
}

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

.hidden {
  display: none !important;
}

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

.app-nav {
  gap: 10px;
}

.app-nav > a {
  position: relative;
  padding: 10px 12px;
  border-radius: 10px;
}

.app-nav > a:hover {
  background: var(--accent);
}

.app-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.app-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #d64545;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
}

.mobile-logout-btn {
  width: 100%;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  text-align: left;
  font-weight: 600;
  cursor: pointer;
}

.mobile-logout-btn:hover {
  color: var(--primary-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

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

.btn-primary {
  background: linear-gradient(135deg, #0b2850 0%, #163b70 100%);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(11, 40, 80, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 14px 28px rgba(11, 40, 80, 0.26);
}

.btn-secondary {
  background: #ffffff;
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: #c9d4ef;
}

.btn-large {
  min-height: 56px;
  padding: 0 26px;
}

.btn-full {
  width: 100%;
}

.btn-white {
  background: #ffffff;
  color: var(--primary-dark);
}

.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.menu-toggle {
  position: relative;
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
}

.menu-toggle .menu-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #22315d;
  margin: 4px auto;
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(223, 229, 243, 0.75);
  background: #ffffff;
}

.mobile-menu.open {
  display: block;
}

.mobile-nav {
  width: min(var(--container), calc(100% - 24px));
  margin: 0 auto;
  padding: 16px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav a,
.mobile-nav .mobile-logout-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 12px 18px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #f8fafc;
  color: #0b2850;
  font-weight: 700;
  text-align: left;
  box-sizing: border-box;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.mobile-nav a:hover,
.mobile-nav .mobile-logout-btn:hover {
  border-color: #aebdd0;
  background: #eef4fb;
}

/* La Landing est la page active */
#userMobileNav > a[href="#userHome"] {
  border-color: #0b2850;
  background: #0b2850;
  color: #ffffff;
}

/* Déconnexion visuellement distincte */
#userMobileNav .mobile-logout-btn {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

#userMobileNav .mobile-logout-btn:hover {
  border-color: #ef4444;
  background: #fee2e2;
}

.mobile-nav .mobile-nav-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mobile-nav .mobile-nav-label .nav-icon {
  width: 1.4rem;
  flex: 0 0 1.4rem;
  text-align: center;
}

.mobile-nav .mobile-nav-link-with-badge {
  justify-content: space-between;
}

.mobile-nav .app-nav-badge {
  flex: 0 0 auto;
}

.hero-section {
  padding: 72px 0 96px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 42px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef2f7;
  color: #0b2850;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-content h1 {
  margin: 20px 0 22px;
  font-size: clamp(2.8rem, 4.2vw, 3.9rem);
  line-height: 1.06;
  max-width: 650px;
  letter-spacing: -1.5px;
}

.hero-text {
  max-width: 630px;
  margin: 0 0 28px;
  color: var(--text-soft);
  line-height: 1.8;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--text-soft);
  font-weight: 600;
}

.hero-points li {
  position: relative;
  padding-left: 18px;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
}

.hero-visual {
  position: relative;
  min-height: 650px;
}

.visual-shape {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient( circle, rgba(11, 40, 80, 0.13), rgba(11, 40, 80, 0) );
}

.visual-shape-1 {
  width: 320px;
  height: 320px;
  top: 70px;
  left: 40px;
}

.visual-shape-2 {
  width: 280px;
  height: 280px;
  right: 20px;
  bottom: 80px;
}

.app-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(223, 229, 243, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.card-label {
  margin: 0 0 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-soft);
}

.profile-card {
  top: 35px;
  left: 0;
  width: 300px;
  z-index: 1;
}

.chat-card {
  top: 135px;
  right: 0;
  width: 310px;
  z-index: 3;
}

.group-card {
  bottom: 10px;
  left: 105px;
  width: 245px;
  z-index: 2;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.profile-top h3,
.group-card h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.profile-top p,
.group-card p {
  margin: 0;
  color: var(--text-soft);
}

.avatar,
.avatar-large,
.mini-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef2f7 0%, #dce5ef 100%);
  color: var(--primary-dark);
  font-weight: 800;
}

.avatar {
  width: 42px;
  height: 42px;
}

.avatar-large {
  width: 68px;
  height: 68px;
  font-size: 1.2rem;
}

.mini-avatars {
  display: flex;
  align-items: center;
  margin: 12px 0 18px;
}

.mini-avatar {
  width: 34px;
  height: 34px;
  margin-right: -8px;
  border: 3px solid #ffffff;
  font-size: 0.85rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f2f5ff;
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 700;
}

.info-list {
  padding-left: 18px;
  margin: 0 0 18px;
  color: var(--text-soft);
  line-height: 1.8;
}

.chat-bubble {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 16px;
  margin-bottom: 10px;
  line-height: 1.5;
  font-size: 0.95rem;
}

.chat-bubble-sent {
  margin-left: auto;
  background: linear-gradient(135deg, #0b2850 0%, #163b70 100%);
  color: #ffffff;
  border-bottom-right-radius: 6px;
}

.chat-bubble-received {
  background: #f2f5ff;
  color: var(--text);
  border-bottom-left-radius: 6px;
}

.chat-input {
  margin-top: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #94a0bc;
}

.problem-grid,
.steps-grid,
.features-grid,
.showcase-grid,
.benefits-grid {
  display: grid;
  gap: 24px;
}

.problem-grid,
.steps-grid,
.benefits-grid {
  grid-template-columns: repeat(3, 1fr);
}

.features-grid {
  grid-template-columns: repeat(3, 1fr);
}

.showcase-grid {
  grid-template-columns: repeat(3, 1fr);
}

.info-card,
.step-card,
.feature-card,
.showcase-card,
.benefit-card,
.faq-item {
  background: var(--surface);
  border: 1px solid rgba(223, 229, 243, 0.88);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.info-card,
.step-card,
.feature-card,
.benefit-card {
  padding: 28px;
}

.info-card h3,
.step-card h3,
.feature-card h3,
.showcase-card h3,
.benefit-card h3,
.about-points h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.info-card p,
.step-card p,
.feature-card p,
.benefit-card p,
.showcase-card p,
.about-points p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.icon-circle,
.step-number,
.feature-icon,
.shield-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 16px;
  font-weight: 800;
}

.icon-circle,
.step-number {
  width: 48px;
  height: 48px;
  background: #edf1ff;
  color: var(--primary-dark);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: #eef2ff;
  color: var(--primary-dark);
  font-size: 1.3rem;
}

.showcase-card {
  padding: 24px;
}

.fake-screen,
.fake-profile-screen,
.fake-chat-screen {
  margin-top: 18px;
  min-height: 320px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f9fbff 0%, #f3f6ff 100%);
  border: 1px solid #dde4f5;
  padding: 18px;
}

.fake-screen {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
}

.fake-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fake-sidebar span {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: #dfe6fa;
}

.fake-sidebar span.active {
  background: linear-gradient(135deg, var(--primary) 0%, #5d4df3 100%);
}

.fake-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e4e9f7;
}

.list-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.list-text span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.list-badge {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eaf8f2;
  color: var(--success);
  font-weight: 700;
  font-size: 0.84rem;
}

.fake-profile-screen {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.fake-profile-screen h4 {
  margin: 18px 0 6px;
  font-size: 1.2rem;
}

.showcase-copy {
  margin: 0 0 20px;
}

.fake-chat-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e4e9f7;
}

.chat-row span {
  color: var(--text);
  font-weight: 700;
}

.chat-row strong {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.chat-preview-box {
  margin-top: 10px;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e4e9f7;
}

.about-box {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 34px;
  padding: 40px;
  border-radius: 32px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border: 1px solid #d5dce5;
}

.about-left {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.shield-icon {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  background: linear-gradient(135deg, #0b2850 0%, #163b70 100%);
  font-size: 2rem;
  border-radius: 24px;
}

.about-left h2 {
  margin: 14px 0 14px;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.15;
}

.about-left p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.about-points {
  display: grid;
  gap: 18px;
}

.about-points article {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(223, 229, 243, 0.9);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  font-weight: 700;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-dark);
  font-size: 1.2rem;
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--text-soft);
  line-height: 1.7;
}

.final-cta {
  padding: 0 0 96px;
}

.final-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 42px;
  border-radius: 32px;
  background: linear-gradient(135deg, #0b2850 0%, #163b70 100%);
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(11, 40, 80, 0.24);
}

.final-cta-content h2 {
  margin: 16px 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  max-width: 720px;
}

.final-cta-content p {
  margin: 0;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  border-top: 1px solid rgba(223, 229, 243, 0.85);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 46px;
}

.footer-brand {
  max-width: 430px;
}

.footer-brand p {
  margin: 18px 0 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin-top: 12px;
}

.footer-links a {
  color: var(--text-soft);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--primary-dark);
}

@media (max-width: 1120px) {
  .hero-grid,
  .about-box {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 680px;
  }

  .problem-grid,
  .steps-grid,
  .features-grid,
  .showcase-grid,
  .benefits-grid,
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .final-cta-box,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1120px) {
  .desktop-nav,
  .header-auth-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .section {
    padding: 78px 0;
  }

  .hero-section {
    padding: 50px 0 78px;
  }

  .hero-content h1 {
    font-size: clamp(2.4rem, 9vw, 3.6rem);
  }

  .hero-grid,
  .problem-grid,
  .steps-grid,
  .features-grid,
  .showcase-grid,
  .benefits-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 760px;
  }

  .profile-card {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    margin-bottom: 18px;
  }

  .chat-card {
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    margin-bottom: 18px;
  }

  .group-card {
    position: relative;
    right: 0;
    bottom: 0;
    width: 100%;
  }

  .visual-shape-1 {
    top: 120px;
    left: -40px;
  }

  .visual-shape-2 {
    right: -40px;
    bottom: 20px;
  }

  .about-box {
    padding: 28px;
  }

  .about-left {
    flex-direction: column;
  }

  .final-cta-box {
    padding: 30px 24px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .header-inner {
    min-height: 78px;
  }

  .brand {
    font-size: 1.4rem;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .info-card,
  .step-card,
  .feature-card,
  .showcase-card,
  .benefit-card {
    padding: 22px;
  }

  .hero-actions,
  .final-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-large,
  .btn-white,
  .btn-outline-light {
    width: 100%;
  }

  .hero-points {
    flex-direction: column;
    gap: 12px;
  }
}
/* =========================
   CONNECTED HOME
========================= */

body.auth-pending .desktop-nav,
body.auth-pending .header-auth-actions,
body.auth-pending .mobile-menu,
body.auth-pending main,
body.auth-pending .site-footer {
  opacity: 0;
}

.user-home {
  padding: 56px 0 88px;
  min-height: calc(100vh - 88px);
  background:
    radial-gradient(circle at 85% 4%, rgba(22, 59, 112, 0.08), transparent 30%),
    linear-gradient(180deg, #f7f9fc 0%, #ffffff 72%);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: stretch;
  padding: 38px;
  border: 1px solid rgba(213, 220, 229, 0.92);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.dashboard-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.dashboard-kicker,
.dashboard-panel-kicker {
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-hero h1 {
  margin: 12px 0 14px;
  max-width: 760px;
  color: var(--primary);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -1px;
}

.dashboard-hero-copy > p {
  max-width: 700px;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.75;
}

.dashboard-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.dashboard-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d5dce5;
  border-radius: 999px;
  background: #f7f9fc;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.dashboard-status.verified,
.dashboard-status.complete {
  border-color: #cce9dc;
  background: #eef9f4;
  color: #167653;
}

.dashboard-status.incomplete {
  border-color: #ead9ba;
  background: #fff8eb;
  color: #8a5b16;
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.dashboard-pilot-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 230px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(145deg, #0b2850 0%, #163b70 100%);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(11, 40, 80, 0.18);
}

.dashboard-pilot-label {
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-pilot-card strong {
  font-size: 1.25rem;
  line-height: 1.45;
}

.dashboard-pilot-card p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}


.dashboard-pilot-card strong a {
  color: inherit;
  text-decoration: none;
}

.dashboard-pilot-card strong a:not(.disabled):hover,
.dashboard-pilot-card strong a:not(.disabled):focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dashboard-pilot-card strong a.disabled {
  pointer-events: none;
}
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.dashboard-stat-card {
  display: flex;
  flex-direction: column;
  min-height: 164px;
  padding: 22px;
  border: 1px solid #c8d5e3;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%);
  box-shadow: 0 12px 30px rgba(11, 40, 80, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.dashboard-stat-card:hover {
  transform: translateY(-2px);
  border-color: #b1c2d5;
  background: linear-gradient(180deg, #ffffff 0%, #edf4fb 100%);
  box-shadow: 0 16px 34px rgba(11, 40, 80, 0.11);
}

.dashboard-stat-label {
  min-height: 38px;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.dashboard-stat-card strong {
  margin: 9px 0 13px;
  color: var(--primary);
  font-size: 2rem;
  line-height: 1;
}

.dashboard-stat-link {
  margin-top: auto;
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 700;
}

.dashboard-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.7fr);
  gap: 22px;
  margin-top: 22px;
}

.dashboard-panel {
  padding: 28px;
  border: 1px solid #cdd9e6;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafe 100%);
  box-shadow: 0 12px 30px rgba(11, 40, 80, 0.07);
}

.dashboard-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.dashboard-panel-heading h2 {
  margin: 7px 0 0;
  color: var(--primary);
  font-size: 1.45rem;
}

.dashboard-panel-heading.compact > a {
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 700;
}

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

.dashboard-quick-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid #d7e1eb;
  border-radius: 18px;
  background: #ffffff;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-quick-card:hover {
  transform: translateY(-1px);
  border-color: #bdcddd;
  background: #f7faff;
  box-shadow: 0 10px 24px rgba(11, 40, 80, 0.08);
}

.dashboard-quick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 800;
}

.dashboard-quick-card div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dashboard-quick-card strong {
  color: var(--text);
}

.dashboard-quick-card div span {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.dashboard-course-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-course-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 15px;
  border: 1px solid #e1e6ed;
  border-radius: 15px;
  background: #f9fafc;
}

.dashboard-course-item strong {
  color: var(--text);
  font-size: 0.94rem;
}

.dashboard-course-item span {
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.4;
}

.dashboard-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed #cbd4df;
  border-radius: 16px;
  color: var(--text-soft);
  line-height: 1.6;
  text-align: center;
}

.dashboard-empty a {
  display: inline-block;
  margin-top: 8px;
  color: var(--primary-dark);
  font-weight: 700;
}

@media (max-width: 1120px) {
  .desktop-nav,
  .header-auth-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .dashboard-hero,
  .dashboard-content-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .user-home {
    padding: 28px 0 60px;
    min-height: calc(100vh - 78px);
  }

  .dashboard-hero,
  .dashboard-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .dashboard-pilot-card {
    min-height: 0;
    padding: 22px;
  }

  .dashboard-stats,
  .dashboard-quick-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-stat-card {
    min-height: 138px;
  }

  .dashboard-hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .dashboard-hero-actions .btn {
    width: 100%;
  }
}

.feature-line-icon {
  width: 24px;
  height: 24px;
  display: block;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   Mobile user navigation - same visual style as app pages
   ========================================================= */
@media (max-width: 1120px) {
  #userMobileNav {
    width: calc(100% - 24px);
    margin: 0 auto;
    padding: 16px 0 20px;
    gap: 8px;
  }

  #userMobileNav > a,
  #userMobileNav > .mobile-logout-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 54px;
    padding: 12px 18px;
    box-sizing: border-box;

    border: 1px solid #cbd7e6;
    border-radius: 12px;
    background: #f8fafc;

    color: #0b2850;
    font-weight: 700;
    text-decoration: none;
    text-align: left;

    transition:
      background 0.2s ease,
      border-color 0.2s ease;
  }

  #userMobileNav > a:hover,
  #userMobileNav > .mobile-logout-btn:hover {
    background: #eef4fb;
    border-color: #aebdd0;
  }

  /* Startseite = page active on Landing */
  #userMobileNav > a[href="#userHome"] {
    background: #0b2f5f;
    border-color: #0b2f5f;
    color: #ffffff;
  }

  /* Logout */
  #userMobileNav > .mobile-logout-btn {
    background: #fff1f2;
    border-color: #fecaca;
    color: #c62828;
    cursor: pointer;
  }

  #userMobileNav > .mobile-logout-btn:hover {
    background: #fee2e2;
    border-color: #f87171;
  }

  #userMobileNav .mobile-nav-label {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  #userMobileNav .nav-icon {
    width: 24px;
    flex: 0 0 24px;
    text-align: center;
  }

  #userMobileNav .mobile-nav-link-with-badge {
    justify-content: space-between;
  }
}