/* ==================================================================
   TT STUDIO — Design system
   Inspiré d'Addveo : fond sombre, halos lumineux, typographies nettes.
   Les lumières orange d'Addveo sont remplacées par du JAUNE PASTEL.
   Les valeurs sont pilotées par des variables CSS, elles-mêmes mises
   à jour au chargement depuis /api/config (voir main.js).
   ================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Instrument+Serif:ital@0;1&display=swap');

/* ───────────────────────── Tokens ───────────────────────── */
:root {
  /* Jaune pastel (remplace l'orange). Jamais de jaune vif. */
  --pastel: #f5e6a3;
  --pastel-strong: #efd976;
  --gold: #c9a227;

  /* Fonds sombres (identiques à Addveo). */
  --bg: #0a0a0b;
  --bg-soft: #18181a;
  --bg-fore: #27272a;

  /* Bordures / hairlines. */
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Textes. */
  --text-title: #fafafa;
  --text-default: #a1a1aa;
  --text-accent: #e4e4e7;
  --text-tag: #52525b;

  /* Rayons. */
  --r-md: 0.375rem;
  --r-lg: 0.5rem;
  --r-xl: 0.75rem;
  --r-2xl: 1rem;
  --r-3xl: 1.5rem;

  --page: 87.5rem; /* 1400px */
  --header-h: 60px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-title);
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
}

::selection {
  background: var(--pastel);
  color: var(--bg);
}

/* Scrollbar discrète. */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-fore);
  border-radius: 999px;
}

/* ─────────────────── Helpers typographiques ─────────────── */
.accent {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--pastel);
  letter-spacing: -0.01em;
}

.display-xl {
  font-size: 60px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.display-lg {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.display-md {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.text-sm-alt {
  font-size: 16px;
  line-height: 1.5;
}
.text-xs-alt {
  font-size: 14px;
  line-height: 1.5;
}

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

.eyebrow {
  position: relative;
  display: inline-block;
  color: var(--text-accent);
  font-size: 16px;
}
.eyebrow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -31px;
  width: 3px;
  height: 36px;
  background: var(--pastel);
}

/* ───────────────────── Layout général ───────────────────── */
.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 24px;
}

main {
  display: block;
}

.section {
  padding: 96px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 48px 0;
  }
}

/* ─────────────────── Fonds lumineux (glows) ─────────────── */
.bg-lights {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(120px);
  opacity: 0.35;
  background: radial-gradient(ellipse, var(--pastel-strong), var(--pastel), transparent 70%);
}

.glow--a {
  width: 620px;
  height: 620px;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
}
.glow--b {
  width: 480px;
  height: 480px;
  top: 40%;
  left: -180px;
  opacity: 0.14;
}
.glow--c {
  width: 520px;
  height: 520px;
  top: 65%;
  right: -200px;
  opacity: 0.12;
}

/* Animation de fond (activable via config.features.backgroundAnimation). */
body.bg-animated .glow--a {
  animation: floatA 18s ease-in-out infinite;
}
body.bg-animated .glow--b {
  animation: floatB 24s ease-in-out infinite;
}
body.bg-animated .glow--c {
  animation: floatC 21s ease-in-out infinite;
}
@keyframes floatA {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-50%, 40px) scale(1.08); }
}
@keyframes floatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -40px) scale(1.12); }
}
@keyframes floatC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -30px) scale(1.1); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.03;
  background-image: radial-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* ─────────────────────── Preloader ─────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}
.preloader.is-hidden {
  clip-path: inset(0 0 100% 0);
}
.preloader img {
  width: 120px;
  opacity: 0;
  transform: scale(0.9);
  animation: preloaderIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes preloaderIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ───────────────────────── Header ───────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 100%;
}
.header-bar {
  position: relative;
  height: var(--header-h);
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-bar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--border);
}
.header-inner {
  max-width: var(--page);
  margin: 0 auto;
  height: 100%;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-logo img {
  height: 30px;
  width: auto;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 16px;
}
.header-nav a {
  color: var(--text-default);
  transition: color 0.3s;
}
.header-nav a:hover,
.header-nav a[aria-current='page'] {
  color: var(--text-title);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.header-burger span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--text-title);
}

@media (max-width: 1024px) {
  .header-inner {
    padding: 0 20px;
  }
  .header-nav {
    display: none;
  }
  .header-burger {
    display: flex;
  }
}

