:root {
  --bg: #f0f4ff;
  --bg-card: #fff;
  --text: #1e293b;
  --text-muted: #64748b;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 12px;
  --font: 'DM Sans', system-ui, sans-serif;
}

/* Material Symbols (Google Fonts) */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 1.25em;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  letter-spacing: normal;
  white-space: nowrap;
}

.logo .material-symbols-outlined.logo-icon { font-size: 1.35rem; }
.nav-item .material-symbols-outlined.nav-icon { font-size: 1.2rem; }
.btn .material-symbols-outlined.btn-icon { font-size: 1.15rem; }
.form-hint-icon { font-size: 1rem; vertical-align: -0.2em; }
.success-msg .material-symbols-outlined { font-size: 1.1rem; vertical-align: -0.15em; margin-right: 0.25rem; }
.link-preview-icon { font-size: 1rem; margin-right: 0.35rem; vertical-align: -0.2em; }
.link-button .link-emoji { font-size: 1.25rem; margin-right: 0.5rem; vertical-align: -0.25em; }

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

body.app-dashboard {
  background: linear-gradient(160deg, #f0f4ff 0%, #e8eeff 50%, #fdf4ff 100%);
  background-attachment: fixed;
}

.site-header,
.public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.5rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-icon {
  color: var(--accent);
  font-size: 1rem;
}

.nav-menu {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.nav-item:hover {
  color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
}

.nav-item--cta {
  color: var(--accent);
  border: 1px solid var(--accent);
}

.nav-item--cta:hover {
  background: var(--accent);
  color: #fff;
}

.nav-item--admin {
  color: #b45309;
  border: 1px solid rgba(180, 83, 9, 0.5);
}

.nav-item--admin:hover {
  background: rgba(180, 83, 9, 0.12);
  color: #c2410c;
}

.nav-item--pro {
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.5);
}

.nav-item--pro:hover {
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
}

.nav-pro-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.2);
  margin-left: 0.2rem;
}

.nav-icon {
  font-size: 1rem;
  opacity: 0.9;
}

.btn-login {
  background: #5865f2;
  color: #fff !important;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
}

.btn-login:hover {
  background: #4752c4 !important;
  color: #fff !important;
}

.site-header nav,
.public-header nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.public-header .logo {
  color: var(--text);
}

.main-content,
.profile-main {
  flex: 1;
  padding: 2rem 1rem;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn-discord {
  background: #5865f2;
  color: #fff;
}

.btn-discord:hover {
  background: #4752c4;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-copy {
  background: var(--text-muted);
  color: #fff;
  white-space: nowrap;
}

.btn-copy:hover {
  background: var(--text);
}

/* Hero */
/* ========== Page d'accueil ========== */
.main-content:has(.home-page) {
  max-width: 720px;
  padding: 0 1.5rem 3rem;
}

.home-page {
  width: 100%;
}

/* Hero */
.home-hero {
  text-align: center;
  padding: 3rem 0 4rem;
}

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  animation: home-badge-float 4s ease-in-out infinite;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin: 0 0 1.5rem;
}

.home-hero-badge .material-symbols-outlined {
  font-size: 1.1rem !important;
}

@keyframes home-badge-float {
  0%, 100% { transform: translateY(0) translateZ(0); }
  50% { transform: translateY(-4px) translateZ(0); }
}

.home-hero-title {
  font-size: clamp(1.875rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.home-hero-desc {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 auto 2rem;
  max-width: 520px;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  align-items: center;
}

.home-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
}

.home-hero-btn {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease;
}

.home-hero-btn:hover {
  transform: translateY(-3px) translateZ(4px);
  box-shadow: 0 12px 28px -8px rgba(99, 102, 241, 0.4);
}

.home-hero-btn--discord {
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
}

.home-hero-btn .material-symbols-outlined,
.home-hero-btn svg {
  flex-shrink: 0;
}

.home-hero-hint {
  width: 100%;
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Sections communes */
.home-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.home-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.5rem;
  text-align: center;
}

/* Features — 3D perspective container */
.home-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  perspective: 1200px;
}

.home-feature-card {
  --card-rotate-x: 0deg;
  --card-rotate-y: 0deg;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  text-align: left;
  transform-style: preserve-3d;
  transform: perspective(800px) rotateX(var(--card-rotate-x)) rotateY(var(--card-rotate-y)) translateZ(0);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.3s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  position: relative;
  overflow: hidden;
  animation: home-card-enter 0.7s cubic-bezier(0.23, 1, 0.32, 1) backwards;
}

