:root {
  --fleur-menu-size: 72px;
  --fleur-green: #062f25;
  --fleur-green-2: #0d3d30;
  --fleur-gold: #d7b878;
  --fleur-cream: #fff7e8;
}

html,
body {
  overflow-x: hidden !important;
}

body {
  padding-left: var(--fleur-menu-size) !important;
}

.fleur-sidebar,
.fleur-sidebar *,
.fleur-auth-choice,
.fleur-auth-choice * {
  box-sizing: border-box;
}

.fleur-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--fleur-menu-size);
  height: 100vh;
  z-index: 999999;
  background:
    radial-gradient(circle at 50% 0%, rgba(215, 184, 120, 0.22), transparent 34%),
    linear-gradient(180deg, var(--fleur-green-2) 0%, var(--fleur-green) 100%);
  color: var(--fleur-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  box-shadow: 12px 0 34px rgba(0, 0, 0, 0.14);
}

.fleur-logo-link {
  width: 100%;
  padding-top: 14px;
  text-decoration: none;
  color: var(--fleur-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.fleur-logo-round {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(215, 184, 120, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(215, 184, 120, 0.08);
  color: var(--fleur-gold);
  font-weight: 800;
  font-size: 15px;
}

.fleur-logo-img {
  width: 116%;
  height: 116%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
}

.fleur-logo-fallback {
  display: none;
}

.fleur-logo-text {
  font-family: TildaSans, Arial, sans-serif;
  font-size: 8px;
  line-height: 1.1;
  text-align: center;
  font-weight: 700;
  color: var(--fleur-cream);
}

.fleur-nav {
  width: 100%;
  margin-top: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 23px;
}

.fleur-nav a,
.fleur-account-link {
  position: relative;
  width: 100%;
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 247, 232, 0.76);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: TildaSans, Arial, sans-serif;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: 0.18s ease;
  cursor: pointer;
}

.fleur-nav a span,
.fleur-account-link span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

.fleur-nav a:hover,
.fleur-nav a.active,
.fleur-account-link:hover,
.fleur-account-link.active {
  color: var(--fleur-cream);
}

.fleur-nav a::before,
.fleur-account-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 34px;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(180deg, #ffe7a8 0%, var(--fleur-gold) 100%);
  transform: translateY(-50%) scaleY(0);
  opacity: 0;
  transition: 0.18s ease;
}

.fleur-nav a.active::before,
.fleur-account-link.active::before {
  transform: translateY(-50%) scaleY(1);
  opacity: 1;
}

.fleur-nav a.active::after,
.fleur-account-link.active::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fleur-gold);
  transform: translateY(-50%);
}

.fleur-nav-separator {
  width: 34px;
  height: 1px;
  margin: 0 0 -5px;
  background: rgba(215, 184, 120, 0.30);
}

.fleur-account-link {
  margin-top: 14px;
}

.fleur-account-link span {
  max-width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 8px 5px;
  border: 1px solid rgba(215, 184, 120, 0.72);
  border-radius: 999px;
  color: #fff7e8;
  background: rgba(215, 184, 120, 0.10);
  box-shadow: inset 0 0 0 1px rgba(255, 247, 232, 0.08);
}

.fleur-account-link.is-logged span {
  color: #fff7e8;
  border-color: rgba(215, 184, 120, 0.92);
  background: rgba(215, 184, 120, 0.16);
}

.fleur-auth-choice {
  position: fixed;
  z-index: 9999999;
  width: 276px;
  padding: 20px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 55px rgba(8, 40, 31, 0.20);
  color: #0b2f25;
  font-family: TildaSans, Arial, sans-serif;
}

.fleur-auth-choice-title {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 800;
  color: #08281f;
}

.fleur-auth-choice-text {
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(16, 40, 32, 0.62);
}

.fleur-auth-choice-login,
.fleur-auth-choice-register {
  width: 100%;
  height: 46px;
  border-radius: 999px;
  font-family: TildaSans, Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.fleur-auth-choice-login {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #0d3428 0%, #08281f 100%);
  box-shadow: 0 12px 28px rgba(8, 40, 31, 0.22);
}

.fleur-auth-choice-login:hover,
.fleur-auth-choice-register:hover {
  transform: translateY(-1px);
}

.fleur-auth-choice-register {
  margin-top: 10px;
  color: #0b2f25;
  border: 1px solid rgba(215, 184, 120, 0.62);
  background: linear-gradient(180deg, #fffaf0 0%, #fff5e6 100%);
}

/* Прячем только стандартный круглый ЛК справа сверху. Важно: не display:none, чтобы не ломать Tilda Members. */
.fleur-native-account-icon-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

.fleur-sidebar,
.fleur-sidebar * {
  visibility: visible !important;
}

@media (min-width: 981px) {
  body .tlk-userbar,
  body .tlk-userbar__popup,
  body .tlk-popup,
  body .tlk__popup,
  body .tilda-members-popup,
  body .t-members-popup {
    position: fixed !important;
    left: var(--fleur-members-popup-left, 98px) !important;
    right: auto !important;
    top: var(--fleur-members-popup-top, 520px) !important;
    bottom: auto !important;
    transform: none !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    z-index: 1000001 !important;
    max-width: calc(100vw - 116px) !important;
    transition: opacity .14s ease !important;
  }
}

@media (max-width: 980px) {
  body {
    padding-left: 0 !important;
    padding-top: 64px !important;
  }

  .fleur-sidebar {
    width: 100%;
    height: 64px;
    flex-direction: row;
    padding: 0 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  }

  .fleur-logo-link {
    width: 48px;
    min-width: 48px;
    padding-top: 0;
    gap: 0;
  }

  .fleur-logo-round {
    width: 38px;
    height: 38px;
  }

  .fleur-logo-text {
    display: none;
  }

  .fleur-nav {
    margin-top: 0;
    margin-left: 8px;
    flex: 1;
    height: 100%;
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
  }

  .fleur-nav-separator {
    display: none;
  }

  .fleur-nav a,
  .fleur-account-link {
    width: auto;
    min-height: 64px;
    padding: 0 3px;
    font-size: 10px;
    letter-spacing: 0;
    margin-top: 0;
  }

  .fleur-nav a span,
  .fleur-account-link span {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .fleur-nav a::before,
  .fleur-account-link::before {
    left: 50%;
    top: auto;
    bottom: 8px;
    width: 22px;
    height: 3px;
    border-radius: 10px;
    transform: translateX(-50%) scaleX(0);
  }

  .fleur-nav a.active::before,
  .fleur-account-link.active::before {
    transform: translateX(-50%) scaleX(1);
  }

  .fleur-nav a.active::after,
  .fleur-account-link.active::after {
    display: none;
  }

  .fleur-account-link span {
    max-width: 58px;
    padding: 5px 7px;
  }
}

@media (max-width: 360px) {
  .fleur-sidebar {
    padding: 0 6px;
  }

  .fleur-logo-link {
    width: 40px;
    min-width: 40px;
  }

  .fleur-logo-round {
    width: 34px;
    height: 34px;
  }

  .fleur-nav a,
  .fleur-account-link {
    font-size: 9px;
    padding: 0 1px;
  }

  .fleur-account-link span {
    max-width: 46px;
  }
}