/* Menu mobile déroulant. */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 89;
  background: rgba(10, 10, 11, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 14px;
}
.mobile-menu.is-open {
  display: flex;
}
.mobile-menu a {
  color: var(--text-accent);
  font-size: 18px;
}

/* ───────────────────────── Boutons ──────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--r-xl);
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: color 0.3s, background 0.3s, box-shadow 0.3s, transform 0.3s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(90deg, var(--pastel-strong), var(--pastel));
  color: #0a0a0b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 16px 40px rgba(239, 217, 118, 0.18);
}
.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 18px 50px rgba(239, 217, 118, 0.32);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-title);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
}
.btn-sm {
  padding: 9px 14px;
  font-size: 14px;
}

/* ───────────────────────── Hero ─────────────────────────── */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 120px);
  padding-bottom: 80px;
  text-align: center;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.badge {
  font-size: 14px;
  color: var(--text-accent);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px var(--border);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}
.hero-video {
  position: relative;
  margin: 64px auto 0;
  max-width: 1352px;
  aspect-ratio: 392 / 214;
  border-radius: var(--r-3xl);
  background: #050505;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.hero-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lignes "spectre" au-dessus de la vidéo. */
.spectrum {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 auto 20px;
  max-width: 1000px;
}
.spectrum div {
  height: 1px;
  background: var(--border);
  margin: 0 auto;
}
.spectrum div:nth-child(1) { width: 40%; }
.spectrum div:nth-child(2) { width: 50%; }
.spectrum div:nth-child(3) { width: 60%; }
.spectrum div:nth-child(4) { width: 68%; }
.spectrum div:nth-child(5) { width: 76%; }
.spectrum div:nth-child(6) { width: 84%; }
.spectrum div:nth-child(7) { width: 92%; }

/* ─────────────────── Bandeau partenaires ────────────────── */
.partners {
  padding-top: 40px;
  padding-bottom: 40px;
  text-align: center;
}
.partners p {
  color: var(--text-default);
  font-size: 14px;
  margin: 0 0 26px;
}
.partners-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.partners-logos span {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #6f6f6f;
  transition: color 0.3s;
}
.partners-logos span:hover {
  color: var(--text-title);
}

/* ───────────────── Statement / positioning ──────────────── */
.statement {
  padding-top: 80px;
  padding-bottom: 80px;
}
.statement .eyebrow {
  margin-bottom: 26px;
}
.statement p {
  font-size: 45px;
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: var(--text-title);
  max-width: 1200px;
  margin: 0;
}
@media (max-width: 1200px) {
  .statement p { font-size: 34px; }
}
@media (max-width: 768px) {
  .statement p { font-size: 25px; }
}

/* ─────────────────────── Cartes services ────────────────── */
.services-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.service-card {
  position: relative;
  border-radius: var(--r-3xl);
  padding: 40px;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  min-height: 300px;
}
.service-card--primary {
  background: linear-gradient(135deg, var(--pastel), var(--pastel-strong));
  color: #0a0a0b;
}
.service-card--dark {
  background: var(--bg-soft);
  color: var(--text-title);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.service-card .service-label {
  font-size: 16px;
  opacity: 0.75;
  margin: 0 0 14px;
}
.service-card h2 {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 16px;
  max-width: 520px;
}
.service-card p {
  font-size: 16px;
  max-width: 520px;
  margin: 0 0 24px;
  opacity: 0.85;
}
.service-card .btn-on-color {
  background: rgba(10, 10, 11, 0.12);
  color: inherit;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}
.service-card--dark .btn-on-color {
  background: var(--pastel);
  color: #0a0a0b;
  box-shadow: none;
}
.service-visual {
  flex: 0 0 320px;
  max-width: 360px;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 11, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.service-card--dark .service-visual {
  background: rgba(255, 255, 255, 0.03);
}
.service-visual img {
  width: 60%;
  opacity: 0.9;
}
@media (max-width: 900px) {
  .service-visual { flex: 1 1 100%; max-width: none; }
  .service-card { padding: 28px; }
  .service-card h2 { font-size: 26px; }
}

/* ─────────────────────── Témoignages ────────────────────── */
.testimonials-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 40px;
}
.testimonials-head p { color: var(--text-default); margin: 16px 0 0; max-width: 520px; }
.testimonial-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.tab {
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  color: #797979;
  padding: 10px 16px;
  border-radius: var(--r-xl);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.3s, background 0.3s;
  box-shadow: inset 0 0 0 1px var(--border);
}
.tab:hover { color: var(--text-title); }
.tab.is-active {
  color: #0a0a0b;
  background: var(--pastel);
  box-shadow: none;
}
.testimonial-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--r-3xl);
  overflow: hidden;
  background: #101013;
  box-shadow: inset 0 0 0 1px var(--border);
}
.testimonial-visual {
  min-height: 320px;
  background: radial-gradient(circle at 40% 30%, rgba(245, 230, 163, 0.16), transparent 60%), #0d0d10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial-visual span {
  font-size: 26px;
  font-weight: 700;
  color: var(--pastel);
  opacity: 0.85;
}
.testimonial-body {
  padding: 40px;
}
.testimonial-body blockquote {
  margin: 0 0 30px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-accent);
}
.testimonial-stats {
  display: flex;
  gap: 40px;
}
.testimonial-stats .stat strong {
  display: block;
  font-size: 36px;
  font-weight: 600;
  color: var(--pastel);
}
.testimonial-stats .stat span {
  font-size: 14px;
  color: var(--text-default);
}
@media (max-width: 900px) {
  .testimonials-head { grid-template-columns: 1fr; }
  .testimonial-panel { grid-template-columns: 1fr; }
  .testimonial-body { padding: 24px; }
}