.home-feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(255,255,255,0.5) 0%, transparent 50%, rgba(0,0,0,0.03) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.home-feature-card:nth-child(1) { animation-delay: 0.05s; }
.home-feature-card:nth-child(2) { animation-delay: 0.15s; }
.home-feature-card:nth-child(3) { animation-delay: 0.25s; }

.home-feature-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(99, 102, 241, 0.08), 0 20px 40px -20px rgba(99, 102, 241, 0.25);
  transform: perspective(800px) rotateX(var(--card-rotate-x)) rotateY(var(--card-rotate-y)) translateZ(12px) scale(1.02);
}

@keyframes home-card-enter {
  from {
    opacity: 0;
    transform: perspective(800px) rotateX(8deg) translateY(24px) translateZ(-40px);
  }
  to {
    opacity: 1;
    transform: perspective(800px) rotateX(0) rotateY(0) translateY(0) translateZ(0);
  }
}

.home-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.18) 0%, rgba(99, 102, 241, 0.08) 100%);
  color: var(--accent);
  border-radius: 14px;
  margin-bottom: 1.1rem;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.home-feature-card:hover .home-feature-icon {
  transform: translateZ(8px) scale(1.05);
}

.home-feature-icon .material-symbols-outlined {
  font-size: 1.5rem !important;
}

.home-feature-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--text);
}

.home-feature-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* Steps — cartes 3D */
.home-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  perspective: 1000px;
}

.home-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1rem;
  margin: 0 -1rem;
  border-bottom: 1px solid var(--border);
  counter-increment: step;
  border-radius: 16px;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), background 0.3s ease, box-shadow 0.35s ease;
  transform-style: preserve-3d;
}

.home-step:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: translateZ(6px);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.12);
}

.home-step:last-child {
  border-bottom: none;
}

.home-step-num {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--accent) 0%, #5558e3 100%);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-step:hover .home-step-num {
  transform: scale(1.08) translateZ(4px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.home-step-content {
  min-width: 0;
}

.home-step-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.home-step-desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

.home-step-code {
  font-size: 0.85em;
  padding: 0.15rem 0.4rem;
  background: var(--bg);
  border-radius: 6px;
  font-family: ui-monospace, monospace;
  color: var(--accent);
}

/* CTA final — carte 3D premium */
.home-cta {
  padding: 2.5rem 0 1rem;
  border-top: 1px solid var(--border);
  perspective: 1200px;
}

.home-cta-card {
  --cta-rotate-x: 0deg;
  --cta-rotate-y: 0deg;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.04) 50%, rgba(139, 92, 246, 0.06) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--cta-rotate-x)) rotateY(var(--cta-rotate-y)) translateZ(0);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.3s ease;
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  position: relative;
  overflow: hidden;
  animation: home-cta-enter 0.9s cubic-bezier(0.23, 1, 0.32, 1) 0.2s backwards;
}

.home-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255,255,255,0.6) 0%, transparent 40%, rgba(99, 102, 241, 0.08) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.home-cta-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(99, 102, 241, 0.1), 0 24px 48px -24px rgba(99, 102, 241, 0.3);
  transform: perspective(900px) rotateX(var(--cta-rotate-x)) rotateY(var(--cta-rotate-y)) translateZ(16px) scale(1.01);
}

@keyframes home-cta-enter {
  from {
    opacity: 0;
    transform: perspective(900px) rotateX(6deg) translateY(32px) translateZ(-60px);
  }
  to {
    opacity: 1;
    transform: perspective(900px) rotateX(0) rotateY(0) translateY(0) translateZ(0);
  }
}

.home-cta-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.home-cta-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.home-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
}

.home-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

@media (max-width: 600px) {
  .main-content:has(.home-page) {
    padding: 0 1rem 2.5rem;
  }
  .home-hero {
    padding: 2rem 0 3rem;
  }
  .home-hero-title {
    font-size: 1.75rem;
  }
  .home-features-grid {
    grid-template-columns: 1fr;
  }
  .home-step {
    grid-template-columns: 40px 1fr;
    gap: 0.75rem;
    padding: 1rem 0;
  }
  .home-step-num {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* Auth */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.auth-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  width: 100%;
  max-width: 400px;
}

.auth-card h1 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
}

.auth-card .btn-block {
  margin-bottom: 1rem;
}

.auth-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.error-msg {
  color: #dc2626;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

/* Page Connexion — même design que Mon profil / Mes liens */
.main-content:has(.login-page) {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.login-page {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.login-hero {
  margin-bottom: 1.5rem;
}

.login-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent);
  font-size: 28px !important;
  border-radius: 16px;
  margin-bottom: 1rem;
}

.login-hero h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.login-hero p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.login-alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 1.25rem;
  padding: 0.75rem 1rem;
  background: #fef3c7;
  color: #92400e;
  border-radius: 12px;
  font-size: 0.9rem;
  text-align: left;
}

.login-alert .material-symbols-outlined {
  font-size: 1.25rem !important;
  flex-shrink: 0;
}

.login-card {
  width: 100%;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
  text-align: center;
}

.login-btn-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

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

.login-discord-svg {
  flex-shrink: 0;
}

.login-hint {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.login-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.login-action-link:hover {
  color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
}

.login-action-link .material-symbols-outlined {
  font-size: 1.1rem !important;
}

/* Dashboard — nouveau design ludique et clair */
.dashboard-new {
  max-width: 560px;
  margin: 0 auto;
}

.dashboard-welcome {
  margin-bottom: 1.75rem;
}

.dashboard-welcome h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.dashboard-welcome .welcome-name {
  color: var(--accent);
}

.dashboard-welcome p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.dashboard-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
}

.dashboard-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.dashboard-card-icon {
  font-size: 1.35rem !important;
  color: var(--accent);
}

.dashboard-card h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}

.dashboard-card-title {
  font-size: 1.1rem;
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.dashboard-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.dashboard-link-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.dashboard-url {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy-url {
  flex-shrink: 0;
}

.btn-open-page {
  display: inline-flex;
}

.dashboard-actions-grid {
  display: grid;
  gap: 0.75rem;
}

.dashboard-action-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.dashboard-action-card:hover {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.06);
  transform: translateX(4px);
}

.dashboard-action-icon {
  font-size: 1.5rem !important;
  color: var(--accent);
  flex-shrink: 0;
}

.dashboard-action-label {
  font-weight: 600;
  font-size: 1rem;
  flex: 1;
}

.dashboard-action-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: none;
}

.dashboard-action-arrow {
  font-size: 1.2rem !important;
  color: var(--text-muted);
  flex-shrink: 0;
}

.dashboard-action-card:hover .dashboard-action-arrow {
  color: var(--accent);
}

@media (min-width: 480px) {
  .dashboard-action-desc {
    display: block;
  }
}

.dashboard-links-count {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.dashboard-links-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.dashboard-links-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.dashboard-links-list li:last-child {
  border-bottom: none;
}

.dashboard-link-icon {
  font-size: 1.1rem !important;
  color: var(--accent);
  flex-shrink: 0;
}

.dashboard-link-title {
  flex: 1;
}

.dashboard-edit-links {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.dashboard-edit-links:hover {
  text-decoration: underline;
}

.dashboard-edit-links .material-symbols-outlined {
  font-size: 1rem !important;
}

.dashboard-empty-links {
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.dashboard-empty-icon {
  font-size: 3rem !important;
  color: var(--border);
  display: block;
  margin-bottom: 0.75rem;
}

.dashboard-empty-links p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.empty {
  color: var(--text-muted);
}

/* Forms */
.form-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.form-card h2,
.form-card h3 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
}

.form-card label {
  display: block;
  margin-bottom: 1rem;
}

.form-card label span {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}

.form-card input[type="text"],
.form-card input[type="url"],
.form-card textarea,
.form-card select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: var(--font);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}

.form-card textarea {
  resize: vertical;
  min-height: 80px;
}

.input-prefix {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.form-card button[type="submit"] {
  margin-top: 0.5rem;
}

.form-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: -0.5rem 0 1.5rem;
}

.form-hint a {
  color: var(--accent);
}

/* Appearance page — menu dépliable, ludique et clair */
.main-content:has(.appearance-page) {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.appearance-page {
  max-width: 520px;
  margin: 0 auto;
}

.appearance-hero {
  text-align: center;
  margin-bottom: 1.5rem;
}

.appearance-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.12) 100%);
  color: var(--accent);
  font-size: 28px !important;
  border-radius: 16px;
  margin-bottom: 0.75rem;
}

.appearance-hero h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.appearance-hero p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.appearance-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #166534;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
}

.appearance-success .material-symbols-outlined {
  font-size: 1.25rem !important;
}