/* ──────────────────────── Offres ────────────────────────── */
.offers-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.offers-head p { color: var(--text-default); margin-top: 16px; }
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.offer-card {
  border-radius: var(--r-3xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}
.offer-card--light {
  background: #fff;
  color: #0a0a0b;
}
.offer-card--light:hover { background: #f4f4f5; }
.offer-card--dark {
  background: var(--bg);
  color: var(--text-title);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.offer-price {
  align-self: flex-start;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
}
.offer-card--dark .offer-price { background: rgba(255, 255, 255, 0.08); }
.offer-card h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
}
.offer-card p { margin: 0; opacity: 0.8; flex: 1; }
.offer-link {
  font-weight: 600;
  color: var(--gold);
  margin-top: 8px;
}
.offer-card--dark .offer-link { color: var(--pastel); }
@media (max-width: 900px) {
  .offers-grid { grid-template-columns: 1fr; }
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

/* ───────────────────────── FAQ ──────────────────────────── */
.faq-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.faq-head p { color: var(--text-default); margin-top: 16px; }
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--border);
}
.faq-item + .faq-item { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  color: var(--text-title);
  text-align: left;
  padding: 20px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.3s;
}
.faq-q:hover { background: rgba(255, 255, 255, 0.03); }
.faq-toggle {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px var(--border);
  transition: transform 0.3s;
}
.faq-item.is-open .faq-toggle { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-a-inner {
  padding: 0 20px 22px;
  color: var(--text-default);
  font-size: 16px;
  max-width: 720px;
}

/* ──────────────────────── Footer ────────────────────────── */
.site-footer {
  position: relative;
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-brand img { height: 34px; margin-bottom: 24px; }
.footer-cta h3 {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 615px;
  margin: 0 0 16px;
}
.footer-cta .script-line {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 28px;
  color: var(--pastel);
  margin: 0 0 28px;
}
.footer-col h4 {
  font-size: 16px;
  color: var(--text-default);
  font-weight: 500;
  margin: 0 0 20px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-col a {
  font-size: 18px;
  color: var(--text-accent);
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--pastel); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-default);
  font-size: 14px;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-legal a:hover { color: var(--pastel); }
.to-top {
  background: none;
  border: 0;
  color: var(--text-default);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  margin-top: 20px;
}
.to-top:hover { color: var(--text-title); }

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

/* ──────────────── Reveal (mot par mot) ──────────────────── */
.reveal {
  opacity: 0;
  filter: blur(16px);
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 45ms);
}
.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: none;
}
body.no-reveal .reveal {
  opacity: 1;
  filter: none;
  transform: none;
}

/* ─────────────────── Pages légales / texte ──────────────── */
.doc {
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 96px;
}
.doc-head {
  max-width: 860px;
  margin: 0 auto 40px;
  padding: 0 24px;
}
.doc-head .eyebrow { margin-bottom: 18px; }
.doc-head h1 { font-size: 42px; font-weight: 500; letter-spacing: -0.03em; margin: 0 0 12px; }
.doc-head p { color: var(--text-default); margin: 0; }
.doc-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}
.doc-body h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 40px 0 12px;
  color: var(--text-title);
}
.doc-body p,
.doc-body li {
  color: var(--text-accent);
  line-height: 1.7;
}
.doc-body ul { padding-left: 22px; }
.doc-body a { color: var(--pastel); text-decoration: underline; }
.doc-note {
  margin-top: 48px;
  padding: 18px 20px;
  border-radius: var(--r-xl);
  background: rgba(245, 230, 163, 0.06);
  box-shadow: inset 0 0 0 1px rgba(245, 230, 163, 0.18);
  color: var(--text-accent);
  font-size: 14px;
}