.success-msg {
  background: #dcfce7;
  color: #166534;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-weight: 500;
}

/* Blocs dépliables */
.appearance-block {
  margin-bottom: 0.5rem;
}

.appearance-details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.appearance-details:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
}

.appearance-details[open] {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.1);
}

.appearance-details[open] .details-chevron {
  transform: rotate(180deg);
}

.appearance-summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.2s;
}

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

.appearance-summary:hover {
  background: rgba(99, 102, 241, 0.05);
}

.appearance-summary .material-symbols-outlined:first-of-type {
  font-size: 1.35rem !important;
  color: var(--accent);
}

.details-chevron {
  margin-left: auto;
  font-size: 1.25rem !important;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.appearance-block-inner {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}

.appearance-field {
  margin-top: 1rem;
}

.appearance-field:first-child {
  margin-top: 1rem;
}

.appearance-field.is-hidden {
  display: none !important;
}

.appearance-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.appearance-input,
.appearance-select,
.appearance-textarea,
.appearance-color {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.appearance-input:focus,
.appearance-select:focus,
.appearance-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

/* Thèmes — grille de pastilles */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.6rem;
}

.theme-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.5rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.theme-chip:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.15);
}

.theme-chip.is-selected {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 0 1px var(--accent);
}

.theme-chip-colors {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.theme-chip-accent,
.theme-chip-bg {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.theme-chip-label {
  text-align: center;
  line-height: 1.2;
}

/* Color picker 100% custom */
.appearance-field-divider {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.color-pickers-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.color-picker-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.color-picker-custom {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.color-picker-custom:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.color-swatch {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.color-picker-custom {
  position: relative;
}

.color-input-native {
  position: absolute;
  width: 44px;
  height: 44px;
  top: 0.5rem;
  left: 0.5rem;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  padding: 0;
  border: none;
  z-index: 1;
}

.color-hex {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
  min-width: 4.5em;
}

@media (max-width: 380px) {
  .color-pickers-row {
    grid-template-columns: 1fr;
  }
}


.appearance-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 1.1rem;
  padding-right: 2.25rem;
}

.appearance-textarea {
  resize: vertical;
  min-height: 72px;
}

.appearance-textarea-code {
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
}

.appearance-check-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--text);
}

.appearance-checkbox {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.appearance-check-label {
  user-select: none;
}

.appearance-block-advanced .appearance-summary .material-symbols-outlined:first-of-type {
  color: var(--text-muted);
}

.appearance-block-pro {
  border: none;
  border-radius: 14px;
  padding: 0;
  margin: 1rem 0;
  background: rgba(15, 10, 29, 0.4);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.35),
    0 0 24px rgba(99, 102, 241, 0.2),
    0 0 48px rgba(168, 85, 247, 0.1),
    inset 0 0 0 1px rgba(99, 102, 241, 0.08);
  overflow: hidden;
}
[data-theme="light"] .appearance-block-pro {
  background: rgba(99, 102, 241, 0.04);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.25),
    0 0 20px rgba(99, 102, 241, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.appearance-block-pro .appearance-details {
  border: none;
  border-radius: 14px;
  box-shadow: none;
}
.appearance-block-pro .appearance-summary {
  padding: 0.75rem 1.25rem;
}
.appearance-block-pro .appearance-summary .material-symbols-outlined:first-of-type {
  color: #a78bfa;
}
.appearance-block-pro .appearance-block-inner {
  border-top: 1px solid rgba(99, 102, 241, 0.15);
}
.appearance-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.appearance-code {
  font-family: ui-monospace, monospace;
  font-size: 0.85em;
  padding: 0.1rem 0.35rem;
  background: var(--border);
  border-radius: 4px;
}

.appearance-advanced-intro {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.appearance-submit-wrap {
  margin-top: 1.5rem;
  text-align: center;
}

.appearance-submit {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.appearance-submit .material-symbols-outlined {
  font-size: 1.2rem !important;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-label input {
  width: auto;
  margin: 0;
}

.checkbox-label span {
  margin: 0 !important;
}

/* Mon profil — design centré et lisible */
.main-content:has(.profile-edit-page) {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.profile-edit-page {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.profile-edit-hero {
  margin-bottom: 1.5rem;
}

.profile-edit-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent);
  font-size: 28px !important;
  border-radius: 16px;
  margin-bottom: 1rem;
}

.profile-edit-hero h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.profile-edit-hero p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.profile-edit-hero a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.profile-edit-hero a:hover {
  text-decoration: underline;
}

.profile-edit-alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 1.25rem;
  padding: 0.75rem 1rem;
  background: #fef3c7;
  color: #92400e;
  border-radius: 12px;
  font-size: 0.9rem;
  text-align: left;
}

.profile-edit-alert .material-symbols-outlined {
  font-size: 1.25rem !important;
  flex-shrink: 0;
}

.profile-edit-card {
  width: 100%;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
  text-align: left;
}

.profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile-edit-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.profile-edit-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.profile-edit-field input,
.profile-edit-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-edit-field input:focus,
.profile-edit-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.profile-edit-field textarea {
  resize: vertical;
  min-height: 100px;
}

.field-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.slug-input-wrap {
  display: flex;
  align-items: stretch;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.slug-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.slug-prefix {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.03);
  white-space: nowrap;
}

.profile-edit-field .slug-input-wrap input {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.profile-edit-field .slug-input-wrap input:focus {
  box-shadow: none;
}

.btn-save-profile {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
}

.profile-edit-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.profile-edit-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.profile-edit-action-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.06);
}

.profile-edit-action-link .material-symbols-outlined {
  font-size: 1.1rem !important;
}

/* Mes liens — même design que Profil / Apparence */
.main-content:has(.profile-links-page) {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.profile-links-page {
  max-width: 520px;
  margin: 0 auto;
}

.profile-links-hero {
  text-align: center;
  margin-bottom: 1.5rem;
}

.profile-links-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.12) 100%);
  color: var(--accent);
  font-size: 28px !important;
  border-radius: 16px;
  margin-bottom: 0.75rem;
}

.profile-links-hero h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.profile-links-hero p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.profile-links-alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  background: #fef3c7;
  color: #92400e;
  border-radius: 12px;
  font-size: 0.9rem;
}

.profile-links-alert .material-symbols-outlined {
  font-size: 1.25rem !important;
  flex-shrink: 0;
}

.profile-links-alert--limit {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(168, 85, 247, 0.1) 100%);
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.profile-links-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
}

.profile-links-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.profile-links-card-title .material-symbols-outlined {
  font-size: 1.35rem !important;
  color: var(--accent);
}

.profile-links-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-links-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.profile-links-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.profile-links-input,
.profile-links-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-links-input:focus,
.profile-links-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.profile-links-field-icon .profile-links-label {
  margin-bottom: 0.15rem;
}

.profile-links-icon-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-links-icon-preview {
  font-size: 1.5rem !important;
  color: var(--accent);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
}

.profile-links-select {
  flex: 1;
  max-width: 12rem;
  cursor: pointer;
}

.profile-links-form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.profile-links-form-sep {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.profile-links-form-separator {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.profile-links-form-separator .profile-links-field { margin-bottom: 0.5rem; }
.profile-links-form-separator .btn { margin-right: 0.5rem; }
.profile-links-item--separator .profile-links-item-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.profile-links-item--separator .profile-links-item-fields { flex: 1; min-width: 160px; }
.profile-links-item--separator .profile-links-item-icon { color: var(--text-muted); }

.profile-links-submit {
  margin-top: 0;
}

.profile-links-submit .material-symbols-outlined {
  font-size: 1.2rem !important;
}

.profile-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-links-item {
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: 14px;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-links-item:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
}

.profile-links-item-form {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
}

.profile-links-item-icon {
  grid-column: 1;
  grid-row: 1 / -1;
  font-size: 1.5rem !important;
  color: var(--accent);
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 12px;
  flex-shrink: 0;
  align-self: start;
}

.profile-links-item-fields {
  grid-column: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.profile-links-item-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: -0.2rem;
}

.profile-links-item-fields .profile-links-input-sm {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.profile-links-input-sm {
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  border-radius: 10px;
}

.profile-links-item-bottom {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  margin-top: 0.25rem;
}

.profile-links-item-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.profile-links-item-select-wrap .profile-links-select-sm {
  min-width: 12rem;
  max-width: 100%;
}

.profile-links-select-sm {
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  border-radius: 10px;
}

.profile-links-item-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  align-items: center;
}

.profile-links-empty {
  text-align: center;
  padding: 2rem 1rem;
}

.profile-links-empty-icon {
  font-size: 3rem !important;
  color: var(--border);
  display: block;
  margin-bottom: 0.75rem;
}

.profile-links-empty p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.profile-links-footer {
  margin-top: 1.5rem;
  text-align: center;
}

.profile-links-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.profile-links-footer a:hover {
  text-decoration: underline;
}

.profile-links-footer .material-symbols-outlined {
  font-size: 1.1rem !important;
}

@media (max-width: 520px) {
  .profile-links-item-form {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .profile-links-item-icon {
    grid-column: 1;
    grid-row: auto;
    width: 44px;
    height: 44px;
  }
  .profile-links-item-fields,
  .profile-links-item-bottom {
    grid-column: 1;
  }
  .profile-links-item-bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .profile-links-item-select-wrap .profile-links-select-sm {
    min-width: 0;
    max-width: none;
  }
}

/* Stats / Analytics (Pro) */
.main-content:has(.profile-analytics-page) {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}
.profile-analytics-page {
  max-width: 640px;
  margin: 0 auto;
}
.profile-analytics-hero {
  text-align: center;
  margin-bottom: 1.75rem;
}
.profile-analytics-hero .profile-analytics-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.12) 100%);
  color: var(--accent);
  font-size: 28px !important;
  border-radius: 16px;
  margin-bottom: 0.75rem;
}
.profile-analytics-hero h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text);
}
.profile-analytics-hero p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.profile-analytics-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.profile-analytics-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}
.profile-analytics-card--total {
  flex: 1;
  min-width: 200px;
}
.profile-analytics-card-icon {
  font-size: 1.75rem !important;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.profile-analytics-card-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}