/* ───────────────────── Page Scripts vide ────────────────── */
.empty-stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.empty-stage img { width: 120px; opacity: 0.5; }

/* ─────────────────────── Page Login ─────────────────────── */
.login-layout {
  display: flex;
  min-height: 100vh;
  gap: 48px;
}
.login-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 32px 32px 48px;
  width: 100%;
}
.login-left-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 100vh;
  padding: 38px 0;
}
.login-logo img { height: 30px; }
.login-card-wrap {
  width: 100%;
  max-width: 540px;
}
.login-card {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: var(--r-3xl);
  padding: 28px;
}
.login-card-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  text-align: center;
}
.login-card-head h1 {
  color: #0a0a0b;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0;
}
.login-card-head p {
  color: #52525b;
  font-size: 16px;
  margin: 0;
}
.discord-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: var(--r-xl);
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  background: #0a0a0b;
  color: #fff;
  transition: background 0.3s, transform 0.2s;
}
.discord-btn:hover { background: #27272a; }
.discord-btn svg { width: 22px; height: 22px; }
.login-note {
  margin-top: 18px;
  font-size: 14px;
  color: #52525b;
  text-align: center;
}
.login-notif {
  margin-bottom: 24px;
  padding: 16px;
  border-radius: var(--r-xl);
  background: rgba(245, 230, 163, 0.14);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.4);
  color: #6b5a12;
  font-size: 14px;
  display: none;
}
.login-notif.is-visible { display: block; }
.login-notif a { color: #7a6413; text-decoration: underline; font-weight: 600; }
.login-copyright { color: #a1a1aa; font-size: 14px; }
.login-right {
  display: block;
  flex: 0 0 48%;
  max-width: 936px;
  padding: 12px 12px 12px 0;
}
.login-cover {
  position: relative;
  height: 100%;
  border-radius: var(--r-3xl);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 230, 163, 0.22), transparent 55%),
    linear-gradient(180deg, #101013, #050505);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.login-cover-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
  padding: 48px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.login-cover-inner h2 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0;
  color: #fff;
}
.login-cover-inner p { color: #e4e4e7; margin: 0; }
.login-cover-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  bottom: -140px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  filter: blur(110px);
  opacity: 0.4;
  background: radial-gradient(ellipse, var(--pastel-strong), transparent 70%);
}
@media (max-width: 1024px) {
  .login-layout { flex-direction: column; gap: 0; }
  .login-right { display: none; }
  .login-left { padding: 32px 20px; }
}

/* ──────────────────────── Page HUB ──────────────────────── */
.hub {
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 96px;
}
.hub-card {
  background: var(--bg-soft);
  border-radius: var(--r-3xl);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hub-avatar {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 0 0 3px rgba(245, 230, 163, 0.4);
  background: var(--bg-fore);
}
.hub-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hub-id h1 { font-size: 28px; font-weight: 600; margin: 0 0 4px; }
.hub-id p { color: var(--text-default); margin: 0; }
.hub-actions { margin-left: auto; }
.hub-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.hub-stat {
  background: var(--bg-soft);
  border-radius: var(--r-2xl);
  box-shadow: inset 0 0 0 1px var(--border);
  padding: 24px;
}
.hub-stat strong { display: block; font-size: 36px; font-weight: 600; color: var(--pastel); }
.hub-stat span { color: var(--text-default); font-size: 14px; }
.hub-empty {
  margin-top: 24px;
  padding: 40px;
  text-align: center;
  color: var(--text-default);
  border-radius: var(--r-2xl);
  box-shadow: inset 0 0 0 1px var(--border);
}
@media (max-width: 700px) {
  .hub-stats { grid-template-columns: 1fr; }
  .hub-actions { margin-left: 0; }
}

/* ─────────────────── Page 404 ───────────────────────────── */
.notfound {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  padding: 24px;
}
.notfound img { width: 140px; opacity: 0.9; }
.notfound h1 { font-size: 36px; font-weight: 500; margin: 0; }
.notfound p { color: var(--text-default); margin: 0; }