.profile-analytics-card-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.profile-analytics-section {
  width: 100%;
}
.profile-analytics-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--text);
}
.profile-analytics-days {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  min-height: 140px;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.profile-analytics-day {
  flex: 0 0 auto;
  width: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.profile-analytics-day-bar-wrap {
  width: 100%;
  height: 72px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  order: 1;
}
.profile-analytics-day-bar {
  width: 14px;
  min-height: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--accent);
  opacity: 0.85;
}
.profile-analytics-day-count {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
  order: 2;
  line-height: 1.2;
}
.profile-analytics-day-date {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
  order: 3;
  min-height: 1.2em;
}
.profile-analytics-footer {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}
.profile-analytics-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  text-decoration: none;
}
.profile-analytics-footer a:hover {
  text-decoration: underline;
}

/* Public profile */
body.profile-public {
  align-items: center;
  padding-bottom: 2rem;
  min-height: 100vh;
}

/* Header moderne */
.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.profile-header-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.profile-header-logo:hover {
  color: var(--accent);
}

.profile-header-icon {
  font-size: 1.35rem !important;
  color: var(--accent);
}

body.theme-dark {
  --bg: #0f0f0f;
  --bg-card: #1a1a1a;
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --border: #2a2a2a;
}

body.theme-minimal {
  --bg: #fff;
  --bg-card: #fff;
  --border: #f0f0f0;
}

.profile-main {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  width: 100%;
}

.profile-card {
  text-align: center;
  margin-bottom: 1.5rem;
  background: rgba(255,255,255,0.95);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.profile-card--modern {
  padding: 2rem 1.75rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.profile-avatar-wrap {
  margin-bottom: 1.25rem;
}

.profile-avatar-wrap .profile-avatar {
  margin-left: auto;
  margin-right: auto;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
}

.profile-avatar.placeholder,
.profile-avatar-placeholder {
  background: var(--accent);
  color: #fff;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 96px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.profile-card--modern .profile-avatar,
.profile-card--modern .profile-avatar-placeholder {
  width: 100px;
  height: 100px;
  font-size: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.profile-card--modern .profile-name {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.profile-card--modern .profile-bio {
  max-width: 100%;
  margin-bottom: 1.25rem;
}

.profile-headline {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  font-weight: 500;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.profile-bio {
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* Bio : rendu Markdown */
.profile-bio.markdown-body {
  line-height: 1.6;
  word-wrap: break-word;
}

.profile-bio.markdown-body p {
  margin: 0 0 0.6em;
}

.profile-bio.markdown-body p:last-child {
  margin-bottom: 0;
}

.profile-bio.markdown-body strong {
  font-weight: 600;
}

.profile-bio.markdown-body em {
  font-style: italic;
}

.profile-bio.markdown-body a {
  color: var(--accent);
  text-decoration: none;
}

.profile-bio.markdown-body a:hover {
  text-decoration: underline;
}

.profile-bio.markdown-body ul,
.profile-bio.markdown-body ol {
  margin: 0.5em 0 0.6em;
  padding-left: 1.4em;
}

.profile-bio.markdown-body li {
  margin: 0.2em 0;
}

.profile-bio.markdown-body code {
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 4px;
}

.profile-bio.markdown-body pre {
  margin: 0.5em 0 0.6em;
  padding: 0.75em;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  font-size: 0.875em;
}

.profile-bio.markdown-body pre code {
  padding: 0;
  background: none;
}

.profile-bio.markdown-body blockquote {
  margin: 0.5em 0 0.6em;
  padding-left: 1em;
  border-left: 3px solid var(--accent);
  opacity: 0.9;
}

.profile-bio.markdown-body h1,
.profile-bio.markdown-body h2,
.profile-bio.markdown-body h3 {
  margin: 0.75em 0 0.35em;
  font-size: 1em;
  font-weight: 600;
}

.profile-bio.markdown-body hr {
  margin: 0.75em 0;
  border: none;
  border-top: 1px solid var(--border);
}

/* Page éditable publique (/page/:slug) */
.page-content-block {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem 0;
}

.page-content-title {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.page-content-body.markdown-body {
  line-height: 1.6;
  word-wrap: break-word;
}

.page-content-body.markdown-body p {
  margin: 0 0 0.6em;
}

.page-content-body.markdown-body p:last-child {
  margin-bottom: 0;
}

.page-content-body.markdown-body strong {
  font-weight: 600;
}

.page-content-body.markdown-body a {
  color: var(--accent);
  text-decoration: none;
}

.page-content-body.markdown-body a:hover {
  text-decoration: underline;
}

.page-content-body.markdown-body ul,
.page-content-body.markdown-body ol {
  margin: 0.5em 0 0.6em;
  padding-left: 1.4em;
}

.page-content-body.markdown-body code {
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 4px;
}

.page-content-body.markdown-body pre {
  margin: 0.5em 0 0.6em;
  padding: 0.75em;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  font-size: 0.875em;
}

.page-content-body.markdown-body blockquote {
  margin: 0.5em 0 0.6em;
  padding-left: 1em;
  border-left: 3px solid var(--accent);
  opacity: 0.9;
}

.copy-link-wrap,
.profile-copy-wrap {
  display: flex;
  gap: 0.5rem;
  max-width: 100%;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.profile-copy-wrap {
  margin-top: 0.5rem;
}

.copy-input,
.profile-copy-input {
  flex: 1;
  min-width: 180px;
  padding: 0.6rem 1rem;
  font-family: var(--font);
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
}

.profile-copy-input {
  border-radius: 12px;
}

.profile-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.profile-copy-btn:hover {
  background: var(--accent-hover, #4f46e5);
}

.profile-copy-btn .material-symbols-outlined {
  font-size: 1.1rem !important;
}

.profile-card-views-block {
  margin-top: 0.75rem;
  padding: 0.5rem 0;
}
.profile-view-count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.profile-view-count .material-symbols-outlined {
  font-size: 1.1rem !important;
  opacity: 0.9;
}
.profile-view-count strong {
  color: var(--text);
}

.profile-pro-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  margin-left: 0.4rem;
  vertical-align: 0.25em;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.2) 100%);
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.profile-qr-wrap {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.profile-qr-img {
  border-radius: 10px;
  background: #fff;
  padding: 8px;
}
.profile-qr-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.profile-custom-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
}
.profile-custom-footer p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.profile-share-wrap {
  margin-top: 0.75rem;
}
.profile-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.profile-share-btn:hover {
  background: var(--border);
}
.profile-public .profile-share-btn {
  background: rgba(255,255,255,0.9);
  border-color: var(--accent);
  color: var(--accent);
}
.profile-public .profile-share-btn:hover {
  background: var(--accent);
  color: #fff;
}

.link-separator {
  list-style: none;
  margin: 1rem 0 0.5rem;
  padding: 0;
}
.link-separator:first-child { margin-top: 0; }
.link-separator-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.25rem 0;
}
.profile-public .link-separator-title {
  color: rgba(255,255,255,0.7);
}

.copy-input {
  border-radius: 10px;
}

.profile-links {
  width: 100%;
}

.link-list.public {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.link-list.public li {
  margin-bottom: 0;
}

.link-button {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
}

.link-button--modern {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  text-align: left;
  border-radius: 14px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.link-button--modern:hover {
  transform: translateY(-1px);
}

.link-button-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.link-button-icon .material-symbols-outlined,
.link-button-icon .link-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 1.4rem;
  line-height: 1;
  margin: 0;
}

.link-button-icon .link-icon--brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  vertical-align: middle;
}

.link-button-icon .link-icon-svg,
.link-button-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 auto;
  margin-left: 3px;
  flex-shrink: 0;
  object-fit: contain;
}

.link-button-icon .material-symbols-outlined,
.link-button-icon .link-emoji {
  margin-left: 3px;
}

.link-button--modern .link-emoji,
.link-button--modern .link-icon--brand {
  margin-right: 0;
}

.link-button--modern .link-icon--brand .link-icon-svg,
.link-button--modern .link-icon-svg {
  width: 22px;
  height: 22px;
}

.link-button-icon .link-icon--brand .link-icon-svg,
.link-button-icon .link-icon-svg {
  width: 22px;
  height: 22px;
}

.link-button-text {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.link-button-arrow {
  flex-shrink: 0;
  font-size: 1.2rem !important;
  opacity: 0.6;
  transition: transform 0.2s;
}

.link-button--modern:hover .link-button-arrow {
  transform: translateX(3px);
  opacity: 1;
}

.link-button:hover {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--accent);
}

.link-button .link-emoji,
.link-button .link-icon--brand {
  margin-right: 0.5rem;
}

.link-list-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 1.5rem 1rem;
  font-size: 0.9375rem;
}

.link-icon--brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -0.25em;
}

.link-icon--brand .link-icon-svg,
.link-icon-svg {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  color: currentColor;
}

.profile-links-icon-preview.link-icon--brand .link-icon-svg,
.profile-links-item-icon.link-icon--brand .link-icon-svg {
  width: 24px;
  height: 24px;
}

.profile-avatar.shape-rounded {
  border-radius: 16px;
}

.link-list.public li.empty,
.link-list-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 1.5rem 1rem;
  font-size: 0.9375rem;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
}

.footer-nav {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
}

.footer-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 4rem 1rem;
}

.error-page h1 {
  font-size: 4rem;
  margin: 0 0 0.5rem;
  color: var(--text-muted);
}

.error-page p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

/* Thème sombre (data-theme="dark" appliqué sur <html>) */
[data-theme="dark"] {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #818cf8;
  --accent-hover: #a5b4fc;
  --border: #334155;
}
[data-theme="dark"] body {
  background: var(--bg);
  color: var(--text);
}
[data-theme="dark"] body.app-dashboard {
  background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 50%, #1e293b 100%);
}
[data-theme="dark"] .site-header,
[data-theme="dark"] .public-header {
  background: rgba(15, 23, 42, 0.95);
  border-bottom-color: var(--border);
}
[data-theme="dark"] .site-footer {
  border-top-color: var(--border);
  color: var(--text-muted);
}
[data-theme="dark"] .card,
[data-theme="dark"] .profile-links-card,
[data-theme="dark"] .profile-card {
  background: var(--bg-card);
  border-color: var(--border);
}
[data-theme="dark"] .profile-public .profile-card {
  background: rgba(30, 41, 59, 0.95);
}
[data-theme="dark"] .profile-public .link-separator-title {
  color: rgba(255,255,255,0.6);
}
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: #0f172a;
  border-color: var(--border);
  color: var(--text);
}
[data-theme="dark"] .btn-secondary {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
}
[data-theme="dark"] .btn-secondary:hover {
  background: var(--border);
  color: var(--text);
}

.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  background: var(--border);
  border-radius: var(--radius-sm);
}
.theme-switcher-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.theme-switcher-btn:hover {
  color: var(--text);
  background: rgba(0,0,0,0.06);
}
[data-theme="dark"] .theme-switcher-btn:hover {
  background: rgba(255,255,255,0.08);
}
.theme-switcher-btn.active,
.theme-switcher-btn[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}
.theme-switcher-btn .material-symbols-outlined {
  font-size: 1.2rem;
}

.profile-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.locale-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.locale-switcher-link {
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.locale-switcher-link:hover {
  color: var(--text);
  background: rgba(0,0,0,0.06);
}
[data-theme="dark"] .locale-switcher-link:hover {
  background: rgba(255,255,255,0.08);
}
.locale-switcher-link.active {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 480px) {
  .site-header nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .copy-link-wrap {
    flex-direction: column;
  }
  .copy-input {
    min-width: 100%;
  }
}
